Serhiy Storchaka added the comment: Thank you Aivars for your patch. I have verified and confirm that this method works on AIX and True64 UNIX (it should also work on IRIX, but I can't login in Snakebite's i6).
Here is modified patch. MAC address is now searched only in column with the "Address" header. Added try/except around converting to int for the case if candidate word contains non-heximal digits. Synchronized _netstat_getnode() with current code of _find_mac and extracted common code in separate function. Split _ifconfig_getnode() into separate functions which use different commands: ifconfig, arp and lanscan. ---------- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka stage: -> patch review Added file: http://bugs.python.org/file36768/uuid_netstat_getnode.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17293> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com