-
Notifications
You must be signed in to change notification settings - Fork 27
Closed
Labels
Description
Cannot get MAC address with getmac 0.9.x (tried from 0.9.0 to 0.9.3). Works with 0.8.3 though.
Tests done with Python 3.11, Linux kernel 6.3.1.
getmac==0.8.3
$ getmac --hostname openwrt -dd
DEBUG Trying: '_read_arp_file' (to_find: '192.168.1.1')
DEBUG Result: 00:0a:fa:24:29:2b
DEBUG Raw MAC found: 00:0a:fa:24:29:2b
00:0a:fa:24:29:2b
getmac==0.9.3
$ getmac --hostname openwrt -dd
DEBUG Initializing 'ip4' method cache (platform: 'linux')
DEBUG 9 type-filtered methods for 'ip4': CtypesHost, ArpingHost, ArpFile, ArpExe, ArpFreebsd, ArpOpenbsd, IpNeighborShow, ArpVariousArgs, UuidArpGetNode
DEBUG 5 platform-filtered methods for 'linux' (method_type='ip4'): ArpingHost, ArpFile, IpNeighborShow, ArpVariousArgs, UuidArpGetNode
DEBUG Test failed for method 'ArpVariousArgs'
DEBUG 4 tested methods for 'ip4': ArpingHost, ArpFile, IpNeighborShow, UuidArpGetNode
DEBUG Current method cache: {'ip4': 'ArpingHost', 'ip6': 'None', 'iface': 'None', 'default_iface': 'None'}
DEBUG Current fallback cache: {'ip4': '[<getmac.getmac.ArpFile object at 0x7f0236c2e910>, <getmac.getmac.IpNeighborShow object at 0x7f0237023250>, <getmac.getmac.UuidArpGetNode object at 0x7f0236c2ea50>]', 'ip6': '[]', 'iface': '[]', 'default_iface': '[]'}
DEBUG Finished initializing 'ip4' method cache
DEBUG Not sending UDP packet, using network request method 'ArpingHost' instead
DEBUG Attempting get() (method='ArpingHost', method_type='ip4', arg='192.168.1.1')
DEBUG Method 'ArpingHost' failed for 'ip4' lookup
DEBUG Raw MAC found: None
DEBUG getmac took 0.0071 seconds
Reactions are currently unavailable