1844225 Members
2707 Online
110230 Solutions
New Discussion

How can I get the MAC #

 
mudongxiao
Advisor

How can I get the MAC #

I just want to get the network card MAC # How can i get it
8 REPLIES 8
Rick Garland
Honored Contributor

Re: How can I get the MAC #

Issue the lanscan command

The Station Address is the MAC address
Mel Burslan
Honored Contributor

Re: How can I get the MAC #

lanscan | grep lanX | awk {'print $2'}

where X is your lan PPID #.

this gives you the mac address
________________________________
UNIX because I majored in cryptology...
saju_2
Respected Contributor

Re: How can I get the MAC #

Hi

You can always look into SAM for this kind of information

sam---network interface card--selct the card and see the properties..

Regards
CS
Fabio Ettore
Honored Contributor

Re: How can I get the MAC #

Hi,

lanscan

does it.

I know that you will ignore my request to assign points since I already wrote it in the following your thread

http://forums2.itrc.hp.com/service/forums/questionanswer.do?threadId=939557

It is an etiquette of this forum and 0/29 is not so good.

Best regards,
Fabio
WISH? IMPROVEMENT!
Joseph Loo
Honored Contributor

Re: How can I get the MAC #

hi,

have some etiquette. u have gotten help from forum members here, so please assign points to them.

or is there something u do not understand about assigning points.

regards.
what you do not see does not mean you should not believe
vinod_25
Valued Contributor

Re: How can I get the MAC #

hi mudongxiao...

the mac address in hpux is changable... if ur requirement is to find the factory set mac address of the card... then download

Use the 'counters'utility from the WTEC page:
http://wtec.cup.hp.com/~netux/NetToolRep/#LAN_LINKS


./counters.11 -p X|grep address

where X is the PPA number...

by counters u can check the functionality of the card also... very useful tool...

like others said, u can use lanscan command also...

Good Luck!

Vinod
D Block 2
Respected Contributor

Re: How can I get the MAC #

Hey, PLEASE assign "points" to the Forum Guys here!

The Forum gave you the right answer: lanscan. then run: netstat to list the lan#.

# lanscan
# netstat -rn

lan0 ?
lan1 ?


and yes, Hockey is on for this year, Yea!!
Golf is a Good Walk Spoiled, Mark Twain.
Mahesh Kumar Malik
Honored Contributor

Re: How can I get the MAC #

Hi

You may use lanscan to get MAC# for lan cards present in system

Regards
Mahesh