R3166-R3206-HP High-End Firewalls Getting Started Command Reference-6PW101
76
View
Job view
Default level
3: Manage level
Parameters
time timeid: Time setting entry, an integer that ranges from 1 to 10.
one-off: Indicates that the command will be executed only once.
repeating: Indicates that the command will be repeatedly executed.
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.
Description
Use the time delay command to configure a command to be executed after a specified delay time.
Use the undo time command to cancel the configuration.
• Use time timeID one-off delay time command command to specify the time delay for executing the
command. This command will be executed only once.
• Use time timeID repeating delay time command command to specify the time interval for executing
the command periodically.
Related commands: job and view.
NOTE:
• The commands configured in a scheduled task must belong to the same view.
• A scheduled task can be confi
g
ured 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
# Configure the firewall to 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
# Configure the firewall to save the configuration file every five minutes.
<Sysname> system-view
[Sysname] job saveconfig
[Sysname-job-saveconfig] view monitor
[Sysname-job-saveconfig] time 1 repeating delay 5 command save a.cfg