10-04-2019 02:11 PM
Good day,
I would like to know how to automatically delete an access-list if certain interface state goes down and create it again if the interface state goes back up.
Solved! Go to Solution.
10-04-2019 03:31 PM
You can use EEM Script for this, check the syslog and remove Access-list and create one based on your requirement.
basic EEM Script
#track 1 interface FastEthernet 0/0 line-protocol
The above line is not related to EEM commands, it just a track command.
event manager applet if-down
event track 1 state down
action 1.0 cli command “enable”
action 1.1 cli command “config t”
action 1.2 cli command “no ip access-list 10”
action 1.3 cli command “end”
10-04-2019 03:31 PM
You can use EEM Script for this, check the syslog and remove Access-list and create one based on your requirement.
basic EEM Script
#track 1 interface FastEthernet 0/0 line-protocol
The above line is not related to EEM commands, it just a track command.
event manager applet if-down
event track 1 state down
action 1.0 cli command “enable”
action 1.1 cli command “config t”
action 1.2 cli command “no ip access-list 10”
action 1.3 cli command “end”
10-04-2019 04:37 PM
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