ExecutionTask - createExecutionTask
ExecutionTask - createExecutionTask
Description :
This command creates an execution task for a specified job. This command returns the handle of the execution task.
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
jobDBKey | com.bladelogic.om.infra.model.base.keys.SJobKey | Handle to the job. |
executionTaskName | String | Name of the execution task you want to create. |
Example
The following example shows how to create an execution task associated with the job 'snapJob' in the job group '/snapshots'.
Script
ET_NAME="et-snap"
JOB_KEY=`blcli SnapshotJob getDBKeyByGroupAndName /snapshots snapJob`
ET_KEY=`blcli ExecutionTask createExecutionTask $JOB_KEY "$ET_NAME"`
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*