conserver/console/console.man

556 lines
12 KiB
Groff
Raw Normal View History

2003-09-29 15:50:27 +00:00
.\" $Id: console.man,v 1.36 2003-09-28 15:30:52-07 bryan Exp $
.TH CONSOLE 1 "2003-09-28" "conserver-8.0.1" "conserver"
.SH NAME
console \- console server client program
.SH SYNOPSIS
2003-09-22 20:49:53 +00:00
.B console
.RB [ \-aAEfFsS ]
.RB [ \-7Dv ]
.RB [ \-c
.IR cred ]
.BR [ \-M
.IR mach ]
.BR [ \-p
.IR port ]
.BR [ \-e
.IR esc ]
.BR [ \-l
.IR user ]
.I console
.br
2003-09-22 20:49:53 +00:00
.B console
.RB [ \-hiIPrRuVwWx ]
.RB [ \-7Dv ]
.RB [ \-M
.IR mach ]
.RB [ \-p
.IR port ]
.RB [ \-d
.RI [ user ][\fB@\fP console ]]
.RB [ \- [ bB ]
.IR message ]
.RB [ \-t
.RI [ user ][\fB@\fP console ]
.IR message ]
.br
2003-09-22 20:49:53 +00:00
.B console
.RB [ \-qQ ]
.RB [ \-7Dv ]
.RB [ \-M
.IR mach ]
.RB [ \-p
.IR port ]
.SH DESCRIPTION
.B Console
2001-07-27 00:05:04 +00:00
is used to manipulate console terminals remotely or to poll running
2003-09-22 20:49:53 +00:00
.BR conserver (8)
daemons for status information.
.PP
2001-07-27 00:05:04 +00:00
In the first form above,
.B console
asks the user's password before
granting interactive access to a console (on a non-trusted system),
since such a session may provide single-user access.
2001-07-27 00:05:04 +00:00
Only as much of the console name as is required to
identify it uniquely to the server is required.
.PP
2001-07-27 00:05:04 +00:00
For non-interactive options,
.B console
outputs only the requested information and exits.
.PP
.B Console
knows only of a primary
.B conserver
2003-09-22 20:49:53 +00:00
host (see the
.B \-M
option below), to which it initially connects.
2001-07-27 00:05:04 +00:00
In a multi-server environment, the primary server may refer
the client to a different server handling the requested console,
2003-09-22 20:49:53 +00:00
or it will provide a list of all servers if required (as when
.B console
2001-07-27 00:05:04 +00:00
is invoked with the
2003-09-22 20:49:53 +00:00
.B \-r
2001-07-27 00:05:04 +00:00
option).
.B Console
then opens connections to the appropriate server(s).
It is not necessary for the user of
.B console
2003-09-22 20:49:53 +00:00
to know which server manages which consoles, as long as
2001-07-27 00:05:04 +00:00
.B console
knows a valid primary server
and all available consoles are listed in the primary server's
configuration file.
.SH OPTIONS
2001-07-27 00:05:04 +00:00
.PP
2003-09-22 20:49:53 +00:00
Options may be given as separate arguments (e.g.,
.B \-v
.BR \-w )
or clustered (e.g.,
.BR \-vw ).
2001-07-27 00:05:04 +00:00
Options and their arguments may be separated by optional white space.
Option arguments containing spaces or other characters special to the shell
must be quoted.
2003-09-22 20:49:53 +00:00
.TP 11
2001-07-27 00:05:04 +00:00
.B \-7
2003-09-22 20:49:53 +00:00
Strip the high bit off of all data received, whether from user
input or from the server, before any processing occurs.
2001-07-27 00:05:04 +00:00
Disallows escape sequence characters with the high bit set.
.TP
.B \-a
2001-07-27 00:05:04 +00:00
Access a console with a two-way (read-write) connection (this is the default).
The connection is dropped to spy mode if someone else is attached read-write.
.TP
.BI \-b message
2003-09-22 20:49:53 +00:00
Broadcast a
.I message
to all users connected to each server.
2003-03-11 02:08:07 +00:00
.TP
.BI \-B message
2003-09-22 20:49:53 +00:00
Same as
.B \-b
but just send a
.I message
to users on the primary server.
.TP
2002-10-14 21:03:35 +00:00
.BI \-c cred
2003-09-22 20:49:53 +00:00
Load an SSL certificate and key from the PEM encoded file
.IR cred .
.TP
.B \-d
Disconnect the users specified by
.IR user @ console .
You may specify the target as
.I user
(disconnect the
.IR user,
regardless of what console they are attached to),
.RI @ console
(disconnect all users attached to
.IR console ),
or
.IR user @ console
(disconnect the
.I user
attached to
.IR console ).
2002-10-14 21:03:35 +00:00
.TP
2001-07-05 16:18:19 +00:00
.B \-D
2001-07-27 00:05:04 +00:00
Enable debugging output.
2001-07-05 16:18:19 +00:00
.TP
.BI \-e esc
2003-09-22 20:49:53 +00:00
Set the initial two-character escape sequence to those represented by
.IR esc .
Any of the forms output by
.BR cat (1)'s
.B \-v
option are accepted.
The default value is
.RB `` ^Ec ''.
.TP
2002-10-14 21:03:35 +00:00
.B \-E
2003-09-22 20:49:53 +00:00
If encryption has been built into the code
.RB ( --with-openssl ),
encrypted client connections are a requirement.
This option allows the client to connect to a console
over a non-encrypted connection.
2002-10-14 21:03:35 +00:00
.TP
.B \-f
2003-09-22 20:49:53 +00:00
Same as
.B \-a
except it will force any existing connection into spy mode.
2001-07-27 00:05:04 +00:00
.TP
.B \-h
Display a brief help message.
.TP
2002-03-12 09:12:20 +00:00
.B \-i
Display information in a machine-parseable format (see below for the details).
.TP
2003-01-28 01:48:36 +00:00
.B \-I
2003-09-22 20:49:53 +00:00
Same as
.B \-i
but just acts on the primary server.
2003-01-28 01:48:36 +00:00
.TP
2001-07-05 16:18:19 +00:00
.BI \-l user
2003-09-22 20:49:53 +00:00
Set the login name used for authentication to
.IR user .
By default,
.B console
uses $USER if its uid matches the user's real uid,
2001-07-27 00:05:04 +00:00
or $LOGNAME if its uid matches the user's real uid,
or else the name associated with the user's real uid.
2001-07-05 16:18:19 +00:00
.TP
.BI \-M mach
2003-09-22 20:49:53 +00:00
The
.B console
client program polls
.I mach
as the primary server,
rather than the default set at compile time (typically
.RB `` console '').
The default
.I mach
may be changed at compile time using the
.B --with-master
option.
.TP
2001-07-05 16:18:19 +00:00
.BI \-p port
2003-09-22 20:49:53 +00:00
Set the port to connect to.
This may be either a port number
or a service name.
The default
.I port
may be changed at compile time
using the
.B --with-port
option.
2001-07-05 16:18:19 +00:00
.TP
.B \-P
2001-07-27 00:05:04 +00:00
Display the pid of the master daemon process on each server.
2001-07-05 16:18:19 +00:00
.TP
.B \-q
2003-09-22 20:49:53 +00:00
The
.B console
client connects to each server to request that the
server daemon quit (shut down).
The root password of the host(s) running conserver is required
unless the local host is listed as ``trusted'' in the
conserver.cf file; in that case, just press <return>.
.TP
.B \-Q
2003-09-22 20:49:53 +00:00
Same as
.B \-q
but just acts on the primary server.
.TP
.B \-r
2003-09-22 20:49:53 +00:00
Display daemon versions.
The
.B console
client connects to each
2001-07-27 00:05:04 +00:00
server to request its version information.
.TP
.B \-R
2003-09-22 20:49:53 +00:00
Same as
.B \-r
but just acts on the primary server.
.TP
.B \-s
2001-07-27 00:05:04 +00:00
Request a read-only (spy mode) connection.
In this mode all the escape sequences (below) work, or report errors,
but all other keyboard input is discarded.
.TP
2003-09-22 20:49:53 +00:00
.B \-t
Send a text
.I message
to
.IR user @ console .
You may specify the target as
.I user
(send to
.IR user,
regardless of what console they are attached to),
.RI @ console
(send to all users attached to
.IR console ),
or
.IR user @ console
(send to
.I user
attached to
.IR console ).
.TP
.B \-u
2003-09-29 15:50:27 +00:00
Show a list of all consoles with status (`up', `down', or `init')
2003-09-22 20:49:53 +00:00
and attached users
.RI ( user @ host
if attached read-write, `<spies>' if only users in spy mode, or `<none>').
.TP
.B \-v
2001-07-27 00:05:04 +00:00
Be more verbose when building the connection(s).
Use this option in combination with any of `show' options (below)
for added benefit.
.TP
2001-07-27 00:05:04 +00:00
.B \-V
Output the version and settings of the console client program
and then exit.
.TP
2001-07-27 00:05:04 +00:00
.B \-w
Show a list of all who are currently connected to consoles,
2003-09-22 20:49:53 +00:00
including the hostnames where the
.B console
connections originate and the idle times.
This is useful to see if anybody is actively
2001-07-27 00:05:04 +00:00
using the console system if it becomes necessary to shut down
2003-09-22 20:49:53 +00:00
.BR conserver .
2001-07-05 16:18:19 +00:00
.TP
2003-01-28 01:48:36 +00:00
.B \-W
2003-09-22 20:49:53 +00:00
Same as
.B \-w
but just acts on the primary server.
2003-01-28 01:48:36 +00:00
.TP
.B \-x
Show a list of consoles and devices.
.PP
2003-09-22 20:49:53 +00:00
The
.BR \-A ,
.BR \-F ", or"
.B \-S
options have the same effect as their lower-case variants.
2001-07-27 00:05:04 +00:00
In addition, they each request the last 20 lines of the console output after
2003-09-22 20:49:53 +00:00
making the connection (as if
.RB ` ^Ecr '
were typed).
2002-03-12 09:12:20 +00:00
.PP
2003-09-22 20:49:53 +00:00
The
.B \-i
2003-09-29 15:50:27 +00:00
option outputs information regarding each console in 13 colon-separated fields.
2002-03-12 09:12:20 +00:00
.TP
2003-09-22 20:49:53 +00:00
.I name
2002-03-12 09:12:20 +00:00
The name of the console.
.TP
2003-09-22 20:49:53 +00:00
.I hostname,pid,socket
2002-03-12 09:12:20 +00:00
The hostname, pid, and socket number of the child process managing
the console.
.TP
2003-09-22 20:49:53 +00:00
.I type
The type of console.
Values will be a `/' for a local device, `|' for
2002-03-12 09:12:20 +00:00
a command, or `!' for a remote port.
.TP
2003-09-22 20:49:53 +00:00
.I console-details
The details regarding the console.
The values here (all comma seperated) depend on the type of the console.
Local devices will have values of the device file, baud rate, and
file descriptor for the device.
2002-03-12 09:12:20 +00:00
Commands will have values of the command, the command's pid, the
pseudo-tty, and file descriptor for the pseudo-tty.
Remote ports will have values of the remote hostname, remote port number,
and file descriptor for the socket connection.
.TP
2003-09-22 20:49:53 +00:00
.I users-list
The details of each user connected to the console.
The details for each
2002-03-12 09:12:20 +00:00
user are an `@' seperated list of `w', `r', or `s' (for read-write, read-only,
2002-09-23 21:31:15 +00:00
or suspended), username, hostname the user is on, the user's idle time,
and (for `r' and `s' users only) ``rw'' or ``ro'' (if the user wants
2003-09-22 20:49:53 +00:00
read-write mode or not).
Each user bundle is seperated by commas.
2002-03-12 09:12:20 +00:00
.TP
2003-09-22 20:49:53 +00:00
.I state
The state of the console.
2003-09-29 15:50:27 +00:00
Values with either be ``up'', ``down'', or ``init''.
2002-03-12 09:12:20 +00:00
.TP
2003-09-22 20:49:53 +00:00
.I perm
This value will either be ``rw'' or ``ro''.
It will only be ``ro'' if
2002-03-12 09:12:20 +00:00
the console is a local device (`/' type) and the permissions are such
that the server can open the file for read, but not write.
.TP
2003-09-22 20:49:53 +00:00
.I logfile-details
The details regarding the logging for the console.
The comma seperated
2002-03-12 09:12:20 +00:00
values will be the logfile, ``log'' or ``nolog'' (if logging is on
or not - toggled via ^EcL), ``act'' or ``noact'' (if activity logging is
enabled or not - the `a' timestamp option), the timestamp interval, and
the file descriptor of the logfile.
.TP
2003-09-22 20:49:53 +00:00
.I break
2002-03-12 09:12:20 +00:00
The default break sequence used for the console.
.TP
2003-09-22 20:49:53 +00:00
.I reup
2002-03-12 09:12:20 +00:00
If the console is currently down and the automatic reconnection code
is at work, it will have the value of ``autoup'', otherwise it
will be ``noautoup''.
2003-09-22 20:49:53 +00:00
.TP
.I aliases
The console aliases are presented in a comma seperated list.
.TP
.I options
The active options for the console are presented in a comma seperated list.
2003-09-29 15:50:27 +00:00
.TP
.I initcmd
The initcmd configuration option for the console.
.SH "ESCAPE SEQUENCES"
2001-07-27 00:05:04 +00:00
The connection can be controlled by a two-character escape sequence, followed
2003-09-22 20:49:53 +00:00
by a command.
The default escape sequence is ``control-E c''
2001-07-27 00:05:04 +00:00
(octal 005 143).
(The escape sequences are actually processed by the server; see the
.BR conserver (8)
man page for more information.)
Commands are:
.sp
2001-07-27 00:05:04 +00:00
.PD 0
2003-09-22 20:49:53 +00:00
.TP 13
.B a
2001-07-27 00:05:04 +00:00
attach read-write if nobody already is
2003-09-22 20:49:53 +00:00
.TP
.B b
2002-03-12 09:12:20 +00:00
send broadcast message to all users on this console
2003-09-22 20:49:53 +00:00
.TP
.B c
2001-07-27 00:05:04 +00:00
toggle flow control (don't do this)
2003-09-22 20:49:53 +00:00
.TP
.B d
2001-07-27 00:05:04 +00:00
down the current console
2003-09-22 20:49:53 +00:00
.TP
.BI e cc
2001-07-27 00:05:04 +00:00
change the escape sequence to the next two characters
2003-09-22 20:49:53 +00:00
.TP
.B f
2001-07-27 00:05:04 +00:00
forcibly attach read-write
2003-09-22 20:49:53 +00:00
.TP
.B g
2001-07-27 00:05:04 +00:00
group info
2003-09-22 20:49:53 +00:00
.TP
.B L
2001-07-27 00:05:04 +00:00
toggle logging on/off
2003-09-22 20:49:53 +00:00
.TP
.B l?
2002-01-21 10:58:05 +00:00
list the break sequences available
2003-09-22 20:49:53 +00:00
.TP
.B l0
2002-01-21 10:58:05 +00:00
send the break sequence associated with this console
2003-09-22 20:49:53 +00:00
.TP
.B l1-9
2002-01-21 10:58:05 +00:00
send the specific break sequence
2003-09-22 20:49:53 +00:00
.TP
.B o
2001-07-27 00:05:04 +00:00
close (if open) and reopen the line (to clear errors (silo overflows))
and the log file
2003-09-22 20:49:53 +00:00
.TP
.B p
2001-07-27 00:05:04 +00:00
replay the last 60 lines of output
2003-09-22 20:49:53 +00:00
.TP
.B r
2001-07-27 00:05:04 +00:00
replay the last 20 lines of output
2003-09-22 20:49:53 +00:00
.TP
.B s
2001-07-27 00:05:04 +00:00
switch to spy mode (read-only)
2003-09-22 20:49:53 +00:00
.TP
.B u
2001-07-27 00:05:04 +00:00
show status of hosts/users in this group
2003-09-22 20:49:53 +00:00
.TP
.B v
2001-07-27 00:05:04 +00:00
show the version of the group server
2003-09-22 20:49:53 +00:00
.TP
.B w
2001-07-27 00:05:04 +00:00
who is using this console
2003-09-22 20:49:53 +00:00
.TP
.B x
2001-07-27 00:05:04 +00:00
examine this group's devices and modes
2003-09-22 20:49:53 +00:00
.TP
.B z
2001-07-27 00:05:04 +00:00
suspend this connection
2003-09-22 20:49:53 +00:00
.TP
.B ?
2001-07-27 00:05:04 +00:00
display list of commands
2003-09-22 20:49:53 +00:00
.TP
.BR ^M " (return)"
2001-07-27 00:05:04 +00:00
continue, ignore the escape sequence
2003-09-22 20:49:53 +00:00
.TP
.BR ^R " (ctrl-R)"
2001-07-27 00:05:04 +00:00
replay the last line only
2003-09-22 20:49:53 +00:00
.TP
.BI \e ooo
send character having octal code
.IR ooo " (must"
specify three octal digits)
2001-07-27 00:05:04 +00:00
.IP \.
disconnect
.PD
.PP
If any other character is hit after the escape sequence, all three characters
will be discarded.
Note that a line break or a down command
can only be sent from a full two-way attachment.
To send the escape sequence through the connection one must redefine
2003-09-22 20:49:53 +00:00
the outer escape sequence, or use
.BI ^Ec\e ooo
to send the
2001-07-27 00:05:04 +00:00
first escape character before typing the second character directly.
.PP
2003-09-22 20:49:53 +00:00
In the
.B \-u
output, the login ``<none>'' indicates no one is
2001-07-27 00:05:04 +00:00
viewing that console, and the login ``<spies>'' indicates that
2003-09-22 20:49:53 +00:00
no one has a full two-way attachment.
When no one is attached to
a console its output is cloned to the stdout of the server process if
.B conserver
was started with the
.B \-u
option.
.SH EXAMPLES
2003-09-22 20:49:53 +00:00
.TP 15
console \-u
Outputs something like:
2001-07-27 00:05:04 +00:00
.IP
2003-09-22 20:49:53 +00:00
.ft CR
.nf
dumb up <none>
expert up ksb@mentor
tyro up <spies>
mentor up <none>
sage up fine@cis
.fi
.ft
.IP
The
.B <none>
indicates no one is viewing
.IR dumb
or
.IR mentor ,
the
.B <spies>
indicates only read-only connections exist for
.IR tyro ,
and other
.IR login @ host
entries indicate users attached read-write to
.I sage
2001-07-27 00:05:04 +00:00
and
2003-09-22 20:49:53 +00:00
.IR expert .
.TP
console \-w
Outputs something like:
2003-09-22 20:49:53 +00:00
.IP
.ft CR
.nf
ksb@extra attach 2days expert
file@cis attach 21:46 sage
dmr@alice spy \00:04 tyro
.fi
.ft
2001-07-27 00:05:04 +00:00
.IP
The third column is the idle time of the user.
2003-09-22 20:49:53 +00:00
Either
.IR hours : minutes
or number of days is displayed.
.TP
2003-09-22 20:49:53 +00:00
console \-e "^[1" lv426
Requests a connection to the host ``lv426'' with the escape characters
set to ``escape one''.
.SH BUGS
It is possible to create a loop of console connections, with ugly results.
2003-09-22 20:49:53 +00:00
Never run
.B console
from within a console connection (unless you set each
2001-07-05 16:18:19 +00:00
escape sequence differently).
.PP
2003-09-29 15:50:27 +00:00
The \-i output can produce more than the stated number of fields of
information if the user-provided information has embedded colons.
.PP
2003-09-22 20:49:53 +00:00
I'm sure there are more, I just don't know where they are.
Please let me know if you find any.
.SH AUTHORS
2001-07-27 00:05:04 +00:00
Thomas A. Fine, Ohio State Computer Science
.br
Kevin Braunsdorf, Purdue University Computing Center
.br
2001-07-05 16:18:19 +00:00
Bryan Stansell, conserver.com
.SH "SEE ALSO"
2001-07-27 00:05:04 +00:00
.BR conserver.cf (5),
.BR conserver.passwd (5),
.BR conserver (8)