windows 从 MAC 地址获取设备详细信息
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/23482405/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Get device details from MAC Address
提问by tmighty
I have used the SendArp API function to retrieve the MAC addresses that are present on my network.
我已经使用 SendArp API 函数来检索网络上存在的 MAC 地址。
Now that I have a MAC address, I would like to retrieve further information about this device (name, type, manufacturer name, etc.), but I don't know which API is (most) suited for this.
现在我有了 MAC 地址,我想检索有关此设备的更多信息(名称、类型、制造商名称等),但我不知道哪个 API(最)适合于此。
Can anybody help?
有人可以帮忙吗?
回答by user1793963
The only information you can get from a MAC address is the manufacturer, you can find a list here: http://standards.ieee.org/develop/regauth/oui/oui.txt. Keep in mind that this is the manufacturer of the network interface, it's possible to have a network interface from vendor A inside a device of vendor B.
您可以从 MAC 地址获得的唯一信息是制造商,您可以在此处找到列表:http: //standards.ieee.org/develop/regauth/oui/oui.txt。请记住,这是网络接口的制造商,供应商 A 的网络接口可能位于供应商 B 的设备中。
To get more information you need to connect to the device, probably using the IP address, not the MAC address. You can use WMI for Windows, SSH for Linux and SNMP for printers/switches/PSU's etc.
要获得更多信息,您需要连接到设备,可能使用 IP 地址,而不是 MAC 地址。您可以在 Windows 上使用 WMI,在 Linux 上使用 SSH,在打印机/交换机/PSU 等上使用 SNMP。