Skip Navigation Links | |
Exit Print View | |
System Administration Guide: Advanced Administration Oracle Solaris 11 Express 11/10 |
1. Managing Terminals, Modems and Serial Port Services (Tasks)
Terminals, Modems, Ports, and Services
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)
Port Monitor Service Administration (pmadm)
TTY Monitor and Network Listener Port Monitors
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
Administering ttymon services (Task Map)
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
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)
Console administration for ttymon is now managed by SMF. Use the svccfg command to set ttymon system console properties. Continue to use the SAF command, sacadm, to add, list, remove, kill, start, enable, disable, enable, and remove ttymon port monitors.
This procedure shows how to change the console terminal type by using the svccfg command.
$ su - Password: #
Note - This method works whether root is a user or a role.
# svccfg -s console-login setprop ttymon/terminal_type = "xterm"
where xterm is an example of a terminal type that you might want to use.
# svcadm restart svc:/system/console-login:default
Caution - If you choose to restart the service instance immediately, you are logged out of the console. If you do not restart the service instance immediately, the property changes apply at the next login prompt on the console. |
This procedure shows how to set the baud rate speed on the ttymon console terminal. Support for console speeds on x86 based systems are dependent on the specific platform.
The following are supported console speeds for SPARC based systems:
9600 bps
19200 bps
38400 bps
For more information, see How to Obtain Administrative Rights in System Administration Guide: Security Services.
# eeprom ttya-mode=baud-rate,8,n,1,-
For example, to change the baud rate on an x86 based system's console to 38400, type:
# eeprom ttya-mode=38400,8,n,1,-
console baud-rate hupcl opost onlcr:baud-rate::console
Note that these changes are platform-dependent.
On SPARC based systems: Change the baud rate speed in the /kernel/drv/options.conf file.
Use the following command to change the baud rate to 9600:
# 9600 :bd: ttymodes="2502:1805:bd:8a3b:3:1c:7f:15:4:0:0:0:11:13:1a:19:12:f:17:16";
Use the following command to change the baud rate speed to 19200.
# 19200 :be: ttymodes="2502:1805:be:8a3b:3:1c:7f:15:4:0:0:0:11:13:1a:19:12:f:17:16";
Use the following command to change the baud rate speed to 38400:
# 38400 :bf: ttymodes="2502:1805:bf:8a3b:3:1c:7f:15:4:0:0:0:11:13:1a:19:12:f:17:16";
On x86 based systems: Change the console speed if the BIOS serial redirection is enabled. The method that you use to change the console speed is platform-dependent.
For more information, see How to Obtain Administrative Rights in System Administration Guide: Security Services.
# sacadm -a -p mbmon -t ttymon -c /usr/lib/saf/ttymon -v `ttyadm -V` -y "TTY Ports a & b"
Specifies the add port monitor option.
Specifies the pmtag mbmon as the port monitor tag.
Specifies the port monitor type as ttymon.
Defines the command string used to start the port monitor.
Specifies the version number of the port monitor.
Defines a comment to describe this instance of the port monitor.
For more information, see How to Obtain Administrative Rights in System Administration Guide: Security Services.
# sacadm -l -p mbmon
Specifies the list port monitor status flag.
Specifies the pmtag mbmon as the port monitor tag.
Example 1-1 Viewing ttymon Port Monitor Status
This example shows how to view a port monitor named, mbmon.
# sacadm -l -p mbmon PMTAG PMTYPE FLGS RCNT STATUS COMMAND mbmon ttymon - 0 STARTING /usr/lib/saf/ttymon #TTY Ports a & b
Identifies the port monitor name, mbmon.
Identifies the port monitor type, ttymon.
Indicates whether the following flags are set:
Do not enable the new port monitor.
Do not start the new port monitor.
No flags are set.
Indicates the return count value. A return count of 0 indicates that the port monitor is not to be restarted if it fails.
Indicates the current status of the port monitor.
Identifies the command used to start the port monitor.
Identifies any comment used to describe the port monitor.
For more information, see How to Obtain Administrative Rights in System Administration Guide: Security Services.
# sacadm -k -p mbmon
Specifies the kill port monitor status flag.
Specifies the pmtag mbmon as the port monitor tag.
For more information, see How to Obtain Administrative Rights in System Administration Guide: Security Services.
# sacadm -s -p mbmon
Specifies the start port monitor status flag.
Specifies the pmtag mbmon as the port monitor tag.
Disabling a port monitor prevents new services from starting, without affecting existing services.
For more information, see How to Obtain Administrative Rights in System Administration Guide: Security Services.
# sacadm -d -p mbmon
Specifies the disable port monitor status flag.
Specifies the pmtag mbmon as the port monitor tag.
Enabling a ttymon port monitor allows it to service new requests.
For more information, see How to Obtain Administrative Rights in System Administration Guide: Security Services.
# sacadm -e -p mbmon
Specifies the enable port monitor status flag.
Specifies the pmtag mbmon as the port monitor tag.
Removing a port monitor deletes all the configuration files that are associated with it.
Note - Port monitor configuration files cannot be updated or changed by using the sacadm command. To reconfigure a port monitor, remove it and then add a new one.
For more information, see How to Obtain Administrative Rights in System Administration Guide: Security Services.
# sacadm -r -p mbmon
Specifies the remove port monitor status flag.
Specifies the pmtag mbmon as the port monitor tag.