Schedule

The schedule command configures the type of schedule to run, including one-time only (oneshot), periodic, or calendar-based runs. All runs are determined by month, day of month or weekday, hour, minute, and interval (seconds). If end-time and interval are both configured, whichever condition is reached first is applied.

Use the following CLI syntax to configure the type of schedule to run.

config>system>cron
        schedule schedule-name[owner schedule-owner]
            count number
            day-of-month {day-number [..day-number]|all}
            description description-string
            end-time [date|day-name] time
            hour {hour-number [..hour-number] | all}
            interval seconds 
            minute {minute-number [..minute-number]|all} 
            month {month-number [..month-number]|month-name [..month-name]|all}
            no shutdown 
            type {periodic|calendar|oneshot} 
            weekday {weekday-number [..weekday-number]|day-name [..day-name]|all}
            shutdown

The following example shows the .

Example: Command usage to configure the type of schedule to run

config>system>cron# schedule test2
    config>system>cron>sched# day-of-month 17
    config>system>cron>sched# end-time 2007/07/17 12:00
    config>system>cron>sched# minute 0 15 30 45
    config>system>cron>sched# weekday friday
    config>system>cron>sched# shut
Example

The following is a sample configuration output that schedules a script named ‟test2” to run every 15 minutes on the 17th of each month and every Friday until noon on July 17, 2007.

*A:SR-3>config>system>cron# info 
----------------------------------------------
        schedule "test2"
            shutdown
            day-of-month 17           
            minute 0 15 30 45
            weekday friday 
            end-time 2007/07/17 12:00
        exit
----------------------------------------------
*A:SR-3>config>system>cron#