Feb 23, 2006 #1 George221 MIS Joined Dec 2, 2005 Messages 50 Location US Does anyone know of a command that can retrieve the mac address from the ethernet card of it's system?.
Does anyone know of a command that can retrieve the mac address from the ethernet card of it's system?.
Feb 23, 2006 #2 hirschaj MIS Joined May 19, 2005 Messages 350 Location US lscfg -vl entX The mac address is listed as Network Address I think. Jim Hirschauer http://www.aixexpert.com Upvote 0 Downvote
lscfg -vl entX The mac address is listed as Network Address I think. Jim Hirschauer http://www.aixexpert.com
Feb 23, 2006 #3 p5wizard IS-IT--Management Joined Apr 18, 2005 Messages 3,165 Location BE Jim is right: and here's a method to extract just the MAC address for e.g. ent0 (in ksh): # MAC0=$(lscfg -vl ent0|sed -n '/Network Address/ s/^ *Network Address\.*//p') # echo $MAC0 0215012661A4 HTH, p5wizard Upvote 0 Downvote
Jim is right: and here's a method to extract just the MAC address for e.g. ent0 (in ksh): # MAC0=$(lscfg -vl ent0|sed -n '/Network Address/ s/^ *Network Address\.*//p') # echo $MAC0 0215012661A4 HTH, p5wizard
Feb 24, 2006 Thread starter #4 George221 MIS Joined Dec 2, 2005 Messages 50 Location US Thank you very much. Upvote 0 Downvote
Feb 24, 2006 #5 kramJ MIS Joined Apr 21, 2005 Messages 8 Location US You can also do netstat -i Upvote 0 Downvote
Feb 25, 2006 #6 p5wizard IS-IT--Management Joined Apr 18, 2005 Messages 3,165 Location BE netstat -i only shows configured interfaces. lscfg works on any installed hardware... HTH, p5wizard Upvote 0 Downvote