Operating System - HP-UX
1834827 Members
2242 Online
110070 Solutions
New Discussion

Mac Address for HP UX server

 
Andy Cole_1
Frequent Advisor

Mac Address for HP UX server

Just to check any ways that we can check the Mac address for the HP UX server? example can use SAM to see? How about IP address? thanks
13 REPLIES 13
Ken Hubnik_2
Honored Contributor

Re: Mac Address for HP UX server

You can use the arp command.

Do a man on arp.
Ken Hubnik_2
Honored Contributor

Re: Mac Address for HP UX server

Also lanscan will give you mac addresses for all you lan cards.

Or landiag will also give you the information
Ravi_8
Honored Contributor

Re: Mac Address for HP UX server

Hi,

#arp -a
never give up
James R. Ferguson
Acclaimed Contributor

Re: Mac Address for HP UX server

Hi:

'lanscan' will yield you the MAC address(es).

'ifconfig ' will yield the corresponding IP address.

Regards!

...JRF...
Bill McNAMARA_1
Honored Contributor

Re: Mac Address for HP UX server

lanscan
lanadmin

also check

netstat -i
ifconfig lan#
ioscan -fnkC lan

It works for me (tm)
Armin Feller
Honored Contributor

Re: Mac Address for HP UX server

The command you are looking for is:

# lanscan

Best regards,
Armin
fg_1
Trusted Contributor

Re: Mac Address for HP UX server

To get mac address do the following:

1) lanscan - look at 2nd collumm (station Address).

2) ifconfig lan# - Verify which NIC card and IP your looking for.

Gl.
Andy Cole_1
Frequent Advisor

Re: Mac Address for HP UX server

Hi thanks for all your help. I will try it later. But anyone had any example what is going to be display when i key in the command? thanks
Marco Santerre
Honored Contributor

Re: Mac Address for HP UX server

snccprdm:root:/root >lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/0/0/0 0x00106F08D41B 0 UP lan0 snap0 1 ETHER Yes 119
0
Cooperation is doing with a smile what you have to do anyhow.
Thayanidhi
Honored Contributor

Re: Mac Address for HP UX server

This will be the output

# lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
10/12/6 0x080009D4E682 0 UP lan0 snap0 1 ETHER Yes 119
#

I think it got folded when I pasted.
TT
Attitude (not aptitude) determines altitude.
Eugeny Brychkov
Honored Contributor

Re: Mac Address for HP UX server

Andy,
please note that lanscan can display wrong MAC address. To be sure you see LAN card's built-in MAC address you should use PDC.
There're 2 files in hpux at /etc/rc.config.d: hpetherconf and hpbase100conf where MAC address can be assigned to LAN card (HP_ETHER_STATION_ADDRESS) and this MAC address will override native card's MAC address. That's why people who simply dd'ing systems usually get MAC address conflicts
Eugeny
Paul Sperry
Honored Contributor

Re: Mac Address for HP UX server

use lanscan for the Mac
lanscan
use ifconfig for the IP
ifconfig lan#
Steven E. Protter
Exalted Contributor

Re: Mac Address for HP UX server

Just splitting a hair here.

Servers don't have MAC addresses, NIC cards do.

If you have two NIC cards, you have two MAC addresses, which are unique to each card, even if they are the exact same model.

I have nothing to add to the commands provided earlier by others, they were really good.

Steve
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com