10-21-2020 06:14 AM
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.
10-21-2020 06:31 AM
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.
10-22-2020 12:20 AM
@Seb RupikThanks for your prompt response.
10-21-2020 06:34 AM
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.
10-22-2020 12:21 AM
Thanks for your prompt response, Can we do this energywise feature?
10-22-2020 01:51 AM
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.
10-21-2020 06:56 AM
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"
10-22-2020 12:21 AM
@Georg PauwenThanks for your response and sharing configuration let me test it out.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide