Update SC Failure


Specifies what action to take upon failure of the service

Warning

Note

This workflow is available only for use in Microsoft Windows environments.

 Workflow inputs – Update SC Failure

Call Workflow Input

Description

Required

Default Value

connection details

XML document conforming to the Connection Details common object that contains the information required to execute a command via command line.

Yes

n/a

server name

Specifies the name of the remote server on which the service is located.

 

Warning

Note

The name must use the Universal Naming Convention (UNC) format ("/myserver"). To run SC.exe locally, ignore this parameter.

No

Name of server on which the service is located.

service name

Specifies the service name returned by the getkeyname operation.

Yes

n/a

error free period

Specifies the length of the period (in seconds) with no failures after which the failure count should be reset to 0.

 

Warning

Note

This parameter must be used in conjunction with the actions= parameter.

Yes

n/a

failure actions and delay time

Specifies the failure actions and their delay time (in milliseconds) separated by the forward slash ✅️.

 

Valid values: run, restart, and reboot

 

Warning

Note

This parameter must be used in conjunction with the reset= parameter. Use actions= "" to take no action upon failure.

No

There is no default value.

broadcast message

Specifies the message to be broadcast upon failure of the service.

No

There is no default value.

command line

Specifies the command line to be run upon failure of the service.

No

There is no default value.

 

 Workflow outputs – Update SC Failure

Call Workflow Output

Description

output

XML document consisting of one or more <line> elements that contain the command response. Each <line> element contains an index attribute indicating the order in which the information was returned by the command.

success

Did the operation succeed?

 

Valid values: true, false

 

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

TrueSight Orchestration Content 23.1