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.

Job - addIntervalSchedule

Job - addIntervalSchedule

Description :

This command adds an interval schedule to a job. This command is not supported if the approval is enabled for the job type.

The argument jobKey is a handle to the job being modified. To find the jobKey for a specific job type, use the SnapshotJob getDBKeyByGroupAndName command.

This command takes 5 arguments: DBKey of a job, a date/time formatted string indicating the start time of the first occurrence of the job, the interval in days, in hours and in minutes.

This command does not send a job notification. To add a schedule that includes notifications, see the Job addIntervalScheduleWithSNMPNotification or Job addIntervalScheduleWithEMailNotification commands.

Return type : java.lang.Object

Command Input :

Variable Name

Variable Type

Description

jobKey

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

Handle to the job.

dateString

String

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

days

Integer

Number of days in the interval.

hours

Integer

Number of hours in the interval.

mins

Integer

Number of minutes in the interval.

Example

The following example shows how to add an interval schedule every 1 day 10 hours and 12 minutes to a job, starting at 2005-01-01 23:35:00:

Script





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

DAYS="1" 

HOURS="10" 

MINS="12" 

JOB_KEY=`blcli SnapshotJob getDBKeyByGroupAndName /snapshots snapconfig` 

JOB_KEY=`blcli Job addIntervalSchedule $JOB_KEY "$DATE_STRING" "$DAYS" "$HOURS" "$MINS"` 



Was this page helpful? Yes No Submitting... Thank you

Comments