format and output port monitor-specific information
/usr/sbin/ttyadm [-P] [-b] [-c] [-r count] [-h] [-i msg] [-m modules]
[-p prompt] [-t timeout] [-o] -d device -l ttylabel -s service
The ttyadm command formats
and writes it to standard output,
from where it can be used by the
to update the administrative file for ttymon.
The Service Access Facility (SAF) requires
each port monitor to provide such a command.
ttyadm is the front-end for the ttymon Daemon Mode.
Instructs the ttymon
port monitor that PPP is being used over the link,
so that call services information is passed to the PPP
shell, via the calls_t structure.
for more information.
Sets the bidirectional port flag.
When this flag is set, the line can be used in both directions.
ttymon will allow users to connect to the service associated with the
port, but if the port is free, uucico, cu, or ct
can use it for dialing out.
Sets the connect-on-carrier flag for the port.
If the -c flag is set, ttymon will invoke the port's associated
service immediately when a connect indication is received (that is, no
prompt is printed and no baud-rate searching is done).
device is the full pathname of the device file for the tty port.
Sets the hangup flag for the port.
If the -h flag is not set, ttymon will force a hangup on the
line by setting the speed to zero before setting the speed to the default
or specified value.
Specifies the inactive (disabled) response message.
This message will be sent to the tty port if the port is disabled or the
ttymon monitoring the port is disabled.
Specifies which ttylabel in the /etc/ttydefs file to use
as the starting point when searching for the proper baud rate.
Specifies a list of pushable STREAMS modules.
The modules will be pushed, in the order in which they are specified, before the
service is invoked.
modules must be a comma-separated list of modules, with no white
Any modules currently on the stream will be popped before these
modules are pushed.
Enables support for port initialization in some modems.
The modem dialer is invoked via the
call which resets the modem to a default configuration.
Specifies the prompt message, for example,
When the -r option is invoked, ttymon will wait until it receives
data from the port before it displays a prompt.
If count is equal to zero, ttymon will wait until it
receives any character.
If count is greater than zero, ttymon will wait until
count newlines have been received.
the full pathname of the service to be invoked when a connection request
If arguments are required, the command and its arguments must
be enclosed in double quotes.
If service is specified as auto, then
ttymon determines which service to invoke using
the /etc/ics/Callservices file, see
Specifies that ttymon should close a port if
no input data is received in timeout seconds
from the beginning of a connect indication.
Displays the version number of the current /usr/lib/saf/ttymon command.
If successful, ttyadm will generate the requested information,
write it on
the standard output, and exit with a status of 0.
If ttyadm is invoked with an
invalid number of arguments or invalid arguments,
or if an incomplete option is specified, an error message will be
written to the standard error and ttymon will exit
with a non-zero status.
language-specific message file (see LANG on
When using the -b option with the -r 0 option, only one character
needs to be given in order to return a prompt.
-r should not be used with a modem configured for a switched carrier.
If the -r count is too low, the tty line may go into an infinite
echo loop, which will cause the RX/TX lights to flash wildly.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004