cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2463
Views
0
Helpful
3
Replies

NX-OS How to monitor routing sessions in multiple VRF using SNMP?

Steve Rodrigue
Level 1
Level 1

Hi,

 

We are trying to monitor BGP and OSPF in multiple VRFs. I have created multiple context in SNMP. Here is what my config looks like:

 

snmp-server context ALPHA instance 10 vrf ALPHA-NETWORK
snmp-server context BETA instance 20 vrf BETA-NETWORK

snmp-server community secret-key-ALPHA group netOps
snmp-server community secret-key group networkOps
snmp-server community secret-key-BETA group netOps

snmp-server mib community-map secret-key-ALPHA context ALPHA
snmp-server mib community-map secret-key-BETA context BETA


From a Linux server I confirmed those 3 queries works:
snmpwalk -v2c -c secret-key router 1.3.6.1.2.1.15.3.1.2
snmpwalk -v2c -c secret-key-ALPHA router 1.3.6.1.2.1.15.3.1.2
snmpwalk -v2c -c secret-key-BETA router 1.3.6.1.2.1.15.3.1.2

But here is the problem: most SNMP tools won't support multiple community for 1 device. Once you assigned one community to a device, you can't add a second device.

At the moment, we plan to build a script to gather the information instead using SNMP due to this limitation.

Does anyone here have solution and/or tool suggestion that supports multiple community on a single device?

3 Replies 3

Hi @Steve Rodrigue

 Do you have Cisco Prime? 

Prime supports multiple context for NXOS.

I recommend you take a look.

 

-If I helped you somehow, please, rate it as useful.-

Obviously, the Cisco Proprietary platform support context.  ;)

I'm a bit surprised the industry has not widely adopted SNMP context more widely. I looked at a couple of platforms (both open and close) and many can't poll the same device with multiple community and/or context.

When I started to tackle this problem I taught it would be easy to add all my routing monitoring in my existing SNMP/alerting platforms, but it is not.

harisrocks
Level 1
Level 1

Hey @Steve Rodrigue ,
I am also trying to access VRFs via unique SNMP (v2) contexts. My device supports multiple communities. 
Were you able to resolve your query?
I posted mine here : https://community.cisco.com/t5/xr-os-and-platforms/how-to-perform-snmpwalk-on-multiple-vrfs/td-p/5250343
and was suggested to use v3, but I still think there must be a way to configure SNMPv2 and perform snmpwalk.
Any help will be appreciated.

Thank you.