1
i am working on an script, which collects data from Netgear-switches via SNMP. My problem is, that i am not able to find the OID, which represents the MAC-address of the clients connected to a port.
SNMPWalk has found some - but not all- addresses on OIDs like iso.0.8802.1.1.2.1.4.1.1.5.18524162.7.7 (returns an HEX-String of the device connected to port 7)
Does anybody know, how to collect the addresses of all (directly) connected devices or which OID should be used here?
Regards R.Christes
1Many VLAN-capable switches do not actually support this OID. Instead they use
1.3.6.1.2.1.17.7.1.2.2.1.2
from 802.1Q, which includes the VLAN ID along with the MAC address. (I believe this is for "independent learning" support.) – user1686 – 2018-09-10T13:53:29.917I've tried this, the OIDs of @bcs78 only return "noSuchInstance", if I run SNMPWalk on 1.3.6.1.2.1.17.7.1.2.2.1.2, it returns a bunch of Integer-Values under OIDs like iso.3.6.1.2.1.17.7.1.2.2.1.2.1.0.0.203.97.24.145 = INTEGER: 52 – R.Christes – 2018-09-11T07:18:50.510
This returns "No Such Object available on this agent at this OID" Do I have to configure something on the switch, or do i have to use a specific SNMP-version? – R.Christes – 2018-09-11T09:18:29.337
If I run SNMPWalk on the parend OID, it returns a bunch of integer values under OIDs I am not able to recognize like iso.3.6.1.2.1.17.7.1.2.2.1.2.1.0.128.163.182.231.31 = INTEGER: 52 – R.Christes – 2018-09-11T11:27:45.913
That's it, thank you very much for your patience :-) – R.Christes – 2018-09-12T06:10:20.480