[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 System Management Guide: Communications and Networks

Managing TTY Devices

To do any task in the following table except List, a tty device must be installed.

Managing TTY Devices Tasks
Web-based System Manager:    wsm devices fast path
(Devices application)

-OR-
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 -l Name -E (to show); chdev -l Name (to change)4
Remove a TTY3 smit rmtty rmdev -l Name
Configure a Defined TTY (Make Available for Use) smit mktty mkdev -l Name
Notes:
  1. 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 0 on the 8-port asynchronous adapter sa3 with the speed attribute set to 19200 and other attributes set to values retrieved from the foo file:
    mkdev -t tty -s rs232 -p sa3 -w 0 -a speed=19200 -f foo
  2. The mkdev and chdev commands support options that are not possible with Web-based System Manager or SMIT.
  3. Disable the tty before doing this task. Refer to the pdisable command.
  4. Use flags to change specific characteristics about a tty from the command line.

If adding or changing a tty from the command line, consult the following list to find out the Attribute name you should 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

[ Previous | Next | Contents | Glossary | Home | Search ]