pmadm - port monitor administration
pmadm -a [-p pmtag | -t type] -s svctag -i id -m pmspecific -v ver [-f xu] [-y comment] [-z script]
pmadm -r -p pmtag -s svctag
pmadm -e -p pmtag -s svctag
pmadm -d -p pmtag -s svctag
pmadm -l [-t type | -p pmtag] [-s svctag]
pmadm -L [-t type | -p pmtag] [-s svctag]
pmadm -g -p pmtag -s svctag [-z script]
pmadm -g -s svctag -t type -z script
pmadm is the administrative command for the lower level of the Service Access Facility hierarchy, that is, for service administration. A port may have only one service associated with it although the same service may be available through more than one port. In order to uniquely identify an instance of a service, the pmadm command must identify both the port monitor or port monitors through which the service is available (-p or -t) and the service (-s). See .
pmadm performs the following functions:
Any user on the system may invoke pmadm to request service status (-l or -L) or to print per-service configuration scripts (-g without the -z option). pmadm with other options may be executed only by a privileged user.
The following options are supported:
-a
-d
-e
-f xu
x
u
-g
-i id
-l
-l
-l -p pmtag
-l -s svctag
-l -p pmtag-ssvctag
-l -t type
-l -t type-ssvctag
Other combinations of options with -l are invalid.
-L
-m pmspecific
-p pmtag
-r
-s svctag
-t type
-v ver
-v 'pmspec -V
where pmspec is the special administrative command for port monitor pmtag. This special command is ttyadm for ttymon and nlsadmin for listen. The version stamp of the port monitor is known by the command and is returned when pmspec is invoked with a -V option.
-y comment
-z script
Options that request information write the requested information to the standard output. A request for information using the -l option prints column headers and aligns the information under the appropriate headings. In this format, a missing field is indicated by a hyphen. A request for information in the condensed format using the -L option prints the information in colon-separated fields; missing fields are indicated by two successive colons. # is the comment character.
Example 1 Adding a Service to a Port Monitor with the Tag pmtag
The following command adds a service to a port monitor with tag pmtag and gives the service the tag svctag. The port monitor-specific information is generated by specpm. The service defined by svctag will be invoked with identity root.
pmadm -a -p pmtag -s svctag -i root -m `specpm -a arg1 -b arg2`-v `specpm -V`
Example 2 Adding a Service with Service Tab svctag
The following command adds a service with service tag svctag, identity guest, and port monitor-specific information generated by specpm to all port monitors of type type:
pmadm -a -s svctag -i guest -t type -m `specpm -a arg1 -b arg2`-v `specpm -V`
Example 3 Removing a Service
The following command removes the service svctag from port monitor pmtag:
pmadm -r -p pmtag -s svctag
Example 4 Enabling a Service
The following command enables the service svctag available through port monitor pmtag:
pmadm -e -p pmtag -s svctag
Example 5 Disabling a Service
The following command disables the service svctag available through port monitor pmtag:
pmadm -d -p pmtag -s svctag
Example 6 Listing Status Information
The following command lists status information for all services:
pmadm -l
Example 7 Listing Status Information
The following command lists status information for all services available through the port monitor with tag ports:
pmadm -l -p ports
Example 8 Listing Status Information in Condensed Format
The following command lists the status information for all services available through the port monitor with tag ports in condensed format:
pmadm -L -p ports
Example 9 Listing Status Information for All Services
List status information for all services available through port monitors of type listen:
pmadm -l -t listen
Example 10 Printing the per-service Configuration
The following command prints the per-service configuration script associated with the service svctag available through port monitor pmtag:
pmadm -g -p pmtag -s svctag
The following exit values are returned:
0
>0
/etc/saf/pmtag/_config
/etc/saf/pmtag/svctag
/var/saf/pmtag/*
See attributes(5) for descriptions of the following attributes:
|
sac(1M), sacadm(1M), doconfig(3NSL), attributes(5)
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |