I'm trying to get the VLAN's a trunc port is a member of using snmp using the CISCO-VTP-MIB
The following key holds this information: .220.127.116.11.18.104.22.168.22.214.171.124.1.4
As far as i know the result is a hex value thet has to be transfered into a binary value, and then count the positions of the enabled bits to find out what vlans exists in a trunc.
If i query the snmp for a port i get the following result:
Converting this to binary gives me:
if i count the enabled bit's position i get the following result;
The VLANS enabled in that trunk is only:
Why do i get readings about vlans not present?
If i remove VLAN 200 from the trunk the reading is correct
if i replace vlan 200 with vlan 201 the reading is correct.
The same applies to vlan 1024, if i add that vlan i get enabled bits on vlan 1024,1025,1026
Is there anyone who can point me in the right direction getting only the correct vlans listed when quiery SNMP v2
The switch i'm querying is a WS-C2960G-8TC-L
The hexto bin converter i was using (vb.net) was not converting correctly, solved by manually do the conversion
Thanks to all of you that looked into it
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: