10-02-2012 10:55 AM
Can I do following with EEM on Cat6500?
When a host IP has been denied(in syslog) for X times in Y minutesby ACL ABC, fire an email.
The ACL has the "deny ip any any log" line at the last.
Thanks.
10-14-2012 08:35 PM
Yes, this is possible using Tcl. The best way to do this would be to react to each "deny" syslog and store the host in an EEM context. When the specific host hits your threshold then you send the email. The time-based thing adds a bit of a challenge. What might be best is to cycle the context every time the script is invoked (i.e., everytime a syslog message is generated). That is, check each host in the cache and find out if the last time a deny was seen from it is within your allowed time frame. If not, delete the host entry.
08-09-2013 05:00 PM
Joesph,
This sounds brilliant. Do you have any examples?
Cheers
Carlton
08-09-2013 06:08 PM
No, I have not personally written such a policy.
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