cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3078
Views
0
Helpful
2
Replies

tracking vlans on switches

t8t6p2m054
Level 1
Level 1

I am interested in data to assist troubleshooting when a user  bridges 2 of our VLANs and we subsequently want to know all the possible  locations  this may have occurred.

We run +300 vlans on +700  switches (mostly Cisco).  I want to be able to query a DB with 'what  switches are vlan 5 and vlan 845 on?'.  I have looked at a few MIBs that  will provide data of switch ports by vlan (unfortunately in hex and not  easily adapted to a spreadsheet or DB) but I cannot find a MIB that  might provide a table of switchport and vlan.    

How  do others address this problem?

Thanks

1 Accepted Solution

Accepted Solutions

Joe Clarke
Cisco Employee
Cisco Employee

There is the vmVlan object from the CISCO-VLAN-MEMBERSHIP-MIB.  For each switchport, this will indicate the access VLAN of the port.  This object will only relibably work for access ports.  For trunk ports, you would need to use the vlanTrunkPortVlansEnabled object from the CISCO-VTP-MIB.  But that would require you to decode the bit string which specifies which VLANs are enabled on the port.

These are the objects that CiscoWorks Campus Manager users to build its VLAN data.

View solution in original post

2 Replies 2

Joe Clarke
Cisco Employee
Cisco Employee

There is the vmVlan object from the CISCO-VLAN-MEMBERSHIP-MIB.  For each switchport, this will indicate the access VLAN of the port.  This object will only relibably work for access ports.  For trunk ports, you would need to use the vlanTrunkPortVlansEnabled object from the CISCO-VTP-MIB.  But that would require you to decode the bit string which specifies which VLANs are enabled on the port.

These are the objects that CiscoWorks Campus Manager users to build its VLAN data.

Joe Clarke, thanks for the object, especially vmVlan, that will be useful.  It doesn't look like a painless solution exists, so I think we'll document this with vmVlan and manually, then monitor for changes with rancid.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: