Information
Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

Job - executeAgainstFailedTarget


Job - executeAgainstFailedTarget

Description :

This command executes a job against its failed targets.

Use the filterType argument to specify which type of failure you want to execute against. Set filterType to one of the following integers:

  • All Failures=1
  • All Errors=2
  • All Warnings=3
     This command returns the schedule ID of the job, or, if no targets fit the filter, it returns 0.

    Return type : Integer

Command Input :

Variable Name

Variable Type

Description

jobKey

DBKey

Handle to the job.

filterType

Integer

The failure level of the targets you want to execute against.

Example

The following example shows how to execute a job against its failed targets.

Script





JOB_KEY=`blcli SnapshotJob getDBKeyByGroupAndName /tasks tstJob`

blcli Job executeAgainstFailedTarget $JOB_KEY 1



 

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

BMC Server Automation Command Line Interface 8.3