cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1659
Views
0
Helpful
1
Replies

EEM script to find BGP neighbor in neighbor-group

We have ASR9k's with multiple bgp neighbor groups.

I would like an EEM script to check which neighbor group a neighbor belongs to.

I have

Final result would be something like:

log message:

%ROUTING-BGP-5-ADJCHANGE_DETAIL : neighbor 1.1.1.1 Down (VRF: default; AFI/SAFI: 1/1)

router bgp 1111

   neighbor-group A

   neighbor-group B
   neighbor-group C

EEM script:

     if neighbor = neighbor-group A - Do not log
     else - log

Thanks!

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

How would you check this manually?  I don't have an ASR9K with which to test, so I'm not certain of all of the command outputs.

Review Cisco Networking for a $25 gift card