144
Create a scheduled
task and enter job
view
job
job-name
Required
Specify the view in
which the task is
executed
view
view-name
Required
You can specify only one view for a
task.
Configure a
command to be
executed at a
specific time
time
time-id
at
time date
command
command
Required
Use any of the commands.
•
If you use the
time at
command,
changing the system time will
change the execution time of the
scheduled task.
•
If you use the
time delay
command, changing the system
time will not change the
execution time of the scheduled
task.
time
time-id
{
one-off
|
repeating
}
at
time
[
month-date
month-day
|
week-day
week-daylist
]
command
command
Configure a
command to be
executed after a
delay time
time
time-id
{
one-off
|
repeating
}
delay
time
command
command
NOTE:
•
Only one view can be specified for a task, which means all commands in the task are executed in the
same specified view. If different views are specified by executing the
view
view-name command
repeatedly, only the last configuration takes effect.
•
The view must be supported by the system, and the view name must be complete instead of an
abbreviation. Most commonly used view names include:
monitor
for user view,
system
for system view,
GigabitEthernetx/x/x
for Ethernet interface view, and
Vlan-interfacex
for VLAN interface view.
•
A scheduled task can contain up to 10 commands. If you want more than 10 commands to be executed,
configure them in different tasks.
•
A
time-id uniquely identifies the binding between a command and its execution time. If two time-ids are
the same, the one configured later is effective.
Configuring the detection timer
Some protocols might shut down ports under specific circumstances. For example, MSTP shuts down a
BPDU guard enabled port when the port receives a BPDU. Then, the device starts the detection timer. If
the port is down before the detection timer times out, the device automatically brings up the port.
Follow these steps to configure the detection timer:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Configure the detection timer
shutdown-interval
time
Optional
The detection interval is 30
seconds by default.