Skip Navigation Links | |
Exit Print View | |
System Administration Guide: Advanced Administration Oracle Solaris 10 8/11 Information Library |
1. Managing Terminals and Modems (Overview)
2. Setting Up Terminals and Modems (Tasks)
3. Managing Serial Ports With the Service Access Facility (Tasks)
Managing Serial Ports (Task Map)
Using the Service Access Facility
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
4. Managing System Resources (Overview)
5. Displaying and Changing System Information (Tasks)
7. Managing UFS Quotas (Tasks)
8. Scheduling System Tasks (Tasks)
9. Managing System Accounting (Tasks)
10. System Accounting (Reference)
11. Managing System Performance (Overview)
12. Managing System Processes (Tasks)
13. Monitoring System Performance (Tasks)
14. Troubleshooting Software Problems (Overview)
16. Managing Core Files (Tasks)
17. Managing System Crash Information (Tasks)
18. Troubleshooting Miscellaneous Software Problems (Tasks)
19. Troubleshooting File Access Problems (Tasks)
20. Resolving UFS File System Inconsistencies (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.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
# 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
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) 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.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) 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.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) 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 3-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.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) 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.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) 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.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) 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.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) 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 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.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) 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.