09-01-2015 03:50 PM
Hi All,
I am trying to create an applet that bounces all dot1x enabled ports after a restart or reload.
I will be using the following event -
event snmp oid 1.3.6.1.2.1.11.0.0 get-type next entry-op gt entry-val 60 poll-interval 5
I need help with the actions to bounce all dot1x ports when event is detected.
Thanks!
09-02-2015 04:21 PM
What CLI commands would you use to bounce the ports manually? What CLI would you use to detect a port is dot1x enabled?
09-03-2015 05:32 AM
I would use shut/no shut cli command to bounce the ports.
I need help with detecting dot1x ports. Right now, I m bouncing interface range and not dot1x selectively. Here is what I have so far.
! Applet to bounce ports when coldstart detected
event manager applet COLDSTART_BOUNCEPORTS
event syslog pattern "SYS-5-RESTART"
trigger delay 180
action 0.1 cli command "enable"
action 0.2 syslog msg "Switch experienced Cold Start - Bouncing dot1x Ports"
action 0.3 cli command "configure terminal"
action 0.4 cli command "interface range g0/2 - 52"
action 0.5 cli command "description added to port config by applet"
action 0.6 cli command "shut"
action 0.7 cli command "no shut"
action 0.8 cli command "end"
09-03-2015 11:12 AM
What CLI command would you use the determine if a port is dot1x-enabled? What does the output of that command look like?
09-03-2015 11:16 AM
Yeah, that's the tricky part.
If I were to view the config for the interface, I would see "dot1x " commands. So the logic would be, if the interface contains "dot1x" commands, then bounce port.
09-03-2015 11:20 AM
Does "show dot1x all" list interfaces by name? Parsing the config like this will be inefficient.
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