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
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
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|