action 8.0 mail server "xxxxx" to "xxxxxx" from "xxxxxxx" subject "xxxxx" body "$_cli_result"
action 9.0 syslog msg "Mail sent successfully for failure."
action 9.1 cli command "end"
action 9.2 cli command "exit"
I think my problem has something to do with the pattern matching. When I'm testing, it shows:
%BGP-5-ADJCHANGE: neighbor 172.16.9.2 Down Interface flap"
I want to catch the pattern "neighbor 172.16.9.2 Down" or "neighbor 172.16.9.2 Down <anything after>". I tried to put ".* after Down and that didn't work, so I currently have just "*" after down which doesn't work. How can I match on just Down. or Down <anything> afterward?
It's working. I've been fighting with this for a while. I was setting a wait on the script because initially it was timing out while sending to the smtp server because of convergence. Maxrun by default is 20 seconds and I had set my wait time to 20. I increased the maxrun to 30 and left the wait to 20 and I just got my email . Thanks for the response!
Oh, btw, I had a chance to use those triggers at one point
Writing info to the file works perfectly The trick was getting it out of the file and into the body of the message. If you more the file, it'll store it in variable and you can set that variable up as the body of the message. Works nicely.
We are pleased to announce availability of Beta software for 16.6.3.
16.6.3 will be the second rebuild on the 16.6 release train targeted
towards Catalyst 9500/9400/9300/3850/3650 switching platforms. We are
looking for early feedback from customers befor...
Introduction Featured Speakers Luis Espejel is the Telecommunications
Manager of IENova, an Oil & Gas company. Currently he works with Cisco
IOS® and Cisco IOS XE platforms, and NX to some extent. He has also
worked as a Senior Engineer with the Routing P...
In this session you can learn more about Layer 3 multicast and the best
practices to identify possible threats and take security measures. It
provides an overview of basic multicast, the best security practices for
use of this technology, and recommendati...