Previous Table of Contents Next



NOTE:  If you are setting up service on a bidirectional port, you must enable login individually for each port. To enable logins, type pmadm -e -p pmtag -s svctag and press Return.

In the following example, a Hayes-compatible 2400 baud modem is configured for bidirectional service on serial port_B. Note that the contty3H entry is an entry for a 2400 baud modem.

oak# pmadm -l
PMTAG         PMTYPE         SVCTAG         FLGS ID       <PMSPECIFIC>
zsmon       ttymon   ttya       u  root     /dev/term/a I -
/usr/bin/login - 96ØØ ldterm,ttcompat ttya login:- tvi925
y  #
zsmon       ttymon   ttyb       u  root     /dev/term/a I -
/usr/bin/login - 96ØØ ldterm,ttcompat
ttyb login:  - tvi925
y  #
oak# pmadm -r -p zsmon -s ttyb
oak# pmadm -a -p zsmon -s ttyb -i root -fu -v `ttyadm -V` -m
"`ttyadm -t tvi925 -b -d /dev/term/b -l contty3H -m
ldterm,ttcompat -s /usr/bin/login -S n`"
oak# pmadm -l
PMTAG         PMTYPE         SVCTAG         FLGS ID       <PMSPECIFIC>
zsmon       ttymon   ttya       u  root     /dev/term/a I -
/usr/bin/login - 96ØØ ldterm,ttcompat
ttya login:  - tvi925
y  #
zsmon       ttymon   ttyb       u  root     /dev/term/b b -
/usr/bin/login - contty3H ldterm,ttcompat login:
- - n  #
oak# sacadm -l
PMTAG         PMTYPE         FLGS RCNT STATUS     COMMAND
zsmon       ttymon   -    Ø    ENABLED   
/usr/lib/saf/ttymon #
oak# grep cuab /etc/remote
cuab:dv=/dev/cua/b:br#24ØØ
oak# vi /etc/uucp/Devices
If using the port for uucp, add the following line to the end of the file:
ACU cua/b,M - contty3H hayes

Dial-Out Modem Service Configuration

If you want to dial out on the modem, you do not need to configure SAF files. Once the modem is connected to the system and its switches are properly set, follow these steps to configure dial-out service:

1.  Edit the /etc/uucp/Devices file and add the following line, where n is the name of the device in the /dev/cua directory. Use the type hayes for Hayes-compatible modems.
ACU cua/n,M - ttylabel type
2.  Type pmadm -d -p pmtag -s svctag and press Return. Login service is disabled. (Permitting logins for a modem that is set up to provide dial-out service only is a security hole.)

Modem Connection Troubleshooting

When troubleshooting problems with modem connections, first check the following list with the user:

  Was the correct login ID or password used?
  Is the terminal waiting for xon flow control key?
  Is the serial cable loose or unplugged?
  Is the serial cable verified to work properly?
  Is the terminal configuration correct?
  Is the terminal turned off?

Continue troubleshooting by checking the configuration of the terminal or the modem.

  Was the proper ttylabel used?
  Does the ttylabel setting of the modem match the ttylabel of the SAF?
  If you have changed any modem switches, turn the power to the modem off, wait a few seconds, and turn it on again.

If the problem persists, check the system software.

  Was the port monitor configured to service the modem?
  Does it have the correct ttylabel associated with it?
  Does the type definition match a setting in the /etc/ttydefs file?
  Is the port monitor enabled? (Use the sacadm -l -p pmtag command.)
  Is the service enabled? (Use the pmadm -l -p pmtag command.)

If the SAC is starting the ttymon port monitor, the service is enabled, and the configuration matches the port monitor configuration, continue to search for the problem by checking the serial connection. A serial connection consists of serial ports, cables, modems, and terminals. Test each of these parts by using it with two other parts that are known to be reliable.

To check for cable problems, a breakout box is helpful. It plugs into the RS-232-C cable. A patch panel lets you connect any pin to any other pins. A breakout box often contains light-emitting diodes that show whether a signal is present on each pin.

Continue troubleshooting by checking each of the following:

  If you cannot access a port, and the ps command shows that a process is running on it, make sure that pin 8 in the cable is connected. If that does not work, check that the device driver is configured properly to set the correct flag for the line to Off.
  If the error message can't synchronize with hayes is displayed when using a Hayes-compatible modem, check the /etc/remote file and make sure that you have changed at=ventel to at=hayes.
  If the message all ports busy is displayed, the port may actually be busy running a dial-in user. Use the ps command to see what is running. You should also check to ensure that the carrier detect is set up properly. Type pmadm -l and press Return. If the last flag in the PMSPECIFIC field is y, delete the entry and reconfigure it, making sure that you use -S n (not -S y) as the last argument for ttymon. If the port still shows as busy, check the /var/spool and /var/spool/locks directories for leftover lock files. A lock file would have a name like LCK.cua0. If you find a lock file, remove it.


Previous Table of Contents Next