Information

This site will undergo a brief period of maintenance on Thursday, 23 April at 2:30 AM Central/1:00 PM IST. During a 30 minute window, site availability may be intermittent.

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.

ExecutionTask - addOneTimeSchedule


ExecutionTask - addOneTimeSchedule

Description :

This command adds a one-time schedule to an execution task. If approval is enabled for the job type, use the ExecutionTask addOneTimeScheduleWithApproval command instead.

The argument etKey is a handle to the execution task being modified. To find the etKey, use the ExecutionTask getDBKeyByGroupAndName command.

The dateString argument defines a one-time schedule to be added to the execution task definition. It must be in the format YYYY-MM-DD HH:MM:SS.

This command does not send execution task notification.

Return type : java.lang.Object

Command Input :

Variable Name

Variable Type

Description

etKey

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

Handle to the execution task.

dateString

String

One-time schedule to be added. The date string must be in the format YYYY-MM-DD HH:MM:SS.

Example

The following example shows how to add a schedule to an execution task for a single run on the 1st of January 2005 at 11:35 PM.

Script





DATE_STRING="2005-01-01 23:35:00"

ET_KEY=`blcli ExecutionTask getDBKeyByGroupAndName /tasks tstEt`

ET_KEY=`blcli ExecutionTask addOneTimeSchedule $ET_KEY "$DATE_STRING"`



 

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

BMC Server Automation Command Line Interface 8.5