9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] cec(3)
@ 2007-03-19 16:00 erik quanstrom
  0 siblings, 0 replies; only message in thread
From: erik quanstrom @ 2007-03-19 16:00 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 79 bytes --]

this is the manual page i forgot to write for the
cec server device.

- erik

[-- Attachment #2: cec --]
[-- Type: text/plain, Size: 2147 bytes --]

.TH CEC 3
.SH NAME
cec \- coraid ethernet console server
.SH SYNOPSIS
.nf
.B bind #© /dev

.B /dev/ceccfg
.B /dev/cecctl
.B /dev/cecdbg
.B /dev/cecstat
.fi
.SH DESCRIPTION
Cec exports a machines console over
raw ethernet frames.  See
.IR cec (1)
for a client.
.PP
The read-only file
.B ceccfg
lists the interfaces on which
.I cec
is configured, one per line.
.PP
The write-only
.B cecctl
accepts control messages.  The command
.IP
.B cecon
.I ethern
.PP
turns on a cec listener for
.IR ethern ,
while
.IP
.B cecoff 
.I ethern
.PP
turns that listener off.
The command
.IP
.BI name string
.PP
sets the name of the current machine name to
.I string
while
.IP
.B shelf 
.I n
.PP
sets the shelf number in
.B Toffer
messages.  The default
.I name
is the empty string and the default shelf number is -1.
These parameters are listed in the available servers
presented by
.IR cec(1).
The command
.IP
.B password
.I string
.PP
sets the connection password.  The cec protocol transmits
passwords in the clear. This is not real security.
The strings
.B traceon
and
.B traceoff
control cec tracing.
.PP
Debugging output is available in the read-only file
.BR cecdbg .
.PP
The file
.B cecstat
lists each connection in the following format
.IP
.EX
000e0c06a37c  25 open              0 0 0 00000000
.EE
.PP
The 7 fields are 
ethernet mac address,
the connection number,
the connection state (
.IR unused ,
.IR initb ,
.IR login ,
.IR open ),
the number of idle ticks,
the number of retires and the address of the current
outstanding message's
.BR Block* .
Fields 4-7 are likely to change in the future.
.SH EXAMPLE
Start cec on ports with no ip stack.
.IP
.EX
bind -a '#©' /dev
for(i in `{seq 1 10}){
	if(test -e '#l'^$i)
	if(! test -e /net*/ether^$i)
		echo 'cecon #l'^$i>/dev/cecctl
}
.EE
.SH SEE ALSO
.IR cec (1),
.\" .IR cec (6),
.\" .IR cec (4).
.SH SOURCE
.B /sys/src/9/port/devcec.c
.SH BUGS
Cec is not available before ethernet has started or
from 9load.
.PP
The
.B cecstat
format is neither fixed-width nor are fields 4-7 very useful.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-03-19 16:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-19 16:00 [9fans] cec(3) erik quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).