10-19-2012 08:57 AM
I need to know how to create an applet to monitor an interface and if it recieves a specific IP do a shut no shut on the interface.
Thanks,
-Earl
10-20-2012 04:39 PM
You could use ACLs for this. Apply an inbound ACL on the interface with logging enabled. It could be as simple as:
access-list 100 permit ip any any log
int gi0/0
ip access-group 100 in
Then, when you get a hit, that will generate a syslog message that your EEM policy can react to:
event manager applet watch-ip
event syslog pattern "list 100 .*10.1.1.1"
action 1.0 cli command "enable"
action 2.0 cli command "config t"
action 3.0 cli command "int gi0/0"
action 4.0 cli command "shut"
action 5.0 cli command "end"
10-22-2012 07:07 AM
Cool, thanks. I would need it to do a no shut as well. Thanks
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