R0106-HP MSR Router Series Fundamentals Configuration Guide(V7)
145
[Sysname-job-start-GigabitEthernet2/1/2] command 2 interface gigabitethernet 2/1/2
[Sysname-job-start-GigabitEthernet2/1/2] command 3 undo shutdown
[Sysname-job-start-GigabitEthernet2/1/2] quit
# Configure a periodic schedule for enabling the interfaces at 8:00 a.m. every Monday through Friday.
[Sysname] scheduler schedule START-pc1/pc2
[Sysname-schedule-START-pc1/pc2] job start-GigabitEthernet2/1/1
[Sysname-schedule-START-pc1/pc2] job start-GigabitEthernet2/1/2
[Sysname-schedule-START-pc1/pc2] time repeating at 8:00 week-day mon tue wed thu fri
[Sysname-schedule-START-pc1/pc2] quit
# Configure a periodic schedule for disabling the interfaces at 18:00 every Monday through Friday.
[Sysname] scheduler schedule STOP-pc1/pc2
[Sysname-schedule-STOP-pc1/pc2] job shutdown-GigabitEthernet2/1/1
[Sysname-schedule-STOP-pc1/pc2] job shutdown-GigabitEthernet2/1/2
[Sysname-schedule-STOP-pc1/pc2] time repeating at 18:00 week-day mon tue wed thu fri
[Sysname-schedule-STOP-pc1/pc2] quit
Verifying the scheduling
# Display the configuration information of all jobs.
[Sysname] display scheduler job
Job name: shutdown-GigabitEthernet2/1/1
system-view
interface GigabitEthernet 2/1/1
shutdown
Job name: shutdown-GigabitEthernet2/1/2
system-view
interface GigabitEthernet 2/1/2
shutdown
Job name: start-GigabitEthernet2/1/1
system-view
interface GigabitEthernet 2/1/1
undo shutdown
Job name: start-GigabitEthernet2/1/2
system-view
interface GigabitEthernet 2/1/2
undo shutdown
# Display the schedule information.
[Sysname] display scheduler schedule
Schedule name : START-pc1/pc2
Schedule type : Run on every Mon Tue Wed Thu Fri at 08:00:00
Start time : Wed Sep 28 08:00:00 2013
Last execution time : Wed Sep 28 08:00:00 2013
Last completion time : Wed Sep 28 08:00:03 2013
Execution counts : 1
-----------------------------------------------------------------------
Job name Last execution status