207
NOTE:
•
The commands in a job must be in the same view.
•
Every job can have up to 10 commands.
•
Changing a clock setting does not affect the schedule set by using the
time
at
command.
Examples
# Schedule a job to save the configuration file
a.cfg
at 3:00 on May 18, 2011.
<Sysname> system-view
[Sysname] job saveconfig
[Sysname-job-saveconfig] view monitor
[Sysname-job-saveconfig] time 1 at 3:00 2011/05/18 command save a.cfg
# Schedule a job to save the configuration file
a.cfg
at 12:00 every day.
<Sysname> system-view
[Sysname] job saveconfig
[Sysname-job-saveconfig] view monitor
[Sysname-job-saveconfig] time 1 repeating at 12:00 command save a.cfg
# Schedule a job to save the configuration file
a.cfg
at 8:00 on 5
th
of this month. If the time has passed,
the execution is delayed to the next month.
<Sysname> system-view
[Sysname] job saveconfig
[Sysname-job-saveconfig] view monitor
[Sysname-job-saveconfig] time 1 one-off at 8:00 month-date 5 command save a.cfg
# Schedule a job to save the configuration file
a.cfg
at 8:00 every month.
<Sysname> system-view
[Sysname] job saveconfig
[Sysname-job-saveconfig] view monitor
[Sysname-job-saveconfig] time 1 repeating at 8:00 month-date 5 command save a.cfg
# Schedule a job to save the configuration file
a.cfg
at 8:00 on Friday and Saturday of this week. If the
time has passed, the execution is delayed to the next week.
<Sysname> system-view
[Sysname] job saveconfig
[Sysname-job-saveconfig] view monitor
[Sysname-job-saveconfig] time 1 one-off at 8:00 week-day fri sat command save a.cfg
# Schedule a job to save the configuration file
a.cfg
at 8:00 every Friday and Saturday.
<Sysname> system-view
[Sysname] job saveconfig
[Sysname-job-saveconfig] view monitor
[Sysname-job-saveconfig] time 1 repeating at 8:00 week-day fri sat command save a.cfg
time delay
Syntax
time
time-id
{
one-off
|
repeating
}
delay
time
command
command
undo time
time-id