Operating System - HP-UX
1831311 Members
3621 Online
110023 Solutions
New Discussion

How to get network card address via a command

 
SOLVED
Go to solution
Reggie Chang
Frequent Advisor

How to get network card address via a command

Hi there,

Although I could get the hardware address
of the network card from SAM, I need to
find out how to get that piece of information
from a command.

I've tried "ifconfig lan0" (HPUX-11.00) but
it does not have what I want.

Any suggestion is appreciated.

Best regards,

Reggie
4 REPLIES 4
Scot Bean
Honored Contributor
Solution

Re: How to get network card address via a command

Are you looking for 'lanscan -v'?
A. Clay Stephenson
Acclaimed Contributor

Re: How to get network card address via a command

lanscan is the command you seek.
If it ain't broke, I can fix that.
James Specht
Trusted Contributor

Re: How to get network card address via a command

lanscan will show it.

--Jim
"Everyone can be taught to sculpt: Michelangelo would have had to be taught how not to. So it is with the great programmers."
Eugeny Brychkov
Honored Contributor

Re: How to get network card address via a command

Concerning MAC address: original card's MAC address can be overriden with hpetherconf/hpbase100conf files with 'HP_ETHER_STATION_ADDRESS' setting. If you really need original address check if these files do not contain such definition or reboot server and check with PDC information submenu command
Eugeny