06-16-2015 03:39 AM
Hello,
I would appreciate if you could help me with IOS XR snmp.
I have a problem with BGP4-MIB, for example i need to know BGP peers addreses - bgpPeerRemoteAddr .1.3.6.1.2.1.15.3.1.7. But i see only neighbors wich are in global routing table. If BGP neighbor in VRF i can't monitor that via SNMP.
For example:
snmpwalk -v2c -c cisco 1.1.1.1 .1.3.6.1.2.1.15.3.1.7
iso.3.6.1.2.1.15.3.1.7.1.2.3.4 = IpAddress: 1.2.3.4
iso.3.6.1.2.1.15.3.1.7.4.3.2.1 = IpAddress: 4.3.2.1
1.2.3.4 and 4.3.2.1 in global, but also i have BGP neighbors inside a VRF:
router bgp 1111
address-family ipv4 unicast
!
address-family vpnv4 unicast
!
address-family ipv6 unicast
!
address-family vpnv6 unicast
!
neighbor 1.2.3.4
use neighbor-group RRClient
!
neighbor 4.3.2.1
use neighbor-group RRClient
!
vrf Border
neighbor 7.7.7.7
use neighbor-group ServiceZone
!
So, why bgpPeerRemoteAddr .1.3.6.1.2.1.15.3.1.7 doesn't show me 7.7.7.7 neighbor? For Catalyst 6500 it works fine.
Also i need to monitor this:
bgpPeerRemoteAs .1.3.6.1.2.1.15.3.1.9
bgpPeerAdminStatus .1.3.6.1.2.1.15.3.1.3
bgpPeerInTotalMessages .1.3.6.1.2.1.15.3.1.12
bgpPeerOutTotalMessages .1.3.6.1.2.1.15.3.1.13
bgpPeerInUpdates .1.3.6.1.2.1.15.3.1.10
bgpPeerOutUpdates .1.3.6.1.2.1.15.3.1.11
cbgpPeerAcceptedPrefixes .1.3.6.1.4.1.9.9.187.1.2.4.1.1
cbgpPeerAdvertisedPrefixes .1.3.6.1.4.1.9.9.187.1.2.4.1.6
cbgpPeerDeniedPrefixes .1.3.6.1.4.1.9.9.187.1.2.4.1.2
All these indexes have the same problem, for neighbors 1.2.3.4 and 4.3.2.1 all good, but for 7.7.7.7 nothing...
Is it possible to monitor BGP neighbors inside a VRF? Any chance to monitor IPv6 BGP sessions via SNMP?
I use IOS XR version 5.3.1.
Thanks!
06-16-2015 04:03 AM
Here is a sample cnfig: I'll also attach a testlog. snmp-server vrf one context cont-vrf1 ! snmp-server vrf two context cont-vrf2 ! snmp-server community bgp <==== Community for VRF default snmp-server community bgp-vrf1 <==== Community for VRF one snmp-server community bgp-vrf2 <==== Community for VRF two snmp-server context cont-vrf1 snmp-server context cont-vrf2 snmp-server community-map bgp-vrf1 context cont-vrf1 snmp-server community-map bgp-vrf2 context cont-vrf2 So the SNMP queries with community 'bgp' should provide information from the default VRF, SNMP queries with community 'bgp-vrf1' should provide information from VRF 'one', and SNMP queries with community 'bgp-vrf2' should provide information from VRF 'two'.
06-16-2015 05:28 AM
Big thanks, it works!
Is it possible to use one community for all VRF's?
06-16-2015 06:30 AM
Have not tried it, but since the server is per vrf, it wont work, did you try it?
06-16-2015 06:58 AM
echami, thanks for quick replies!
Yes, i try it, didn't work. I need to monitor bgp sessions in global table and in VRFs with one community, because all our monitoring systems support only one community per device at the same time. So, now we must create different devices (cacti for example) for global and for VRFs - it is uncomfortably, it is a big problem i should say...
Why cisco made different community for it? How i can use only one community for everything?
06-22-2015 09:57 PM
Same issue here and it seems that there is (actually) no workarround
cheers,
michel
06-22-2015 11:51 PM
Hi Michel and Dmitry,
We are looking at enhancing the configuration, though you still need to have multi community support. XR is like this from day one (IOS was not, but now is) this is to comply with the standards.
Eddie.
08-02-2018 11:29 PM
Hi Eddie Chami could you explain if there is another solution, because I have the same problem and cant see the peer for vrf's.
BR
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide