WAN Routing
1835275 Members
2363 Online
110078 Solutions
New Discussion

VLANs status and port assignment through SNMP

 
acant
New Member

VLANs status and port assignment through SNMP

Hi,



I am trying to do some network discovery, using Netdot and the Perl module SNMP::Info.



I am working with both 3Com H3C routers(H3C MSR Routers) and switches(3Com SuperStack). And I am trying to discover which VLANs are assigned to each port through SNMP.



I can see VLAN information on the switches as I would expect. Underneath the following MIB object :



enterprises.25506.hh3cRhw.hh3clswComm.hh3cLswVlan.hh3cLswVlanMngObject.hh3cdot1qVlanMIBTable.hh3cdot1qVlanMIBEntry.hh3cdot1qVlanIndex



But on the routers I find that the port list does not seem to specify which ports the VLAN is configured on. It contains only zeros.



SNMPv2-SMI::enterprises.25506.8.35.2.1.1.1.1.1 = INTEGER: 1


SNMPv2-SMI::enterprises.25506.8.35.2.1.1.1.2.1 = STRING: "VLAN 0001"


SNMPv2-SMI::enterprises.25506.8.35.2.1.1.1.3.1 = Hex-STRING: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00



But as far as I know, and according to the documentation, the routers are configured to put all the ports into VLAN 1 by default.



So, how should I interpret the SNMP port list on the routers? Do I just assume that each port on the router is in VLAN 1, unless there is information in the port list?



Any advice, experience or pointers to documentation  on VLANs and SNMP on MSR routers would be greatly appreciated.



Thank you



Andrew Sullivan Cant