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.

Job - addDailyScheduleWithPriority


Job - addDailyScheduleWithPriority

Description :

This command adds a daily schedule to a job. This command is not supported when 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.

The dateString argument defines a daily schedule to be added to the job definition. It must be in the format YYYY-MM-DD HH:MM:SS. The priorityString argument sets the priority of the schedule.

Set priorityString to one of the following priorities:

  • CRITICAL
  • HIGH
  • NORMAL
  • LOW
  • LOWEST

This command does not send a job notification. To add a schedule that includes notifications, see the Job addDailyScheduleWithSNMPNotificationAndPriority or Job addDailyScheduleWithEMailNotificationAndPriority 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

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

priorityString

String

Priority of daily schedule to be added.

Example

The following example shows how to add a HIGH priority daily run at 11:35 PM to a job:

Script





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

PRIORITY_STRING=HIGH

JOB_KEY=`blcli SnapshotJob getDBKeyByGroupAndName /snapshots snapconfig`

JOB_KEY=`blcli Job addDailyScheduleWithPriority $JOB_KEY "$DATE_STRING" $PRIORITY_STRING`



 

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

BMC Server Automation Command Line Interface 8.3