System information
Rel. 7.0 and 8.0 Red Book for AIX
© 2006 Intuit Inc. All rights reserved. 37
3. If the tty is still unusable, detach and re-attach the cable from the hung port.
AIX uses the DCD (Data Carrier Detect) signal to determine the presence of a device
attached to the port. Detaching and re-attaching the cable in many cases clears hung
processes.
To determine the location of the port for which the tty is configured, use the following
command:
lsdev -Cl tty0
The third column of the output of this command indicates the address of the tty. In the
following example, s1 indicates that the tty is configured for native serial port 1.
tty0 Available 00-00-s1-00 Asynchronous Terminal
4. It the tty is still unusable, flush the port by using the following command:
/usr/lbin/tty/stty-cxma flush tty0
This command is intended for tty's configured for ports of the 128-port adapter. In some
cases you can use this command to flush other tty ports.
5. If the tty is still unusable, on the keyboard of the hung terminal press the Q key while
holding down the Ctrl key (also known as Ctrl-Q) to resume any suspended output by
sending an Xon character.
6. If the unresponsive tty is on an AIX 4.x system, do the following:
• Enter the following command to get the major and minor numbers of the tty:
ls -l /dev/tty0
The system returns something like the following:
crw--w--w 1 root system 44,129 Aug 28 13:12 /dev/tty0
The major and minor numbers are 44 and 129 respectively.
• Enter the following command to reset this tty:
/usr/sbin/strreset -M 44 -m 129
7. Regardless of the system, if the tty is still unusable, bring the tty down to a DEFINED
state and then make it available. A program will sometimes open a tty port, modify some
attributes, and, when closing the port, not reset those attributes.
Enter the following command to make the tty unavailable to the system, but leave the
information concerning the tty in the database:
rmdev -l tty0
Enter the following command to reactivate the tty and make it available to the system:
mkdev -l tty0