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*