166
Task Command
Remarks
Specify a command to be
executed at the specified time.
schedule job at time
[ date ] view view
command
Required
Use either command.
Available in user view.
• If you use schedule job at, changing the system
time will change the scheduled task execution
time.
• If you use schedule job delay, changing the
system time will not change the scheduled task
execution time.
Specify a command to be
executed after the specified
delay.
schedule job delay
time view view
command
Configuring a scheduled task—Approach 2
Step Command Remarks
1. Enter system view.
system-view —
2. Create a scheduled task and
enter job view.
job job-name Required.
3. Specify the view in which the task
is executed.
view view-name
Required.
Specify only one view for a task.
4. 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 time at, changing the
system time will change the
scheduled task execution time.
• If you use time delay, changing
the system time will not change
the scheduled task execution
time.
time time-id { one-off |
repeating } at time [ month-
date month-day | week-day
week-daylist ] command
command
5. Configure a command to be
executed after a delay time.
time time-id { one-off |
repeating } delay time
command command
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 view view-name 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 (user view), system (system view), GigabitEthernetx/x/x
(Ethernet interface view), and Vlan-interfacex (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.