cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2456
Views
25
Helpful
7
Replies

Switch Automatic Shutdown and No Shutdown schedular

Siva chinap
Level 5
Level 5

Dear All,

 

Please help me with configuration for 9200 Switches , Scheduler for Switch ports shutdown and no shudown. Suggest me which is best to use Phython/TCL/EEM Scirpts.

 

 

7 Replies 7

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

I'd say EEM and TCL are the most baked in methods regarding IOS-XE, with EEM scripts being easier to write.

 

Python would be simple to write, but would require an external server to run from, or run them on the switch via IOx...but that would require something other than the base license.

 

cheers,

Seb.

@Seb RupikThanks for your prompt response.

balaji.bandi
Hall of Fame
Hall of Fame

EEM should be good go since this Low end device of Cat 9200. you can also do out of the box if you looking to do.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

@balaji.bandi 

Thanks for your prompt response, Can we do this energywise feature?

Hope you already got example from @Georg Pauwen  test and advise.

 

community have issue to get notification when the user reply - so you may get delay replies.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hello,

 

here is an example of an EEM script that would shut an interface range every day at 5PM, and 'no shut' the same range every day at 8AM:

 

event manager applet NO_SHUT_INTERFACES
event timer cron cron-entry "0 8 * * *"
action 1.0 cli command "enable"
action 2.0 cli command "conf t"
action 3.0 cli command "interface range GigabitEthernet 0/0 - 48"
action 4.0 cli command "no shut"
action 5.0 cli command "end"
!
event manager applet SHUT_INTERFACES
event timer cron cron-entry "0 17 * * *"
action 1.0 cli command "enable"
action 2.0 cli command "conf t"
action 3.0 cli command "interface range GigabitEthernet 0/0 - 48"
action 4.0 cli command "shut"
action 5.0 cli command "end"

@Georg PauwenThanks for your response and sharing configuration let me test it out.