cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
747
Views
15
Helpful
2
Replies

Interfaces, Schedule Uptime

adhonysdiaz
Level 1
Level 1

Hi, I have a problem.
Is there any command to make an schedule to up each interface of a switch in a specific time?

1 Accepted Solution

Accepted Solutions

Hello,

 

in addition to Joseph's remarks, here is an example of two EEM scripts. The first script would unshut the interfaces at 9AM Monday thru Friday, the second one would shut the interfaces at 5PM Monday thru Friday.

 

event manager applet INTERFACES_UP
event timer cron cron-entry "0 9 * * 1-5"
action 1.0 cli command "enable"
action 2.0 cli command "conf t"
action 3.0 cli command "interface range GigabitEthernet 0/0 - 10"
action 4.0 cli command "no shut"
action 5.0 cli command "end"
!
event manager applet INTERFACES_DOWN
event timer cron cron-entry "0 17 * * 1-5"
action 1.0 cli command "enable"
action 2.0 cli command "conf t"
action 3.0 cli command "interface range GigabitEthernet 0/0 - 10"
action 4.0 cli command "shut"
action 5.0 cli command "end"

View solution in original post

2 Replies 2

Joseph W. Doherty
Hall of Fame
Hall of Fame
If the switch supports EEM, I believe you can write a script and schedule it so that it will enable/disable an interface when desired.

Hello,

 

in addition to Joseph's remarks, here is an example of two EEM scripts. The first script would unshut the interfaces at 9AM Monday thru Friday, the second one would shut the interfaces at 5PM Monday thru Friday.

 

event manager applet INTERFACES_UP
event timer cron cron-entry "0 9 * * 1-5"
action 1.0 cli command "enable"
action 2.0 cli command "conf t"
action 3.0 cli command "interface range GigabitEthernet 0/0 - 10"
action 4.0 cli command "no shut"
action 5.0 cli command "end"
!
event manager applet INTERFACES_DOWN
event timer cron cron-entry "0 17 * * 1-5"
action 1.0 cli command "enable"
action 2.0 cli command "conf t"
action 3.0 cli command "interface range GigabitEthernet 0/0 - 10"
action 4.0 cli command "shut"
action 5.0 cli command "end"

Review Cisco Networking for a $25 gift card