cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
249
Views
0
Helpful
6
Replies

How to get MIB for the BGP to add BGP status in the monitoring tool

munnay02
Level 1
Level 1

%BGP-5-ADJCHANGE: neighbor IP vpn vrf vrf_Name Up
%BGP-5-ADJCHANGE: neighbor IP vpn vrf vrf_Name Down

Whenever BGP is going down, I need to generate the alert notification in the one of the monitoring tool called NNMI. Please let me how to get latest MIB for the BGP to add in the monitoring tool 
also need to know configurations  to add in the cisco switch : C9500-48Y4C

6 Replies 6

Harold Ritter
Spotlight
Spotlight

Hi @munnay02 ,

You can enable the bgp keyword to the snmp trap configuration as follow:

snmp-server enable traps bgp

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

Thanks Harold Ritter
snmp-server enable traps bgp has been enabled already 

Hi @munnay02 ,

That fulfills your requirement then, as every time the BGP session goes up or down a trap will be sent to the server specified in the "snmp-server host" command.

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

Jan Rolny
Level 3
Level 3

Hi,

Check this article 

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16/irg-xe-16-book/bgp-mib-support.html

you can configure snmp for example like this 

snmp-server community public RO
snmp-server community private RW
snmp-server enable traps bgp <<< here you enable snmp traps to be sent to your monitoring system
snmp-server host X.X.X.X version 2c public

 or for instance you can enable EEM script to react on log event. Then as in this example you will receive email about adjacency change.

event manager applet BGP_Adjacency_Change
 event syslog pattern "%BGP-5-ADJCHANGE: neighbor * Down"
 action 1.0 cli command "enable"
 action 2.0 cli command "show clock"
 action 3.0 set msg "BGP neighbor down at $_cli_result"
 action 4.0 mail server "smtp.yourmailserver.com" to "alert@yourdomain.com" from "router@yourdomain.com" subject "BGP Adjacency Down" body "$msg"
 action 5.0 syslog msg "$msg"

best regards,

Jan 

 

 

**Please rate if helpful**

munnay02
Level 1
Level 1

Thanks Jan Rolny,

Let me check the steps which you provided too.

Can someone please let me know how to find latest BGP MIB for the C9500. This request is from Monitoring team  

Jan Rolny
Level 3
Level 3

You can go here https://cfnng.cisco.com/mibs and search for model and release/version you are running on. 

Best regards,

Jan