Step
6.
Specify an execution
time table for the
periodic schedule
Schedule configuration example
Network requirements
To save energy, configure the switch to enable interfaces GigabitEthernet 3/0/1 and GigabitEthernet
3/0/2 at 8:00 a.m. every Monday through Friday and disable the interfaces at 18:00 every Monday
through Friday.
Figure 51 Network diagram
Scheduling procedure
# Enter system view.
<Sysname> system-view
# Configure a job for disabling interface GigabitEthernet 3/0/1.
[Sysname] scheduler job shutdown-GigabitEthernet3/0/1
[Sysname-job-shutdown-GigabitEthernet3/0/1] command 1 system-view
[Sysname-job-shutdown-GigabitEthernet3/0/1] command 2 interface GigabitEthernet 3/0/1
[Sysname-job-shutdown-GigabitEthernet3/0/1] command 3 shutdown
[Sysname-job-shutdown-GigabitEthernet3/0/1] quit
# Configure a job for enabling interface GigabitEthernet 3/0/1.
[Sysname] scheduler job start-GigabitEthernet3/0/1
[Sysname-job-start-GigabitEthernet3/0/1] command 1 system-view
Command
•
Execute the schedule at an interval
from the specified time on:
time repeating at time
[ month-date [ month-day | last ] |
week-day week-day&<1-7> ]
•
Execute the schedule at the
specified time on every specified
day in a month or week:
time repeating [ at time [date ] ]
interval interval-time
180
Remarks
Configure either command.
By default, no execution time is
specified for a schedule.
Executing commands clock
datetime, clock summer-time, and
clock timezone does not change the
execution time table that is already
configured for a schedule.