R2511-HP MSR Router Series Fundamentals Command Reference(V5)
106
week-day week-daylist: Specifies the day or days for executing the command. The week-daylist argument
specifies one day or up to seven days, which can be any combination of Sun, Mon, Tue, Wed, Thu, Fri,
and Sat. For example, to have a command executed on Monday, you can enter week-day Mon; to have
a command executed on Friday and Saturday, enter week-day Fri Sat. Use a space between every two
days for separation.
command command: Specifies the command to be automatically executed, in the text format. The
command must be executable in the view specified by the view command. Otherwise this command
cannot be automatically executed. Therefore, ensure the correctness of the configuration.
Usage guidelines
The commands in a job must be in the same view.
Every job can have up to 10 commands.
The time ID (time-id) must be unique in a job. If two time and command bindings have the same time ID,
the one configured most recently takes effect.
Changing a clock setting does not affect the schedule set by using the time at command.
Use Table 22
when you add commands in a job.
Table 22 Command schedule options
Command Descri
p
tion
time timeid at time date command
command
Schedules a command to run at a specific time and date. The
time or date must be later than the current system time or date.
time timeid one-off at time command
command
Schedules a command to run at a specific time on the current
day. If the specified time has passed, the command runs the next
day.
The command runs only once.
time timeid one-off at time month-date
month-day command command
Schedules a command to run at a specific day in the current
month. If the specified time or day has passed, the command
runs in the next month.
The command runs only once.
time timeid one-off at time week-day
week-daylist command command
Schedules a command to run at a specific time on a specific day
or days in the current week. If the specified time or day has
passed, the command runs in the next week.
The command runs only once.
time timeid repeating at time command
command
Schedules a command to run at a specific time every day.
time timeid repeating at time month-date
month-day command command
Schedules a command to run on a specific day every month.
time timeid repeating at time week-day
week-daylist command command
Schedules a command to run at a specific time in a specific day
or days every week.
Examples
# Schedule a job to save the configuration file a.cfg at 3:00 on May 18, 2009.
<Sysname> system-view
[Sysname] job saveconfig
[Sysname-job-saveconfig] view monitor
[Sysname-job-saveconfig] time 1 at 3:00 2009/05/18 command save a.cfg










