System Administration Guide: Advanced Administration

ProcedureHow to Add a Service

  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. 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`"

    Note –

    In this example, the input wraps automatically to the next line. Do not use a Return key or line feed.


    Specifies the add port monitor status flag.


    Specifies the pmtag mbmon as the port monitor tag.


    Specifies the svctag a as the port monitor service tag.


    Specifies the identity to be assigned to svctag when the service runs.


    Specifies the version number of the port monitor.


    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:


    Specifies the bidirectional port flag.


    Specifies the inactive (disabled) response message.


    Specifies which TTY label in the /etc/ttydefs file to use.


    Specifies the STREAMS modules to push before invoking this service.


    Specifies the full path name to the device to use for the TTY port.


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