Managing server ttymon port monitors under Solaris

Source: Internet
Author: User
The ttymon port monitor of the Management Server under Solaris-Linux Enterprise Application-Linux server application information. The following is a detailed description. The console of the Solaris server ttymon is now managed by SMF. You can use the svccfg command to set ttymon console properties. Continue to use the SAF command sacadm to add, List, delete, abort, start, enable, disable, enable, and delete the ttymon port monitor.

How to set the ttymon console terminal type

This process describes how to use the svccfg command to change the console terminal type.

1. Become a Super User or assume an equivalent role.

A role contains commands that grant permissions and have certain permissions.

2. Run the svccfg command to set the attributes of the service instance to be modified.

# Svccfg-s console-login setprop ttymon/terminal_type = "xterm"

Here, "xterm" is an example of the terminal type that may be used.

3. (optional) restart the service instance.

# Svcadm restart svc:/system/console-login: default

How to set the baud rate on the ttymon console Terminal

This process describes how to set the baud rate on the ttymon console terminal. The console speed supported on x86 systems depends on the specific platform.

The following console speeds are supported on a Linux-based system:
1. 9600 bps
2. 19200 bps
3. 38400 bps

1. Become a Super User or assume an equivalent role.

A role contains commands that grant permissions and have certain permissions.

2. Use the eeprom command to set the baud rate suitable for your system type.

# Eeprom ttya-mode = baud-rate, 8, n, 1 ,-

For example, to change the baud rate of the x86-based system console to 38400, type:

# Eeprom ttya-mode = 38400, 8.n, 1 ,-

3. Change the console line in the/etc/ttydefs file as follows.

Console baud-rate hupcl opost onlcr: baud-rate: console

4. Make the following changes to your system type.

Note that these changes are related to the platform.

A. Change the baud rate in the/kernel/drv/options. conf file on a Linux-based system.
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 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 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 ";

B. on x86 systems: If BIOS serial redirection is enabled, change the console speed. The method used to change the console speed is related to the platform.

How to add a ttymon port Monitor

1. Become a Super User or assume an equivalent role.

A role contains commands that grant permissions and have certain permissions.

2. Add the ttymon port monitor.

# Sacadm-a-p mbmon-t ttymon-c/usr/lib/saf/ttymon-v 'ttyadm

-V'-y "TTY Ports a & B"

-A specifies the option to add a port monitor.
-P specifies the pmtag mbmon as the port monitor flag.
-T specifies the port monitor type as ttymon.
-C defines the command string used to start the port monitor.
-V specifies the version number of the port monitor.
-Y defines the comment describing the port monitor instance.

How to view the ttymon port monitoring status

1. Become a Super User or assume an equivalent role.

A role contains commands that grant permissions and have certain permissions.

2. view the status of the ttymon port monitor.

# Sacadm-l-p mbmon

-L specifies the status flag of the list port monitor.
-P specifies the pmtag mbmon as the port monitor flag.

Example 1: view the ttymon port monitoring status

This example shows how to view the 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

PMTAG: identifies the port monitor name mbmon.
PMTYPE: identifies the port monitor type ttymon.
FLGS: indicates whether the following flag is set:
D-do not enable the new port monitor.
X-do not start a new port monitor.
Dashes (-)-No flag is set.
RCNT: indicates the return Count value. The return count is 0, indicating that the port monitor is not heavy if it fails.
New startup.
STATUS: indicates the current STATUS of the port monitor.
COMMAND: The COMMAND used to start the port monitor.
# TTY Ports a & B: identifies any comment used to describe port monitors.

How to stop ttymon port Monitor

1. Become a Super User or assume an equivalent role.

A role contains commands that grant permissions and have certain permissions.

2. Stop the ttymon port monitor.

# Sacadm-k-p mbmon

-K specifies the status flag of the kill port monitor.
-P specifies the pmtag mbmon as the port monitor flag.

How to start ttymon port Monitor

1. Become a Super User or assume an equivalent role.

A role contains commands that grant permissions and have certain permissions.

2. Start the aborted ttymon port monitor.

# Sacadm-s-p mbmon

-S specifies the status flag of the start port monitor.
-P specifies the pmtag mbmon as the port monitor flag.

How to disable ttymon port Monitor

Disabling port monitor prevents new services from starting and does not affect existing services.

1. Become a Super User or assume an equivalent role.

A role contains commands that grant permissions and have certain permissions.

2. Disable the ttymon port monitor.

# Sacadm-d-p mbmon

-D specifies the status flag of the disable port monitor.
-P specifies the pmtag mbmon as the port monitor flag.

How to enable ttymon port Monitor

You can enable the ttymon port monitor to provide services for new requests.

1. Become a Super User or assume an equivalent role.

A role contains commands that grant permissions and have certain permissions.

2. Enable ttymon port monitor.

# Sacadm-e-p mbmon

-E specifies the status flag of the enable port monitor.
-P specifies the pmtag mbmon as the port monitor flag.

How to delete a ttymon port Monitor

Deleting a port monitor deletes all associated configuration files.

Note? The port monitor configuration file cannot be updated or changed by using the sacadm command. To reconfigure the port monitor, delete it and add a new port monitor.

1. Become a Super User or assume an equivalent role.

A role contains commands that grant permissions and have certain permissions.

# Sacadm-r-p mbmon

-R specifies the status flag of the remove port monitor.
-P specifies the pmtag mbmon as the port monitor flag.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.