Specify the time delay to execute the commands in the task
Follow these steps to configure a scheduled task:
To do...
Enter system view
Create a scheduled task, and enter
scheduled task view
Configure the view where the
specified commands are to be
executed
Execute the commands at a
specified time delay
Display information about a
scheduled task
You can specify only one view for each scheduled task.
After a scheduled task is configured, modification of the system time will affect the execution of the
task. However, as the delay keyword is unrelated to the system time, even though the system time
changes, the specified command is still executed after a specified interval.
Scheduled Task Configuration Example
Network requirements
Configure Switch so that the IP phones connected to the port of Switch are available from eight AM to
six PM from Monday to Friday.
Figure 5-1 Network diagram for scheduled task configuration
Configuration procedure
<Switch> system-view
# Create scheduled task phone1, and enter scheduled task view.
Use the command...
system-view
job job-name
view view
time time-id { one-off | repeating }
delay time command command
display job [ job-name ]
5-2
Description
—
Required
Required
Required
Available in any view