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

MIB and BGP peer (BGP4-MIB::bgpPeerRemoteAddr)

Hello,

We're using NAGIOS to monitor the networks of our customers.

We're using BGPv4 and vrf lite on many of those networks.

On every remote routers, we have multiple bgp peer sessions facing two ASR-1002F backbone routers (GRT and VRFs...).

I'd like to know if there's a way to monitor all bgp sessions, on a remote router, without having to enter the ip addresses of all neighbors....

I'm wondering whether or not I can use the "bgpPeerState" state to monitor the status of these bgp peer sessions?

Someone got an idea?

Thanks in advance,

BRGs

xxxxx@NOC-SV-PL-SUP01:/usr/local/nagios/libexec$ snmpwalk -v 2c -c TESTRO 172.27.20.119 BGP4-MIB::bgpPeerRemoteAddr     

BGP4-MIB::bgpPeerRemoteAddr.10.40.3.25 = IpAddress: 10.40.3.25

BGP4-MIB::bgpPeerRemoteAddr.10.40.3.29 = IpAddress: 10.40.3.29

BGP4-MIB::bgpPeerRemoteAddr.10.40.8.153 = IpAddress: 10.40.8.153

BGP4-MIB::bgpPeerRemoteAddr.10.40.8.157 = IpAddress: 10.40.8.157

BGP4-MIB::bgpPeerRemoteAddr.172.25.3.17 = IpAddress: 172.25.3.17

BGP4-MIB::bgpPeerRemoteAddr.172.25.3.18 = IpAddress: 172.25.3.18

nsoc-iec@NOC-SV-PL-SUP01:/usr/local/nagios/libexec$ snmpwalk -v 2c -c TESTRO 172.27.20.119 BGP4-MIB::bgpPeerState.10.40.3.25

BGP4-MIB::bgpPeerState.10.40.3.25 = INTEGER: established(6)

3 REPLIES
Cisco Employee

Re: MIB and BGP peer (BGP4-MIB::bgpPeerRemoteAddr)

The bgpPeerState object is indexed by bgpPeerRemoteAddr so to query one state for one peer, you'd have to know that peer's IP.  However, you can walk the entire table and get all bgpPeerState objects:

snmpwalk -c TESTRO 172.27.20.119 BGP4-MIB::bgpPeerState

Then pull the specific remote peer address from the left-hand side of the returned objects.

New Member

Re: MIB and BGP peer (BGP4-MIB::bgpPeerRemoteAddr)

Hello Joseph,

Thanks for your answer.

We've been testing some scripts and it's now working!

We use the bgpPeerRemoteAddrMIB to get our ip @ and then we log any change in bgpPeerStateper ip@...

An alarm is on when we have an IDLE state....

Warning for the other BGP states

OK for established.

Regards

Katy Desrosiers

Cisco Employee

Re: MIB and BGP peer (BGP4-MIB::bgpPeerRemoteAddr)

I just want to confirm that everything is working for you now?  Are you finding everything you need from the MIB?

544
Views
0
Helpful
3
Replies
CreatePlease to create content