System Administration Guide: Advanced Administration

A Port Monitor at Work: ttymon

Whenever you attempt to log in by using a directly connected modem or alphanumeric terminal, ttymon goes to work, as follows.

As shown in the following figure, the init process is the first process to be started at boot time. Consulting its administrative file (/etc/inittab), the init process starts other processes as they are needed. Listed among those processes is the SAC.

SAC, in turn, automatically starts the port monitors designated in its administrative file (/etc/saf/_sactab). The following figure shows only a single ttymon port monitor.

After the ttymon port monitor has been started, it monitors the serial port lines for service requests.

Figure 12–1 How ttymon Helps Process a Login Request

Graphic

When someone attempts to log in by using an alphanumeric terminal or a modem, the serial port driver passes the activity to the operating system. The ttymon port monitor notes the serial port activity, and attempts to establish a communications link. The ttymon port monitor determines what data transfer rate, line discipline, and handshaking protocol are required to communicate with the device.

Having established the proper parameters for communication with the modem or terminal, the ttymon port monitor passes these parameters to the login program and transfers control to it.