Use the sacadm command to add, list, remove, kill, start, enable, disable, enable, and remove a ttymon port monitor.
Become superuser.
# 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. |
Become superuser.
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. |
# sacadm -l -p mbmon PMTAG PMTYPE FLGS RCNT STATUS COMMAND mbmon ttymon - 0 STARTING /usr/lib/saf/ttymon #TTY Ports a & b |
Become superuser.
# sacadm -k -p mbmon |
-k |
Specifies the kill port monitor status flag. |
-p |
Specifies the pmtag mbmon as the port monitor tag. |
Become superuser.
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. |
Disabling a port monitor prevents new services from starting, without affecting existing services.
Become superuser.
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. |
Enabling a ttymon port monitor allows it to service new requests.
Become superuser.
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. |
Become superuser.
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. |
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.