cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1374
Views
5
Helpful
3
Replies

EEM for EIGRP Neighbor

jpl861
Level 4
Level 4

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

1 Accepted Solution

Accepted Solutions

Dan Frey
Cisco Employee
Cisco Employee

Precede the metacharacters with a backslash in regx.   If you wanted to match "(" then in regx it would be "\("

View solution in original post

3 Replies 3

Dan Frey
Cisco Employee
Cisco Employee

Precede the metacharacters with a backslash in regx.   If you wanted to match "(" then in regx it would be "\("

I will give it a try! Thanks for the feedback.

 

I'll be right back.

Worked like magic! Thanks again.

Review Cisco Networking for a $25 gift card