ExecutionTask - addMonthlySchedule
ExecutionTask - addMonthlySchedule
Description :
This command adds a monthly schedule to an execution task.
The argument etKey is a handle to the execution task being modified. To find the etKey for a specific execution task, use the ExecutionTask getDBKeyByGroupAndName command.
The dateString argument defines a monthly schedule to be added to the execution task definition. It must be in the format HH:MM:SS. Use the dayOfMonth argument to specify the day when the execution task executes.
This command does not send execution task notification. This command returns the id of the created schedule.
Return type : Integer
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
etKey | com.bladelogic.om.infra.model.base.keys.SExecutionTaskKey | Handle to the execution task. |
dateString | String | Monthly schedule to be added. The date string must be in the format HH:MM:SS. |
dayOfMonth | Integer | Calendar day of the month to execute the execution task. |
Example
The following example shows how to add a monthly run to execution task. The job runs at 11:35 PM on the 25th day of the month.
Script
DAY_OF_MONTH=25
`blcli ExecutionTask addMonthlySchedule $ET_KEY "$DATE_STRING" $DAY_OF_MONTH`