annoying bug in SNMP information
In monitoring or inventory systems such as Zabbix or GLPI, communication with network devices is generally via SNMP. The problem is that when you scan using:
snmpwalk -v2c -c <community> -t15 -Cc -On -Ox <switch_IP> .1
you don’t get accurate information about the devices connected to each port (i.e. the MAC addresses on the switch’s physical ports). SNMPwalk shows a MAC on every port, but this is usually the switch’s own MAC address. I have switches configured in various ways, and I need to retrieve via SNMP both the MAC address connected to each physical port and the VLAN (or VLANs) assigned to that port.
It’s possible that I’m looking in the wrong place when retrieving the standard MAC—normally read via the standard OID ifPhysAddress
(.1.3.6.1.2.1.2.2.1.6
)—and that on TP-Link devices it’s stored somewhere else. However, I haven’t been able to locate it. I’ve tried searching by MAC addresses to find which port would correspond to each MAC, but found nothing.
In GUI i found place with port and mac address on it. but snmpwalk fails.
If there is correct information about MAC > port number and VLAN port number please help me find it . if not i think its a bug.