Reading Switch Port VLAN memberships
see:
http://search.cpan.org/~emiller/SNMP-Info-1.04/Info/Bridge.pmIt queries OID 1.3.6.1.2.1.17.7.1.4.5.1.1 (
dot1qPvid -- the VLAN-ID assigned to untagged frames or Priority-Tagged frames received on this port)
Note that on some switches this OID requires RW access to the MIB in order to be successful.
Works on:
- 3c4005 v2
- 3c4900
- Cisco 3750 IOS 12.2.x (according to the linked page above)
- Dell 5324
Doesn't work on:
- 3c3900 (boo!)
- Cisco 3750 IOS 12.1.x