R3166-R3206-HP High-End Firewalls Getting Started Command Reference-6PW101

75
Related commands: job and view.
NOTE:
The commands configured in a scheduled task must belong to the same view.
A scheduled task can be configured with up to 10 commands, each of which corresponds to a unique
time ID. If you want more than 10 commands to be executed, configure them into different tasks.
Examples
# Schedule a task 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
# Schedule a task to save the configuration file 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 task to save the configuration file at 8:00 AM on 5
th
in the current month, which might be
executed in the second month if the time has passed.
<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 task to save the configuration file at 8:00 AM on 5
th
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 task to save the configuration file at 8:00 AM on Friday and Saturday in the current week,
which might be delayed to the next week if the time has passed.
<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 task to save the configuration file at 8:00 on Fridays and Saturdays.
<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