139
To configure a periodic schedule for the device:
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Create a job.
scheduler job
job-name
By default, no job exists.
3.
the job.
command
id
command
By default, no command is
assigned to a job.
You can assign multiple commands
to a job. A job with a smaller ID will
be executed first.
4. Exit system view.
quit
N/A
5. Create a schedule.
scheduler schedule
schedule-name
By default, no schedule exists.
6. Assign user roles to the
schedule.
user-role
role-name
By default, a schedule has the user
role of the schedule creator.
A command in a schedule can be
executed if it is permitted by one or
more user roles of the schedule.
7.
schedule.
job
job-name
By default, no job is assigned to a
schedule.
You can assign multiple jobs to a
schedule. The jobs will be executed
concurrently.
8.
time table
periodic schedule.
• Execute the
interval from the specified time
on:
time repeating at time
[ month-date [ month-day |
last ] | week-day
week-day&<1-7> ]
• Execute the
specified time on every specified
day in a month or week:
time repeating [ at time [date ] ]
interval interval-time
Configure either command.
By default, no execution
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.
Schedule configuration example
Network requirements
As shown in Figure 47, two interfaces of the device are connected to users.
To save energy, configure the device to perform the following operations:
Enable interfaces GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 at 8:00 a.m. every Monday
through Friday.
Disable the interfaces at 18:00 every Monday through Friday.
Figure 47 Network diagram