Step
8.
Specify an execution
time table for the
periodic schedule.
Schedule configuration example
Network requirements
As shown in
To save energy, configure the device to perform the following operations:
•
Enable the interfaces at 8:00 a.m. every Monday through Friday.
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 1/0/1.
[Sysname] scheduler job shutdown-GigabitEthernet1/0/1
[Sysname-job-shutdown-GigabitEthernet1/0/1] command 1 system-view
[Sysname-job-shutdown-GigabitEthernet1/0/1] command 2 interface gigabitethernet 1/0/1
[Sysname-job-shutdown-GigabitEthernet1/0/1] command 3 shutdown
[Sysname-job-shutdown-GigabitEthernet1/0/1] quit
# Configure a job for enabling interface GigabitEthernet 1/0/1.
[Sysname] scheduler job start-GigabitEthernet1/0/1
Command
•
•
Figure
51, two interfaces of the device are connected to users.
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
224
Remarks
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.