| Skip Navigation Links | |
| Exit Print View | |
![]() | man pages section 1M: System Administration Commands Oracle Solaris 11 Information Library |
- maintain line settings and hunt sequences for TTY ports
/usr/sbin/sttydefs-attylabel [-b] [-ffinal-flags] [-iinitial-flags] [-nnextlabel]
/usr/sbin/sttydefs-l [ttylabel]
/usr/sbin/sttydefs-rttylabel
sttydefs is an administrative command that maintains the line settings and huntsequences for the system's TTY ports by making entries in, and deletingentries from the/etc/ttydefs file.
sttydefs with a-a or-r option may be invoked only bythe super-user.sttydefs with-l may be invoked by any user on the system.
The following options are supported:
Add a record to thettydefs file, usingttylabel as its label. The following describes the effect of the-b,-n,-i, or-f options when used in conjunction with the-a option:
Enable autobaud. Autobaud allows the system to set the line speed of a given TTY port to the line speed of the device connected to the port without the user's intervention.
Specify the value to be used in thefinal-flags field in/etc/ttydefs.final-flags must be in a format recognized by thestty command.final-flags are thetermio(7I) settings used byttymon after receiving a successful connection request and immediately before invoking the service on the port. If this option is not specified,sttydefs will setfinal-flags equal to thetermio(7I) flags9600 andsane.
Specify the value to be used in theinitial-flags field in/etc/ttydefs.initial-flags must be in a format recognized by thestty command. These flags are used byttymon when searching for the correct baud rate. They are set prior to writing the prompt. If this option is not specified,sttydefs will setinitial-flags equal to thetermio(7I) flag9600.
Specify the value to be used in thenextlabel field in/etc/ttydefs. If this option is not specified,sttydefs will setnextlabel equal tottylabel.
If attylabel is specified,sttydefs displays the record from/etc/ttydefs whose TTY label matches the specifiedttylabel. If nottylabel is specified,sttydefs displays the entire contents of/etc/ttydefs.sttydefs verifies that each entry it displays is correct and that the entry'snextlabel field references an existing
Remove any record in thettydefs file that hasttylabel as its label.
If successful,sttydefs will exit with a status of0.sttydefs-lwill generate the requested information and send it to standard output.
Example 1 A sample ofsttydefs command.
The following command lists all the entries in thettydefs file andprints an error message for each invalid entry that is detected.
example#sttydefs-l
The following shows a command that requests information for a single labeland its output:
example#sttydefs-l 9600------------------------------------------------------------------9600:9600 hupcl erase ^h:9600 sane ixany tab3 hupcl erase ^h::4800------------------------------------------------------------------ttylabel: 9600initial flags: 9600 hupcl erase ^hfinal flags: 9600 sane ixany tab3 hupcl erase ^hautobaud: nonextlabel: 4800
The following sequence of commands will add the labels1200,2400,4800,and9600 and put them in a circular list:
sttydefs-a 1200-n 2400-i 1200-f "1200 sane"sttydefs-a 2400-n 4800-i 2400-f "2400 sane"sttydefs-a 4800-n 9600-i 4800-f "4800 sane"sttydefs-a 9600-n 1200-i 9600-f "9600 sane"
/etc/ttydefs
Seeattributes(5) for descriptions of the following attributes:
|
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |