1ttyadm(1M) System Administration Commands ttyadm(1M)
2
3
4
6 ttyadm - format and output port monitor-specific information
7
9 /usr/sbin/ttyadm [-b] [-c] [-h] [-I] [-r count] [-i msg]
10 [-m modules] [-p prompt] [-t timeout] [-S y | n]
11 [-T termtype] -d device -l ttylabel -s service
12
13
14 /usr/sbin/ttyadm -V
15
16
18 The ttyadm command is an administrative command that formats tty‐
19 mon(1M)-specific information and writes it to standard output. The Ser‐
20 vice Access Facility (SAF) requires each port monitor to provide such a
21 command. Note that the port monitor administrative file is updated by
22 the Service Access Controller's administrative commands, sacadm(1M) and
23 pmadm(1M). ttyadm provides a means of presenting formatted port moni‐
24 tor-specific (ttymon-specific) data to these commands.
25
27 The following options are supported:
28
29 -b Set the ``bi-directional port'' flag. When this flag is
30 set, the line can be used in both directions. ttymon
31 will allow users to connect to the service associated
32 with the port, but if the port is free, uucico(1M),
33 cu(1C), or ct(1C) can use it for dialing out.
34
35
36 -c Set the connect-on-carrier flag for the port. If the -c
37 flag is set, ttymon will invoke the port's associated
38 service immediately when a connect indication is
39 received (that is, no prompt is printed and no baud-rate
40 searching is done).
41
42
43 -d device device is the full pathname of the device file for the
44 TTY port.
45
46
47 -h Set the hangup flag for the port. If the -h flag is not
48 set, ttymon will force a hangup on the line by setting
49 the speed to 0 before setting the speed to the default
50 or specified value.
51
52
53 -i message Specify the inactive (disabled) response message. This
54 message will be sent to the TTY port if the port is dis‐
55 abled or the ttymon monitoring the port is disabled.
56
57
58 -I Initialize only. If the -I option is used, ttymon will
59 invoke the service only once. This can be used to con‐
60 figure a particular device without actually monitoring
61 it, as with software carrier.
62
63
64 -l ttylabel Specify which ttylabel in the /etc/ttydefs file to use
65 as the starting point when searching for the proper baud
66 rate.
67
68
69 -m modules Specify a list of pushable STREAMS modules. The modules
70 will be pushed in the order in which they are specified
71 before the service is invoked. modules must be a comma-
72 separated list of modules, with no white space included.
73 Any modules currently on the stream will be popped
74 before these modules are pushed.
75
76
77 -p prompt Specify the prompt message, for example, ``login:''.
78
79
80 -r count When the -r option is invoked, ttymon will wait until it
81 receives data from the port before it displays a prompt.
82 If count is 0, ttymon will wait until it receives any
83 character. If count is greater than 0, ttymon will wait
84 until count newlines have been received.
85
86
87 -s service service is the full pathname of the service to be
88 invoked when a connection request is received. If argu‐
89 ments are required, the command and its arguments must
90 be enclosed in double quotes (" ").
91
92
93 -S y|n Set the software carrier value. y will turn software
94 carrier on. n will turn software carrier off.
95
96
97 -t timeout Specify that ttymon should close a port if the open on
98 the port succeeds, and no input data is received in
99 timeout seconds.
100
101
102 -T termtype Set the terminal type. The TERM environment variable
103 will be set to termtype.
104
105
106 -V Display the version number of the current
107 /usr/lib/saf/ttymon command.
108
109
111 If successful, ttyadm will generate the requested information, write it
112 to standard output, and exit with a status of 0. If ttyadm is invoked
113 with an invalid number of arguments or invalid arguments, or if an
114 incomplete option is specified, an error message will be written to
115 standard error and ttymon will exit with a non-zero status.
116
118 /etc/ttydefs
119
120
122 See attributes(5) for descriptions of the following attributes:
123
124
125
126
127 ┌─────────────────────────────┬─────────────────────────────┐
128 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
129 ├─────────────────────────────┼─────────────────────────────┤
130 │Availability │SUNWcsu │
131 └─────────────────────────────┴─────────────────────────────┘
132
134 ct(1C), cu(1C), pmadm(1M), sacadm(1M), ttymon(1M), uucico(1M),
135 attributes(5)
136
137
138
139
140
141
142SunOS 5.11 14 Sep 1992 ttyadm(1M)