job schedule interval create

Create a schedule that runs on an interval

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

The job schedule interval create creates an interval schedule. An interval schedule runs jobs at specified intervals after the previous job finishes. For instance, if a job uses an interval schedule of 12 hours and takes 30 minutes to complete, the job runs at the following times:

Each of the numerical parameters of the interval must be a whole number. These parameters can be used individually, or combined to define complex time values. For example, use a value of 1 day, 12 hours to create an interval of 1.5 days.

Large parameter values are converted into larger units. For example, if you create a schedule with an interval of 36 hours, the job schedule interval show command will display it with an interval of 1 day 12 hours.

Parameters

[-cluster <Cluster name>] - Cluster
This parameter specifies the name of the cluster on which you want to create an interval schedule. By default, the schedule is created on the local cluster. In a MetroCluster configuration, the partner cluster can be specified if the local cluster is in switchover state.
-name <text> - Name
Use this parameter to specify the name of the interval schedule you want to create.
[-days <integer>] - Days
Use this parameter to specify the "days" portion of the schedule's interval. A day is one calendar day.
[-hours <integer>] - Hours
Use this parameter to specify the "hours" portion of the schedule's interval.
[-minutes <integer>] - Minutes
Use this parameter to specify the "minutes" portion of the schedule's interval.
[-seconds <integer>] - Seconds
Use this parameter to specify the "seconds" portion of the schedule's interval.

Examples

The following example creates an interval schedule named rollingdaily that runs six hours after the completion of the previous occurrence of the job:
cluster1::> job schedule interval create -name rollingdaily -hours 6