R2511-HP MSR Router Series Fundamentals Command Reference(V5)
108
Parameters
time timeid: Time setting entry, an integer in the range of 1 to 10.
one-off: Specifies that the specified command is executed for once.
repeating: Specifies a recurring time schedule.
delay time: Specifies the delay time for executing the command, in the hh:mm format or mm format.
• When the time argument is in the hh:mm format, the hh value is in the range of 0 to 720, and the
mm value is in the range of 0 to 59. When the hh value is 720, the mm value can be only 00.
• When the time argument is in the mm format, the mm value is in the range of 1 to 43200. The
maximum value of the delay timer is 30 days.
command command: Specifies the command to be automatically executed, in the text format. The
specified command must be a complete command without interactive input.
Usage guidelines
The commands in a scheduled 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 delay command.
Use Table 23 w
hen you add commands in a job.
Table 23 Command schedule options
Command Descri
p
tion
time timeid one-off delay time2 command
command
Schedules a command to run after a delay time.
The command runs only once.
time timeid repeating delay time2
command command
Schedules a command to run every the delay time.
NOTE:
• The commands in a scheduled 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 bindin
g
s 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 delay command.
Examples
# Save the configuration file five minutes later.
<Sysname> system-view
[Sysname] job saveconfig
[Sysname-job-saveconfig] view monitor
[Sysname-job-saveconfig] time 1 one-off delay 5 command save a.cfg
# Save the configuration file every five minutes.
<Sysname> system-view
[Sysname] job saveconfig










