Hitachi

JP1 Version 12 JP1/SNMP System Observer Description, Operator's Guide and Reference


apmservlist (Windows only)

Organization of this page

Format

apmservlist [-all | Windows-service-display-name | -h]

Function

The apmservlist command uses the Windows Services monitoring function to display a list of Windows service names or a specified Windows service name recognized by APM. To specify monitoring service names in SSO, use the service names output by this command.

Option

-all

Lists all Windows service names registered with the Windows service control manager of the applicable computer. The option uses the following output format, with each service in a single line:

Windows-service-display-name:Windows-service-name

Windows-service-display-name

Displays the Windows service name corresponding to the specified Windows service display name. If the Windows service display name includes one or more spaces or tabs, enclose the name with double quotation marks. The option uses the following output format, with each specified service in two lines:

Windows-service-display-name

Windows-service-name

-h

Outputs the command usage. The command usage will also be displayed if an inappropriate command option is specified.

Usage example

When -all is specified

[Figure]

When obtaining a APM service name

[Figure]

Return values

0

Normal termination

1

Abnormal termination. Possible causes are that an inappropriate option is specified or there is no service that corresponds to the specified service display name.