Feb 23, 2006 #1 George221 MIS Dec 2, 2005 50 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 May 19, 2005 350 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 Apr 18, 2005 3,165 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 Dec 2, 2005 50 US Thank you very much. Upvote 0 Downvote
Feb 25, 2006 #6 p5wizard IS-IT--Management Apr 18, 2005 3,165 BE netstat -i only shows configured interfaces. lscfg works on any installed hardware... HTH, p5wizard Upvote 0 Downvote