Message228108
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. |
|
Date |
User |
Action |
Args |
2014-10-01 19:34:00 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, neologix, BreamoreBoy, aivarsk, David.Edelsohn |
2014-10-01 19:34:00 | serhiy.storchaka | set | messageid: <1412192040.16.0.510597511092.issue17293@psf.upfronthosting.co.za> |
2014-10-01 19:34:00 | serhiy.storchaka | link | issue17293 messages |
2014-10-01 19:33:59 | serhiy.storchaka | create | |
|