F3215-HP Load Balancing Module System Management Configuration Guide-6PW101

64
Ste
p
Command
Remarks
4. Add commands to the
job.
Configure a command to run at a
specific time and date:
time time-id at time date command
command
Configure a command to run at a
specific time:
time time-id { one-off | repeating }
at time [ month-date month-day |
week-day week-daylist ] command
command
Configure a command to run after a
delay:
time time-id { one-off | repeating }
delay time command command
Use any of the commands.
Changing a clock setting does not
affect the schedule set by using the
time at or time delay command.
Scheduled job configuration example
Network requirements
Configure scheduled jobs on the LB module to enable interfaces GigabitEthernet 0/1, GigabitEthernet
0/2, and GigabitEthernet 0/3 at 8:00 and disabled them at 18:00 on working days every week, to
control the access of the PCs connected to these interfaces.
Figure 40 Network diagram
Configuration procedure
# Enter system view.
<LB> system-view
# Create a job named pc1, and enter its view.
[LB] job pc1
# Configure the job to be executed in the view of GigabitEthernet 0/1.
[LB-job-pc1] view gigabitethernet 0/1
# Configure the LB module to enable GigabitEthernet 0/1 at 8:00 on working days every week.
[LB-job-pc1] time 1 repeating at 8:00 week-day mon tue wed thu fri command undo shutdown
# Configure the LB module to shut down GigabitEthernet 0/1 at 18:00 on working days every week.
[LB-job-pc1] time 2 repeating at 18:00 week-day mon tue wed thu fri command shutdown