Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

retrieving mac address

Status
Not open for further replies.

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?.
 
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
 
netstat -i only shows configured interfaces. lscfg works on any installed hardware...


HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top