System Management
7750 SR OS Basic System Configuration Guide Page 357
type
Syntax type {schedule-type}
Context config>cron>sched
Description This command specifies how the system should interpret the commands contained within the
schedule node.
Parameters schedule-type — Specify the type of schedule for the system to interpret the commands contained
within the schedule node.
Values periodic — Specifies a schedule which runs at a given interval. interval must be
specified for this feature to run successfully.
calendar — Specifies a schedule which runs based on a calendar. weekday, month,
day-of-month, hour and minute must be specified for this feature to run success-
fully.
oneshot — Specifies a schedule which runs one time only. As soon as the first
event specified in these parameters takes place and the associated event occurs, the
schedule enters a shutdown state. month, weekday, day-of-month, hour and minute
must be specified for this feature to run successfully.
Default periodic
weekday
Syntax [no] weekday {weekday-number [..weekday-number]|day-name [..day-name]| all}
Context config>cron>sched
Description This command specifies which days of the week that the schedule will fire on. Multiple days of the
week can be specified. When multiple days are configured, each of them will cause the schedule to
occur. If a weekday is configured without configuring month, day-of-month, hour and minute, the
event will not execute.
Using the weekday command as well as the day-of month command will cause the script to run
twice. For example, consider that “today” is Monday January 1. If “Tuesday January 5” is configured,
the script will run on Tuesday (tomorrow) as well as January 5 (Friday).
The no form of this command removes the specified weekday from the configuration.
Parameters day-number — Specifies a weekday number.
Values 1 —7 (maximum 7 week-day-numbers)
day-name — Specifies a day by name
Values sunday, monday, tuesday, wednesday, thursday, friday, saturday (maximum 7 week-
day names)
all — Specifies all days of the week.