6324 Add an `ndp' tool for manipulating the neighbors table
[illumos-gate.git] / usr / src / man / man1m / ttyadm.1m
blob15772190f704f1d7396aef7ddfe8f4ce456adfc7
1 '\" te
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"
8 .SH NAME
9 ttyadm \- format and output port monitor-specific information
10 .SH SYNOPSIS
11 .LP
12 .nf
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
16 .fi
18 .LP
19 .nf
20 \fB/usr/sbin/ttyadm\fR \fB-V\fR
21 .fi
23 .SH DESCRIPTION
24 .sp
25 .LP
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.
33 .SH OPTIONS
34 .sp
35 .LP
36 The following options are supported:
37 .sp
38 .ne 2
39 .na
40 \fB\fB-b\fR\fR
41 .ad
42 .RS 15n
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.
47 .RE
49 .sp
50 .ne 2
51 .na
52 \fB\fB-c\fR\fR
53 .ad
54 .RS 15n
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
58 searching is done).
59 .RE
61 .sp
62 .ne 2
63 .na
64 \fB\fB-d\fR\fI device\fR\fR
65 .ad
66 .RS 15n
67 \fIdevice\fR is the full pathname of the device file for the TTY port.
68 .RE
70 .sp
71 .ne 2
72 .na
73 \fB\fB-h\fR\fR
74 .ad
75 .RS 15n
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.
79 .RE
81 .sp
82 .ne 2
83 .na
84 \fB\fB-i\fR\fI message\fR\fR
85 .ad
86 .RS 15n
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
89 disabled.
90 .RE
92 .sp
93 .ne 2
94 .na
95 \fB\fB-I\fR\fR
96 .ad
97 .RS 15n
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.
104 .ne 2
106 \fB\fB-l\fR\fI ttylabel\fR\fR
108 .RS 15n
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.
114 .ne 2
116 \fB\fB-m\fR\fI modules\fR\fR
118 .RS 15n
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
123 pushed.
127 .ne 2
129 \fB\fB-p\fR\fI prompt\fR\fR
131 .RS 15n
132 Specify the prompt message, for example, ``\fBlogin:\fR''.
136 .ne 2
138 \fB\fB-r\fR\fI count\fR\fR
140 .RS 15n
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
145 been received.
149 .ne 2
151 \fB\fB-s\fR\fI service\fR\fR
153 .RS 15n
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 (" ").
160 .ne 2
162 \fB\fB-S\fR \fBy|n\fR\fR
164 .RS 15n
165 Set the software carrier value.  \fBy\fR will turn software carrier on. \fBn\fR
166 will turn software carrier off.
170 .ne 2
172 \fB\fB-t\fR\fI timeout\fR\fR
174 .RS 15n
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.
180 .ne 2
182 \fB\fB-T\fR\fI termtype\fR\fR
184 .RS 15n
185 Set the terminal type.  The \fBTERM\fR environment variable will be set to
186 \fItermtype\fR.
190 .ne 2
192 \fB\fB-V\fR\fR
194 .RS 15n
195 Display the version number of the current \fB/usr/lib/saf/ttymon\fR command.
198 .SH OUTPUT
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.
206 .SH FILES
208 .ne 2
210 \fB\fB/etc/ttydefs\fR\fR
212 .RS 16n
216 .SH SEE ALSO
219 \fBct\fR(1C), \fBcu\fR(1C), \fBpmadm\fR(1M), \fBsacadm\fR(1M),
220 \fBttymon\fR(1M), \fBuucico\fR(1M), \fBattributes\fR(5)
223 \fI\fR