System Administration Guide: Advanced Administration

How to Add a Service

To add a standard terminal service to the mbmon port monitor, type the following:


# 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`"

Note –

In this example, the input wraps to the next line. Do not put a Return or line feed after contty.


-a

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 it runs.

-v

Specifies the version number of the port monitor.

-m

Specifies the ttymon-specific configuration data formatted by ttyadm.

The above pmadm command contains an embedded ttyadm command. The options in this embedded command are as follows:

-b

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 (").