Use pmadm to add services, list the services of one or more ports associated with a port monitor, and enable or disable a service.
Become superuser.
Add a standard terminal service to the mbmon port monitor.
# pmadm -a -p mbmon -s a -i root -v `ttyadm -V` -m "`ttyadm -i 'Terminal disabled' -l contty -m ldterm,ttcompat -S y -d /dev/term/a -s /usr/bin/login`" |
In this example, the input wraps automatically to the next line. Do not use a Return or line feed.
-a |
Specifies the add port monitor status flag. |
-p |
Specifies the pmtag mbmon as the port monitor tag. |
-s |
Specifies the svctag a as the port monitor service tag. |
-i |
Specifies the identity to be assigned to svctag when the service runs. |
-v |
Specifies the version number of the port monitor. |
-m |
Specifies the ttymon-specific configuration data formatted by ttyadm. |
The preceding pmadm command contains an embedded ttyadm command. The options in this embedded command are as follows:
-b |
Specifies the bidirectional port flag. |
-i |
Specifies the inactive (disabled) response message. |
-l |
Specifies which TTY label in the /etc/ttydefs file to use. |
-m |
Specifies the STREAMS modules to push before invoking this service. |
-d |
Specifies the full path name to the device to use for the TTY port. |
-s |
Specifies the full path name of the service to invoke when a connection request is received. If arguments are required, enclose the command and its arguments in quotation marks (“). |
Use the pmadm command as shown in this procedure to list the status of a TTY port or all the ports that are associated with a port monitor.
Become superuser.
List one service of a port monitor.
# pmadm -l -p mbmon -s a |
-l |
Lists service information on the system. |
-p |
Specifies the pmtag mbmon as the port monitor tag. |
-s |
Specifies the svctag a as the port monitor service tag. |
This example lists all services of a port monitor.
# pmadm -l -p mbmon PMTAG PMTYPE SVCTAG FLAGS ID <PMSPECIFIC> mbmon ttymon a - root /dev/term/a - - /usr/bin/login - contty ldterm,ttcompat login: Terminal disabled tvi925 y # |
Become superuser.
Enable a disabled port monitor service.
# pmadm -e -p mbmon -s a |
-e |
Specifies the enable flag. |
-p |
Specifies the pmtag mbmon as the port monitor tag. |
-s |
Specifies the svctag a as the port monitor service tag. |