Archive for June, 2017

EEM Script to check log messages and trigger email

June 15th, 2017 No comments

Here’s a tip to become alerted when an interface is down (in this case a VPN tunnel). The script can be adapted to look for any pattern in the syslog and send a triggered email message:

event manager environment _ifDown_rcpt
event manager session cli username “admin”
event manager applet MailOnIfDown
event syslog occurs 1 pattern “%LINEPROTO-5-UPDOWN.* Tunnel” period 1
action 1.0 mail server “” to “$_ifDown_rcpt” from “” subject “DON’T PANIC – Tunnel Changed State!” body “$_syslog_msg”

Read more…

Categories: CISCO, EEM Scripts Tags: