lextudio / sharpsnmplib

C# SNMP Library (#SNMP) - Open source SNMP implementation for C# and .NET
https://sharpsnmp.com
MIT License
358 stars 151 forks source link

GetRequestMessage.GetResponse() returns empty for MAC Address #647

Closed lextudio-support closed 1 month ago

lextudio-support commented 1 month ago

HI,

I have used the OID - 1.3.6.1.2.1.2.2.1.6.1 to get the MAC Address (Physical address) of the device.

I have used GetRequestMessage.GetResponse(), but it returns null. Kindly let me know is there any API to get the MAC address.. Kindly let me know if there are any test application for this.

pls help

Original Reported Date: 2010-02-26T02:17:22.607-08:00 Original CodePlex Discussion Thread ID: 199364

lextudio-support commented 1 month ago

Copied from CodePlex without authors:

That's a standard way to get MAC address. However, different agent implementation returns something differently.

For example, if you get the table (1.3.6.1.2.1.2.2) on Windows 7 like I do now, you will get a clearer understanding. See a lot of virtual interfaces are there for Local Loopback Interface, WAN miniports, 6to4 adapters and so on. They are not physical, so they don't have MAC address.

Regards,

Lex

Original Posted Date: 2010-02-28T03:49:29.137-08:00

lextudio-support commented 1 month ago

Marked as Answer Date: 2013-10-06T20:54:15.813-07:00