cron
config>system
Supported on all 7210 SAS platforms as described in this document
Commands in this context create scripts, script parameters and schedules which support the Service Assurance Agent (SAA) functions.
CRON features are saved to the configuration file on both primary and backup control modules. If a control module switchover occurs, CRON events are restored when the new configuration is loaded. If a control module switchover occurs during the execution of a CRON script, the failover behavior is determined by the contents of the script.
[no] schedule schedule-name [owner schedule-owner]
config>system>cron
Supported on all 7210 SAS platforms as described in this document
This 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).
The no form of this command removes the context from the configuration.
Specifies the name of the schedule.
Specifies the owner name of the schedule.
count number
config>system>cron>sched
Supported on all 7210 SAS platforms as described in this document
This command configures the total number of times a CRON ‟interval” schedule is run. For example, if the interval is set to 600 and the count is set to 4, the schedule runs 4 times at 600 second intervals.
Specifies the number of times the schedule is run.
[no] day-of-month {day-number [..day-number] all}
config>system>cron>sched
Supported on all 7210 SAS platforms as described in this document
This command configures which days of the month that the schedule occurs. Multiple days of the month can be specified. When multiple days are configured, each of them causes the schedule to trigger. If a day-of-month is configured without configuring the month, weekday, hour and minute commands, the event does not execute.
Using the weekday command as well as the day-of-month command causes the script to run twice. For example, consider that ‟today” is Monday January 1. If ‟Tuesday January 5” is configured, the script runs on Tuesday (tomorrow) as well as January 5 (Friday).
See the month, weekday, hour, and minute commands for more information.
The no form of this command removes the specified day-of-month from the list.
Specifies the day of the month counting from the first of the month. The negative integers specify the day of the month counting from the last day of the month. For example, configuring day-of-month -5, 5 in a month that has 31 days configures the schedule to occur on the 27th and 5th of that month.
Integer values must map to a valid day for the month in question. For example, February 30 is not a valid date.
Specifies all days of the month.
[no] end-time [date | day-name] time
config>system>cron>sched
Supported on all 7210 SAS platforms as described in this document
This command is used concurrently with type periodic or calendar. Using the type of periodic, end-time determines at which interval the schedule ends. Using the type of calendar, end-time determines on which date the schedule ends.
When no end-time is specified, the schedule runs forever.
Specifies the date to schedule a command
Specifies the day of the week to schedule a command.
Specifies the time of day to schedule a command.
[no] hour {..hour-number [..hour-number]| all}
config>system>cron>sched
Supported on all 7210 SAS platforms as described in this document
This command configures which hour to schedule a command. Multiple hours of the day can be specified. When multiple hours are configured, each of them causes the schedule to trigger. Day-of-month or weekday must also be specified. All days of the month or weekdays can be specified. If an hour is configured without configuring the month, weekday, day-of-month, and minute commands, the event does not execute.
See the month, weekday, day-of-month, and minute commands for more information.
The no form of this command removes the specified hour from the configuration.
Specifies the hour to schedule a command.
Specifies all hours.
[no] interval seconds
config>system>cron>sched
Supported on all 7210 SAS platforms as described in this document
This command configures the interval between runs of an event.
Specifies the interval, in seconds, between runs of an event.
[no] minute {minute-number [..minute-number]| all}
config>system>cron>sched
Supported on all 7210 SAS platforms as described in this document
This command configures the minute to schedule a command. Multiple minutes of the hour can be specified. When multiple minutes are configured, each of them causes the schedule to occur. If a minute is configured, but no hour or day is configured, the event does not execute. If a minute is configured without configuring the month, weekday, day-of-month, and hour commands, the event does not execute. See the month, weekday, day-of-month, and hour commands for more information.
The no form of this command removes the specified minute from the configuration.
Specifies the minute to schedule a command.
Specifies all minutes.
[no] month {month-number [..month-number]|month-name [..month-name]| all}
config>system>cron>sched
Supported on all 7210 SAS platforms as described in this document
This command configures the month when the event should be executed. Multiple months can be specified. When multiple months are configured, each of them causes the schedule to trigger. If a month is configured
If a minute is configured without configuring the weekday, day-of-month, hour, and minute commands, the event does not execute.
See the weekday, day-of-month, hour, and minute commands for more information.
The no form of this command removes the specified month from the configuration.
Specifies a month number.
Specifies all months.
Specifies a month by name.
type {schedule-type}
config>system>cron>sched
Supported on all 7210 SAS platforms as described in this document
This command specifies how the system should interpret the commands contained within the schedule node.
Specifies the type of schedule for the system to interpret the commands contained within the schedule node.
[no] weekday {weekday-number [..weekday-number]|day-name [..day-name]| all}
config>system>cron>sched
Supported on all 7210 SAS platforms as described in this document
This command configures the days of the week on which the schedule runs. Multiple days of the week can be specified. When multiple days are configured, each of them causes the schedule to occur. If a weekday is configured without configuring the month, day-of-month, hour, and minute, the event does not run.
Using the weekday command as well as the day-of-month command causes the script to run twice. For example, consider that ‟today” is Monday January 1. If ‟Tuesday January 5” is configured, the script runs on Tuesday (tomorrow) as well as January 5 (Friday).
See the month, day-of-month, hour, and minute commands for more information.
The no form of this command removes the specified weekday from the configuration.
Specifies a weekday number.
Specifies a day by name.
Specifies all days of the week.