09-03-2020 02:53 AM
09-03-2020 03:14 AM
Hello,
a simple EEM script can do that. Check your logs to see what log entry is generated when the port is turned off, this is what you match with 'event syslog pattern'.
event manager applet CLEAR_MAC
event syslog pattern "%LINEPROTO-5-UPDOWN: Line protocol on Interface.* changed state to down"
action 1.0 cli command "enable"
action 2.0 cli command "clear mac address-table dynamic"
09-03-2020 03:22 AM
thk for your response,sir.
i want to find a switch configuration to solve this question, this is so hack to write a script.
09-03-2020 03:26 AM
Hello,
EEM is not a hack, but used very frequently, and specifically for task automation and customization in cases such as yours. It is an integral part of Cisco IOS.
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