System Administration Guide: Advanced Administration

Administering ttymon Port Monitors

Use the sacadm command to add, list, remove, kill, start, enable, disable, enable, and remove a ttymon port monitor.

How to Add a ttymon Port Monitor

  1. Become superuser.

  2. Add a 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 add port monitor option.

    -p

    Specifies the pmtag mbmon as the port monitor tag.

    -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 a comment to describe this instance of the port monitor. 

How to View ttymon Port Monitor Status

  1. Become superuser.

  2. View the status of a ttymon port monitor.


    # sacadm -l -p mbmon
    

    -l

    Specifies the list port monitor status flag.

    -p

    Specifies the pmtag mbmon as the port monitor tag.

Example—Viewing ttymon Port Monitor Status


# 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 flags are set: 

  • d, do not enable the new port monitor

  • x, do not start the new port monitor

  • dash (-), no flags are set

RCNT

Indicates the return count value. A return count of 0 indicates that the port monitor is not to be restarted if it fails.

STATUS

Indicates the current status of the port monitor. 

COMMAND

Identifies the command used to start the port monitor. 

#TTY Ports a & b

Identifies any comment used to describe the port monitor. 

How to Stop a ttymon Port Monitor

  1. Become superuser.

  2. Stop a ttymon port monitor.


    # sacadm -k -p mbmon
    

    -k

    Specifies the kill port monitor status flag.

    -p

    Specifies the pmtag mbmon as the port monitor tag.

How to Start a ttymon Port Monitor

  1. Become superuser.

  2. Start a killed ttymon port monitor.


    # sacadm -s -p mbmon
    

    -s

    Specifies the start port monitor status flag.

    -p

    Specifies the pmtag mbmon as the port monitor tag.

How to Disable a ttymon Port Monitor

Disabling a port monitor prevents new services from starting, without affecting existing services.

  1. Become superuser.

  2. Disable a ttymon port monitor.


    # sacadm -d -p mbmon
    

    -d

    Specifies the disable port monitor status flag.

    -p

    Specifies the pmtag mbmon as the port monitor tag.

How to Enable a ttymon Port Monitor

Enabling a ttymon port monitor allows it to service new requests.

  1. Become superuser.

  2. Enable a ttymon port monitor.


    # sacadm -e -p mbmon
    

    -e

    Specifies the enable port monitor status flag.

    -p

    Specifies the pmtag mbmon as the port monitor tag.

How to Remove a ttymon Port Monitor

  1. Become superuser.

  2. Remove a ttymon port monitor.


    # sacadm -r -p mbmon
    

    -r

    Specifies the remove port monitor status flag.

    -p

    Specifies the pmtag mbmon as the port monitor tag.


Note –

Removing a port monitor deletes all the configuration files associated with it. 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.