Monday, October 18, 2021

SNMP poll Cisco IOS-XE for Max BGP prefixes

I am querying various items via Python and SNMP. One of the items I'm trying to query is BGP max prefix limit. I have this working on IOS-XR but I can't seem to get it working on IOS-XE.

This is what I use for IOS-XR and it works fine:

snmpget -v 2c -c private 10.0.0.211 1.3.6.1.4.1.9.9.187.1.2.1.1.3.10.0.0.1

I'm trying to achieve the same results on IOX-XE but I'm having issues with it.

Below is my request for IOX-XE: (which doesn't work)

snmpget -v 2c -c private 10.0.0.212 1.3.6.1.4.1.9.9.187.1.2.4.1.3.10.2.0.1

The MIB is documented here:

http://mibdepot.com/cgi-bin/getmib3.cgi?win=mib_a&i=1&n=CISCO-BGP4-MIB&r=cisco&f=CISCO-BGP4-MIB.my&v=v2&t=tree

When I try query that MIB I get the following error:

No Such Instance currently exists at this OID

There is a BGP peer at that IP (10.2.0.1) and it does have a prefix limit configured.

Can anybody see if I'm doing anything obviously wrong here?

Thanks



No comments:

Post a Comment