Configuring HP-UX For Peripherals
Chapter 4 131
Configuring Terminals and Modems
Troubleshooting Terminal Problems
Step 7. Send a short ASCII file to the unresponsive terminal's device file.
Execute this in the background to retain the current terminal's
responsiveness. For example, for an unresponsive terminal associated
with the device file ttyd1p4,
cat /etc/motd > /dev/ttyd1p4 &
If you have solved the problem, you will see the contents of the file
/etc/motd displayed on the terminal associated with /dev/ttyd1p4.
Step 8. Kill processes associated with the problem terminal. Before killing
processes use extreme caution to be sure you are not killing a valid
process that just happens to be taking a long time to complete.First
examine the system's active processes, as shown. Then, to kill all
processes associated with a specific TTY device (for example, ttyd2p5),
execute the kill command to force specified process IDs (PID) to
terminate. Execute the kill command in the following sequence: kill
-15, kill -3, kill -1, kill -9. (See signal (5) for definitions.)
ps -ef
UID PID PPID C STIME TTY TIME COMMAND
...
root 94 1 0 Jul 20 tty0p5 0:00 /usr/sbin/getty -h tty0p5 9600
root 14517 1 0 Jul 21 ttyd1p4 0:01 -csh [csh]
jaz 20133 1 0 11:20:24 ttyd2p5 0:00 -csh [csh]
root 22147 1 0 13:33:45 ? 0:00 /etc/getty -h ttyd2p3 9600
jaz 21234 20133 0 12:22:05 ttyd2p5 0:01 rlogin remote
jaz 21235 21234 0 12:22:12 ttyd2p5 0:04 rlogin remote
kill -15 21235 21234 20133
Once the processes terminate, init restarts a new getty process for that
terminal (provided its /etc/inittab entry contains respawn).
Step 9. Check the parameters of the unresponsive terminal's device file.
Like all files, device special files have access permissions that must be
set to allow you access. For example, permissions set to 622 (crwww-) are
appropriate for a terminal. Make certain the file is a character device
file.
Step 10. Make sure your inittab entries are active. To force init to update
its initialization tables from /etc/inittab, execute the command init
q.
Step 11. Make sure the /dev/mux
n
and /dev/tty files are present. The
/dev/mux
n
is the device file associated with the interface card. The