JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
System Administration Guide: Advanced Administration     Oracle Solaris 11 Express 11/10
search filter icon
search icon

Document Information

Preface

1.  Managing Terminals, Modems and Serial Port Services (Tasks)

Terminals, Modems, Ports, and Services

Terminal Description

Modem Description

Ports Description

Services Description

Port Monitors

Overview of the Service Access Facility

Using the Service Access Facility

Managing Serial Ports (Task Map)

Overall SAF Administration (sacadm)

Service Access Controller (SAC Program)

SAC Initialization Process

Port Monitor Service Administration (pmadm)

ttymon Port Monitor Process

Port Initialization Process

Bidirectional Service

TTY Monitor and Network Listener Port Monitors

TTY Port Monitor (ttymon)

ttymon and the Console Port

ttymon-Specific Administrative Command (ttyadm)

Network Listener Service (listen)

Special listen-Specific Administrative Command (nlsadmin)

Administering ttymon Port Monitors

How to Set the ttymon Console Terminal Type

How to Set the Baud Rate Speed on the ttymon Console Terminal

How to Add a ttymon Port Monitor

How to View ttymon Port Monitor Status

How to Stop a ttymon Port Monitor

How to Start a ttymon Port Monitor

How to Disable a ttymon Port Monitor

How to Enable a ttymon Port Monitor

How to Remove a ttymon Port Monitor

Administering ttymon services (Task Map)

Administering ttymon Services

How to Add a Service

How to View the Status of a TTY Port Service

How to Enable a Port Monitor Service

How to Disable a Port Monitor Service

Service Access Facility Administration (Reference)

Files That Are Associated With the SAF

/etc/saf/_sactab File

/etc/saf/pmtab/_pmtab File

Service States

Port Monitor States

Port States

2.  Displaying and Changing System Information (Tasks)

3.  Scheduling System Tasks (Tasks)

4.  Managing System Processes (Tasks)

5.  Monitoring System Performance (Tasks)

6.  Troubleshooting Software Problems (Tasks)

7.  Managing Core Files (Tasks)

8.  Managing System Crash Information (Tasks)

9.  Troubleshooting Miscellaneous System Problems (Tasks)

Index

Port Monitor Service Administration (pmadm)

The pmadm command enables you to administer port monitors' services. In particular, you use the pmadm command to add or remove a service and to enable or disable a service. You can also install or replace per-service configuration scripts, or print information about a service.

Each instance of a service must be uniquely identified by a port monitor and a port. When you use the pmadm command to administer a service, you specify a particular port monitor with the pmtag argument, and a particular port with the svctag argument.

For each port monitor type, the SAF requires a specialized command to format port monitor-specific configuration data. This data is used by the pmadm command. For ttymon and listen type port monitors, these specialized commands are ttyadm and nlsadmin, respectively.

ttymon Port Monitor Process

Whenever you attempt to log in by using a directly connected modem or alphanumeric terminal, ttymon goes to work. First, the SAC process is started by SMF. Then, the SAC automatically starts the port monitors that are designated in its administrative file, /etc/saf/_sactab. After the ttymon port monitor has been started, it monitors the serial port lines for service requests.

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 which data transfer rate, line discipline, and handshaking protocol are required to communicate with the device.

After the proper parameters for communication with the modem or terminal are established, the ttymon port monitor passes these parameters to the login program and transfers control to it. For more information, see TTY Monitor and Network Listener Port Monitors.

Port Initialization Process

When an instance of the ttymon port monitor is invoked by the SAC, ttymon starts to monitor its ports. For each port, the ttymon port monitor first initializes the line disciplines, if they are specified, and the speed and terminal settings. The values used for initialization are taken from the appropriate entry in the /etc/ttydefs file.

The ttymon port monitor then writes the prompt and waits for user input. If the user indicates that the speed is inappropriate by pressing the Break key, the ttymon port monitor tries the next speed and writes the prompt again.

If autobaud is enabled for a port, the ttymon port monitor tries to determine the baud rate on the port automatically. Users must press Return before the ttymon port monitor can recognize the baud rate and print the prompt.

When valid input is received, the ttymon port monitor does the following tasks:

After the service terminates, the ttymon port monitor cleans up the /etc/utmpx entry, if this entry exists, and returns the port to its initial state.

Bidirectional Service

If a port is configured for bidirectional service, the ttymon port monitor does the following: