Configuring HP-UX For Peripherals
Chapter 4 125
Configuring Terminals and Modems
Additionally Configuring HP-UX for a Modem
documented on the inittab (4) manpage of the HP-UX Reference. For
example:
p5:234:respawn:/usr/sbin/getty -h -t 240 ttyd2p5 9600
• The p5 is a label used to uniquely identify the entry.
• This getty is executed when the system is in both run states 1 and 2.
• The respawn tells init to restart the process if it dies for any reason.
• The /usr/sbin/getty is the process used to open the port and
provide the initial login prompt.
• The -h option ensures that the getty will set the port speed before
resetting the port, which is crucial for the modem to work properly.
• The -t 240 is a security option to require that the user login name
and password is typed within 240 seconds.
• The ttyd2p5 is the device for modem port through which the getty
will receive incoming calls. (getty will complete the device name by
prefixing /dev to the port designation.)
• The 9600 does not represent the baud rate, but represents a label in
the /etc/gettydefs file. See gettydefs (4).
Step 9. After saving the file, invoke the following command to activate the
updated /etc/inittab file:
/sbin/init q
Step 10. To verify that getty is running on the port in a pending state, execute
ps-ef | grep ttyd2p5 (using the device file name for which the getty
was created). You should see a question mark in the tty field.
Step 11. With modem still disconnected from the port, but powered on, the DTR
or TR light should be off. Connect the modem to its port. DTR or TR light
should come on. This verifies that the port (not the modem) is setting
DTR or TR. If DTR or TR light remains on all the time, the modem has
DTR strapped high and setting should be changed. Check the modem
users' manual for procedure on how to change strapping.
Step 12. Execute another ps -ef
| grep ttyd2p5 command to verify that getty is stillin a pending state.
If getty has a port number in the tty field instead of a question mark,
the modem has carrier detect (CD) strapped high. Check the modem