03-27-2014 08:29 AM
Hi,
I'm trying to figure out what would be the best way to monitor EIGRP peering using EEM.
Mar 26 03:10:15.697: %DUAL-5-NBRCHANGE: EIGRP-IPv4 30: Neighbor 10.200.20.186 (GigabitEthernet3/23) is down: holding time expired
Mar 26 03:10:16.389: %DUAL-5-NBRCHANGE: EIGRP-IPv4 30: Neighbor 10.200.20.186 (GigabitEthernet3/23) is up: new adjacency
Let's say this is the message. How do I match "Neighbor 10.200.20.186 (GigabitEthernet3/23) is down" in EEM? I tried it before but I'm not sure what regular expression I should use to match "(, ), and /".
Anyone tried this?
Thanks in advance.
John
Solved! Go to Solution.
03-28-2014 06:58 AM
Precede the metacharacters with a backslash in regx. If you wanted to match "(" then in regx it would be "\("
03-28-2014 06:58 AM
Precede the metacharacters with a backslash in regx. If you wanted to match "(" then in regx it would be "\("
03-28-2014 11:34 AM
I will give it a try! Thanks for the feedback.
I'll be right back.
03-28-2014 11:40 AM
Worked like magic! Thanks again.
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