199
Syntax
time
time-id
{
one-off
|
repeating
}
delay
time
command
command
undo time
time-id
Views
Job view
Default command level
3: Manage level
Parameters
time
timeid
:
Time setting entry, an integer that ranges from 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 ranges from 0 to 720, and the
mm
value ranges from 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 ranges from 1 to 43,200. That is, 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 last takes effect.
Changing a clock setting does not affect the schedule set by using the
time
delay
command.
Use
when you add commands in a job.
Table 42
Command schedule options
Command Description
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.
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