ExecutionTask - createExecutionTask_1
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. |
executionTaskDesc | String | Description of the execution task. |
Example
The following example shows how to create an execution task associated with the job 'snapJob' in the job group '/snapshots'.
Script
JOB_KEY=`blcli SnapshotJob getDBKeyByGroupAndName /snapshots snapJob`
ET_NAME="et-snap"
ET_DESCRIPTION="this execution task created by blcli"
ET_KEY=`blcli ExecutionTask createExecutionTask $JOB_KEY "$ET_NAME" "$ET_DESCRIPTION"`
Was this page helpful? Yes No
Submitting...
Thank you
Comments