1sttydefs(1M) System Administration Commands sttydefs(1M)
2
3
4
6 sttydefs - maintain line settings and hunt sequences for TTY ports
7
9 /usr/sbin/sttydefs -a ttylabel [-b] [-f final-flags]
10 [-i initial-flags] [-n nextlabel]
11
12
13 /usr/sbin/sttydefs -l [ttylabel]
14
15
16 /usr/sbin/sttydefs -r ttylabel
17
18
20 sttydefs is an administrative command that maintains the line settings
21 and hunt sequences for the system's TTY ports by making entries in, and
22 deleting entries from the /etc/ttydefs file.
23
24
25 sttydefs with a -a or -r option may be invoked only by the super-user.
26 sttydefs with -l may be invoked by any user on the system.
27
29 The following options are supported:
30
31 -a ttylabel Add a record to the ttydefs file, using ttylabel as
32 its label. The following describes the effect of
33 the -b, -n, -i, or -f options when used in conjunc‐
34 tion with the -a option:
35
36
37 -b Enable autobaud. Autobaud allows the system to set
38 the line speed of a given TTY port to the line
39 speed of the device connected to the port without
40 the user's intervention.
41
42
43 -f final-flags Specify the value to be used in the final-flags
44 field in /etc/ttydefs. final-flags must be in a
45 format recognized by the stty command. final-flags
46 are the termio(7I) settings used by ttymon after
47 receiving a successful connection request and imme‐
48 diately before invoking the service on the port. If
49 this option is not specified, sttydefs will set
50 final-flags equal to the termio(7I) flags 9600 and
51 sane.
52
53
54 -i initial-flags Specify the value to be used in the initial-flags
55 field in /etc/ttydefs. initial-flags must be in a
56 format recognized by the stty command. These flags
57 are used by ttymon when searching for the correct
58 baud rate. They are set prior to writing the
59 prompt. If this option is not specified, sttydefs
60 will set initial-flags equal to the termio(7I) flag
61 9600.
62
63
64 -n nextlabel Specify the value to be used in the nextlabel field
65 in /etc/ttydefs. If this option is not specified,
66 sttydefs will set nextlabel equal to ttylabel.
67
68
69 -l[ttylabel] If a ttylabel is specified, sttydefs displays the
70 record from /etc/ttydefs whose TTY label matches
71 the specified ttylabel. If no ttylabel is speci‐
72 fied, sttydefs displays the entire contents of
73 /etc/ttydefs. sttydefs verifies that each entry it
74 displays is correct and that the entry's nextlabel
75 field references an existing
76
77
78 -r ttylabel Remove any record in the ttydefs file that has
79 ttylabel as its label.
80
81
83 If successful, sttydefs will exit with a status of 0. sttydefs -l will
84 generate the requested information and send it to standard output.
85
87 Example 1 A sample of sttydefs command.
88
89
90 The following command lists all the entries in the ttydefs file and
91 prints an error message for each invalid entry that is detected.
92
93
94 example# sttydefs -l
95
96
97
98
99 The following shows a command that requests information for a single
100 label and its output:
101
102
103 example# sttydefs -l 9600
104 ------------------------------------------------------------------
105 9600:9600 hupcl erase ^h:9600 sane ixany tab3 hupcl erase ^h::4800
106 ------------------------------------------------------------------
107 ttylabel: 9600
108 initial flags: 9600 hupcl erase ^h
109 final flags: 9600 sane ixany tab3 hupcl erase ^h
110 autobaud: no
111 nextlabel: 4800
112
113
114
115
116 The following sequence of commands will add the labels 1200, 2400,
117 4800, and 9600 and put them in a circular list:
118
119
120 sttydefs -a 1200 -n 2400 -i 1200 -f "1200 sane"
121 sttydefs -a 2400 -n 4800 -i 2400 -f "2400 sane"
122 sttydefs -a 4800 -n 9600 -i 4800 -f "4800 sane"
123 sttydefs -a 9600 -n 1200 -i 9600 -f "9600 sane"
124
125
126
128 /etc/ttydefs
129
131 See attributes(5) for descriptions of the following attributes:
132
133
134
135
136 ┌─────────────────────────────┬─────────────────────────────┐
137 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
138 ├─────────────────────────────┼─────────────────────────────┤
139 │Availability │SUNWcsu │
140 └─────────────────────────────┴─────────────────────────────┘
141
143 attributes(5), termio(7I)
144
145
146
147SunOS 5.11 14 Sep 1992 sttydefs(1M)