Building Network Automation Solutions
6 week online course starting in September 2017

Report interface loss based on OSPF neighbor loss

Nicolas sent me an interesting problem: he has numerous point-to-point GRE-over-IPSec tunnels on his core router and detects remote site failure with OSPF neighbor loss events. He would like to receive an e-mail when an OSPF neighbor goes down (quite easy to do with EEM), but would also like to receive interface description in the e-mail subject to simplify his troubleshooting.

With the regular expressions available in EEM 3.0 you can extract interface name from syslog message, execute show interface command and extract the interface description from it.

The EEM applet source code is available in the CT3 wiki

This article is part of You've asked for it series.

0 comments:

Post a Comment

You don't have to log in to post a comment, but please do provide your real name/URL. Anonymous comments might get deleted.