TTY device management
Device management tasks and their associated SMIT fast paths and commands can be referenced here.
| Task | SMIT fast path | Command or file |
|---|---|---|
| List Defined TTY Devices | smit lsdtty | lsdev -C -c tty -H |
| Add a TTY | smit mktty | mkdev -t tty1,2 |
| Move a TTY to Another Port3 | smit movtty | chdev -l Name -p ParentName -w ConnectionLocation2,4 |
| Change/Show Characteristics of a TTY | smit chtty | lsattr -lName -E (to show); chdev -l Name (to change)4,5 |
| Remove a TTY3 | smit rmtty | rmdev -l Name |
| Configure a Defined TTY (Make Available for Use) | smit mktty | mkdev -l Name |
Note:
- Other flags may be used to further specify the new tty device.
For example, to define and configure an RS-232 tty device connected
to port
0on the 8-port asynchronous adaptersa3with thespeedattribute set to19200and other attributes set to values retrieved from thefoofile:mkdev -t tty -s rs232 -p sa3 -w 0 -a speed=19200 -f foo - The mkdev and chdev commands support options that are not possible with SMIT.
- Disable the tty before doing this task. See the pdisable command in Commands Reference, Volume 4.
- Use flags to change specific characteristics about a tty from the command line.
- You can select a Posix baud rate from the List function, or you can type in non-Posix baud rate directly into the field. If the selected baud rate cannot be supported by the modem's hardware, the system displays an error message.
If adding or changing a tty from the command line, consult the following list to find out the Attribute name to specify in the -a Attribute=Value flag for the characteristic you want to set. For example, specify -a speed=Value to set the baud rate of a tty device.
| Characteristic | Attribute Name |
|---|---|
| Enable LOGIN | login |
| BAUD rate speed | speed |
| PARITY | parity |
| BITS per character | bpc |
| Number of STOP BITS | stops |
| TIME before advancing to next port setting | timeout |
| XON-XOFF handshaking | xon |
| TERMINAL type | term |
| FLOW CONTROL to be used | flow_disp |
| OPEN DISCIPLINE to be used | open_disp |
| STTY attributes for RUN time | runmodes |
| STTY attributes for LOGIN | logmodes |
| RUN shell activity manager | shell |
| LOGGER name | logger |
| STATUS of device at BOOT time | autoconfig |
| TRANSMIT buffer count | tbc |
| RECEIVE trigger level | rtrig |
| STREAMS modules to be pushed at open time | modules |
| INPUT map file | imap |
| OUTPUT map file | omap |
| CODESET map file | csmap |
| INTERRUPT character | intr |
| QUIT character | quit |
| ERASE character | erase |
| KILL character | kill |
| END OF FILE character | eof |
| END OF LINE character | eol |
| 2nd END OF LINE character | eol2 |
| DELAY SUSPEND PROCESS character | dsusp |
| SUSPEND PROCESS character | susp |
| LITERAL NEXT character | lnext |
| START character | start |
| STOP character | stop |
| WORD ERASE character | werase |
| REPRINT LINE character | reprint |
| DISCARD character | discard |