2 .\" Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved.
3 .\" Copyright 1989 AT&T
4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 .TH TTYADM 1M "Sep 14, 1992"
9 ttyadm \- format and output port monitor-specific information
13 \fB/usr/sbin/ttyadm\fR [\fB-b\fR] [\fB-c\fR] [\fB-h\fR] [\fB-I\fR] [\fB-r\fR \fIcount\fR] [\fB-i\fR \fImsg\fR]
14 [\fB-m\fR \fImodules\fR] [\fB-p\fR \fIprompt\fR] [\fB-t\fR \fItimeout\fR] [\fB-S\fR y | n]
15 [\fB-T\fR \fItermtype\fR] \fB-d\fR \fIdevice\fR \fB-l\fR \fIttylabel\fR \fB-s\fR \fIservice\fR
20 \fB/usr/sbin/ttyadm\fR \fB-V\fR
26 The \fBttyadm\fR command is an administrative command that formats
27 \fBttymon\fR(1M)-specific information and writes it to standard output. The
28 Service Access Facility (SAF) requires each port monitor to provide such a
29 command. Note that the port monitor administrative file is updated by the
30 Service Access Controller's administrative commands, \fBsacadm\fR(1M) and
31 \fBpmadm\fR(1M). \fBttyadm\fR provides a means of presenting formatted port
32 monitor-specific (\fBttymon\fR-specific) data to these commands.
36 The following options are supported:
43 Set the ``bi-directional port'' flag. When this flag is set, the line can be
44 used in both directions. \fBttymon\fR will allow users to connect to the
45 service associated with the port, but if the port is free, \fBuucico\fR(1M),
46 \fBcu\fR(1C), or \fBct\fR(1C) can use it for dialing out.
55 Set the connect-on-carrier flag for the port. If the \fB-c\fR flag is set,
56 \fBttymon\fR will invoke the port's associated service immediately when a
57 connect indication is received (that is, no prompt is printed and no baud-rate
64 \fB\fB-d\fR\fI device\fR\fR
67 \fIdevice\fR is the full pathname of the device file for the TTY port.
76 Set the hangup flag for the port. If the \fB-h\fR flag is not set, \fBttymon\fR
77 will force a hangup on the line by setting the speed to \fB0\fR before setting
78 the speed to the default or specified value.
84 \fB\fB-i\fR\fI message\fR\fR
87 Specify the inactive (disabled) response message. This message will be sent to
88 the TTY port if the port is disabled or the \fBttymon\fR monitoring the port is
98 Initialize only. If the \fB-I\fR option is used, \fBttymon\fR will invoke the
99 service only once. This can be used to configure a particular device without
100 actually monitoring it, as with software carrier.
106 \fB\fB-l\fR\fI ttylabel\fR\fR
109 Specify which \fIttylabel\fR in the \fB/etc/ttydefs\fR file to use as the
110 starting point when searching for the proper baud rate.
116 \fB\fB-m\fR\fI modules\fR\fR
119 Specify a list of pushable STREAMS modules. The modules will be pushed in the
120 order in which they are specified before the service is invoked. \fImodules\fR
121 must be a comma-separated list of modules, with no white space included. Any
122 modules currently on the stream will be popped before these modules are
129 \fB\fB-p\fR\fI prompt\fR\fR
132 Specify the prompt message, for example, ``\fBlogin:\fR''.
138 \fB\fB-r\fR\fI count\fR\fR
141 When the \fB-r\fR option is invoked, \fBttymon\fR will wait until it receives
142 data from the port before it displays a prompt. If \fIcount\fR is \fB0\fR,
143 \fBttymon\fR will wait until it receives any character. If \fIcount\fR is
144 greater than \fB0\fR, \fBttymon\fR will wait until \fIcount\fR newlines have
151 \fB\fB-s\fR\fI service\fR\fR
154 \fIservice\fR is the full pathname of the service to be invoked when a
155 connection request is received. If arguments are required, the command and its
156 arguments must be enclosed in double quotes (" ").
162 \fB\fB-S\fR \fBy|n\fR\fR
165 Set the software carrier value. \fBy\fR will turn software carrier on. \fBn\fR
166 will turn software carrier off.
172 \fB\fB-t\fR\fI timeout\fR\fR
175 Specify that \fBttymon\fR should close a port if the open on the port succeeds,
176 and no input data is received in \fItimeout\fR seconds.
182 \fB\fB-T\fR\fI termtype\fR\fR
185 Set the terminal type. The \fBTERM\fR environment variable will be set to
195 Display the version number of the current \fB/usr/lib/saf/ttymon\fR command.
201 If successful, \fBttyadm\fR will generate the requested information, write it
202 to standard output, and exit with a status of \fB0\fR. If \fBttyadm\fR is
203 invoked with an invalid number of arguments or invalid arguments, or if an
204 incomplete option is specified, an error message will be written to standard
205 error and \fBttymon\fR will exit with a non-zero status.
210 \fB\fB/etc/ttydefs\fR\fR
219 \fBct\fR(1C), \fBcu\fR(1C), \fBpmadm\fR(1M), \fBsacadm\fR(1M),
220 \fBttymon\fR(1M), \fBuucico\fR(1M), \fBattributes\fR(5)