Previous Topic: SERVICENAME Statement—Specify the Web Service Name Within the Target Namespace (Web Service Jobs)Next Topic: SERVLET_URL Statement—Specify a Host URL


SERVICENAME Statement—Specify the Name of the Windows Service to be Monitored (Windows Service Monitoring Jobs)

The SERVICENAME statement specifies the name of the Windows service to monitor.

Supported Job Type

This statement is required for the Windows Service Monitoring job type.

Syntax

This statement has the following format:

SERVICENAME service_name
service_name

Specifies the name of the local Windows service to be monitored.

Limits: Up to 256 characters; case-sensitive

Notes:

Example: Monitor a Windows Service Name

This example monitors a Windows service named Log App. The job waits until the service status is CONTINUE_PENDING before it completes.

AGENT WINAGENT
SERVICENAME 'Log App'
STATUS CONTINUE_PENDING WAIT