I am looking for guidance on the most reliable MIBs to use for obtaining VLAN information across a wide range of Cisco routers and switches using SNMP. My objective is to have a high probability of success when querying VLAN details, regardless of the specific model or SNMP configuration of the devices. I have only read access to these devices via SNMP and cannot modify any SNMP settings, configurations, or update MIBs on the devices.
MIBs I’ve tried:
- CISCO-VLAN-BRIDGING-MIB (1.3.6.1.4.1.9.9.214)
- CISCO-VLAN-GROUP-MIB (1.3.6.1.4.1.9.9.46)
- CISCO-VLAN-IFTABLE-RELATIONSHIP-MIB (1.3.6.1.4.1.9.9.68)
- CISCO-VLAN-MEMBERSHIP-MIB (1.3.6.1.4.1.9.9.68)
- CISCO-VLAN-TRANSLATION-MIB (1.3.6.1.4.1.9.9.150)
Although these MIBs work on some models, they do not always provide consistent results across different routers and switches. Are there standard or commonly supported MIBs that can reliably provide VLAN information across various Cisco devices? I am looking for a solution that maximizes the probability of obtaining accurate VLAN data without having to know in advance the specific MIBs supported by each device, since I will need to automate the process of obtaining the information.