Using a Control Service State task Get Status action in a job condition
book
Article ID: 186085
calendar_today
Updated On:
Products
IT Management SuiteClient Management Suite
Issue/Introduction
You are creating a Job that includes a Control Service State task and want to do one of two things based on the status returned from the Get Status action.
Environment
IT Management Suite 8.x
Resolution
Create a new Control Service State task.
Enter the service name
Set Action to Get Status
Create a new job
Add Control Service State task
Highlight the task and select New > condition
Set the first Where drop-down to <name of control service state task>-Service Status
Set the second one to desired condition operator, equals for this example
Set the third field to 4 for running, 1 for stopped, or per below list as needed and click OK
Highlight the If line and add desired task; repeat for the Else line
The statuses that will work for the where clause value are numeric: