ExecutionTask - addOneTimeSchedulingWithApprovalByMaintenanceWindow


ExecutionTask - addOneTimeSchedulingWithApprovalByMaintenanceWindow

Description :

This command adds one time scheduling with approval by maintenance window to an execution task.

Return type : java.lang.Object

Command Input :

Variable Name

Variable Type

Description

executionTaskDBKey

com.bladelogic.om.infra.model.base.keys.SExecutionTaskKey

DBKey of the execution task.

targetServerName

String

Name of the target server.

approvalId

Integer

Approval ID to be attached to the job.

Example

The following example shows how to add one time scheduling according to the pre-defined maintenance windows for a specific target server.

Script





ET_KEY=`blcli ExecutionTask getDBKeyByGroupAndName /tasks testET`

ET_APPROVAL_ID=`blcli Job createApproval 2 2 "My change" 2 3 "" ""`

`blcli ExecutionTask addOneTimeSchedulingWithApprovalByMaintenanceWindow $ET_KEY specific-target-server-name $ET_APPROVAL_ID`



 

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

BMC Server Automation Command Line Interface 8.7