09-21-2024 06:50 AM
Hi:
I trying to monitor OSPF in multiple VRFs. I have created multiple context in SNMP. Here is what my config looks like:
snmp-server context default vrf default
snmp-server context abc01 vrf abc01
snmp-server context abc02 vrf abc02
snmp-server community abc01 group network-admin
snmp-server community abc02 group network-admin
snmp-server community default group network-admin
snmp-server mib community-map abc01 context abc01
snmp-server mib community-map abc02 context abc02
snmp-server mib community-map default context default
I have two questions now:
1.No matter how many vrfs there are, snmpwalk can only read data from one vrf, and the others have no data.
2.When the mib community mapping of a vrf is configured for the first time, only this vrf is valid. No matter how you modify or delete the configuration, only this vrf is still valid and cannot be changed. When you want to clear it, replace it with another vrf. , also has no effect
09-21-2024 09:22 AM
VRF means different instance, so you need to make configuration and poll per VRF based.
what nexus code running here,. worth check the configuration guide :
09-21-2024 06:40 PM
I know this. I am following the official configuration now, but problems still occur.
09-22-2024 01:46 AM
If you following the document that should work, can you tell us what code running, post snmpwalk ? is this v2 or v3
09-21-2024 08:28 PM
Hello,
Are you using SNMv2 or SNMPv3? I have seen that it works with SNMPv3 with the following type of configuration:
Configure for each VRF context:
snmp-server context <context-1> vrf <vrf-1>
snmp-server context <context-2> vrf <vrf-2>
Search for "Multiple Instance Support"
09-22-2024 01:19 AM
In theory both v2 and v3 can work. I am currently using v2 or v3 and it has no effect, but when I use other routers or other types of switches (such as 3850), it is effective.
09-22-2024 01:21 AM
There should be no problem with the configuration. I think it’s a problem with the switch itself. Maybe the software version is inappropriate.
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