Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to find mac address on AIX

2,626 views
Skip to first unread message

frhu

unread,
Dec 7, 2001, 9:57:09 AM12/7/01
to
Hi,
I need to know the mac address of an ethernet card dedicated do SNA.

Which command do I use ?

thank you


Jochen Lübbers

unread,
Dec 7, 2001, 10:44:48 AM12/7/01
to
frhu wrote:
>
> Hi,
> I need to know the mac address of an ethernet card dedicated do SNA.
>
> Which command do I use ?

"netstat -I <interface>" should do the job

J.Luebbers

--
Jochen Lübbers lueb...@tele-data-electronic.de
Software Development Group I lueb...@tde-online.de
TDE - Tele Data Electronic GmbH s...@tde-online.de
----
"Wer die Freiheit aufgibt, um Sicherheit zu gewinnen,
der wird am Ende beides verlieren" (Benjamin Franklin)

frhu

unread,
Dec 7, 2001, 12:41:05 PM12/7/01
to
It does not work as netstat works over TCP/IP, not over SNA


Jochen Lübbers a écrit dans le message <3C10E3F0...@tde-online.de>...

Matthew Landt

unread,
Dec 7, 2001, 12:00:28 PM12/7/01
to

netstat -v will give the "BURNED IN" MAC address for all your adapters.
However, programs like HACMP can do MAC address swapping and thus the
burned in MAC address might not be the one currently in use. Use
netstat -i for the inuse MAC address. The MAC address is the one
displayed in the "Link" line. All values between "."s are 2 digits
even though netstat might show only one. Add a leading 0 if necessary
to get the proper 2 digit value.

- Matt
--
_______________________________________________________________________
Matthew Landt - AIX and HACMP Cert. Specialist - la...@austin.ibm.com
IBM High Speed Interconnect - Fibre Channel I/O Dev/Test/Support
<< Comments, views, and opinions are mine alone, not IBM's. >>

Matthew Landt

unread,
Dec 7, 2001, 2:02:15 PM12/7/01
to
Matthew Landt wrote:
>
> frhu wrote:
> >
> > Hi,
> > I need to know the mac address of an ethernet card dedicated do SNA.
> >
> > Which command do I use ?
> >
> > thank you
>
> netstat -v will give the "BURNED IN" MAC address for all your adapters.
> However, programs like HACMP can do MAC address swapping and thus the
> burned in MAC address might not be the one currently in use. Use
> netstat -i for the inuse MAC address. The MAC address is the one
> displayed in the "Link" line. All values between "."s are 2 digits
> even though netstat might show only one. Add a leading 0 if necessary
> to get the proper 2 digit value.
>

Or you could also use lscfg to display the physical hardware of the
adapter. The Network Address (MAC) should be listed.

lscfg -vl entX

Paul Landay

unread,
Dec 7, 2001, 2:37:36 PM12/7/01
to frhu
frhu wrote:
> I need to know the mac address of an ethernet card
> dedicated to SNA. Which command do I use ?

netstat -v
lscfg -v -l entX
shows the burned in address on most adapters (not all)
lsattr -E -l entX
shows the UAA (Universally Administered Address) if used
snaadmin -d query_port | grep mac

Paul Landay

Dan Foster

unread,
Feb 25, 2002, 10:54:25 AM2/25/02
to
In article <3C111237...@austin.ibm.com>,

Matthew Landt <la...@austin.ibm.com> wrote:
>Matthew Landt wrote:
>>
>> frhu wrote:
>> >
>> > Hi,
>> > I need to know the mac address of an ethernet card dedicated do SNA.
>> >
>> > Which command do I use ?
>> >
>> > thank you
>>
>> netstat -v will give the "BURNED IN" MAC address for all your adapters.
>> However, programs like HACMP can do MAC address swapping and thus the
>> burned in MAC address might not be the one currently in use. Use
>> netstat -i for the inuse MAC address. The MAC address is the one
>> displayed in the "Link" line. All values between "."s are 2 digits
>> even though netstat might show only one. Add a leading 0 if necessary
>> to get the proper 2 digit value.
>>
>
>Or you could also use lscfg to display the physical hardware of the
>adapter. The Network Address (MAC) should be listed.
>
>lscfg -vl entX

There's a third approach:

# entstat <enet interface>|grep "Hardware Address"|awk '{print $3}'

-Dan

0 new messages