Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

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
Cisco Employee

EEM script to find BGP neighbor in neighbor-group

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.

500
Views
0
Helpful
1
Replies