SmartServiceMonitor Command Line Options

Syntax

SmartServiceMonitor ControlService=<controlservicevalue>   AlertList=<AlertListName>   Message=<message>    NotifyState=<notifystate>  ServiceName=<servicename>  ObjectName=<objectname>  ObjectType=<objecttype>

Important:  Any parameter that has spaces in it must be enclosed in double-quotes.  

AlertList

The name of an existing SmartBatch alert list.

Computer

The name of a Windows computer attached to your network.  You must have the appropriate authorization for any ControlService value to be processed successfully.  

ControlService

You can start, stop, pause or continue a service by specifying a ControlService value. The valid values for controlling a service are:

START - start the service name specified

STOP - stops the service name specified

PAUSE - pause the service name specified

CONTINUE - continue the service name specified (must have previously been paused)

Message

The text to be sent in a notification event.

NotifyState

You can have a notification event generated based on the state of the service. The NotifyState either indicates the state you expect the service to be in or the state you expect the service not to be in. To generate a notification event based on the service being in a specific state, place a "+" plus character in front of one of the valid NotifyState values below. To generate a notification event based on the service not being in a specific state, place a "-" hyphen character in front of one of the valid NotifyState values listed below. The valid NotifyState values are:

Running

Stopped

Paused

For example, if you want to generate a notification event if the service is in the Stopped state, the NotifyState should be set to:

NotifyState=+Stopped

if you want to generate a notification event if the service is not in the Running state, the NotifyState should be set to:

NotifyState=-Running

ObjectName

Indicates the name of a SmartBatch object that is used when an action occurs. The Object Name combined with Object Type is used to execute on demand the object. The Object Name and Type must exist in the SmartBatch database. If the Object Name or Object Type are not specified no object will be executed on demand.

ObjectType

Indicates the type of a SmartBatch object that is used when an action occurs. The Object Type combined with Object Name is used to execute on demand the object. The Object Type must be one of: Operation, Step or Job.

ServiceName

Specifies the internal name of the service. This may not be the same name as displayed in the Control Panel Applet Services. To get the internal name run SmartProcessMonitor and specify just the Computer. Look at the output in the SmartProcessMonitor.log file to determine the internal name of the service you want to monitor. For example, the display name Services applet in Control Panel for the SmartBatch service is "SmartBatch Service". However, the internal name is SmartBatch Service.