Operating System - HP-UX
1833027 Members
3754 Online
110049 Solutions
New Discussion

finding out mac address of nic card

 
Dan Copeland
Regular Advisor

finding out mac address of nic card

Admins,

Is there a way to figure out the hardcoded mac address of a nic card w/ the output of uname or something like that (I thought I heard this before)? Not the current mac address of the card, the mac address that the card had when the machine was shipped.

tia,
Frank
8 REPLIES 8
harry d brown jr
Honored Contributor

Re: finding out mac address of nic card


Two solutions:
(1) shut machine off, pull card out, inspect card

(2) Stop the system from overriding the mac address, then shut the machine down and power off, then reboot, and use lanscan to find it.

live free or die
harry
Live Free or Die
Uday_S_Ankolekar
Honored Contributor

Re: finding out mac address of nic card

Hi,
lanscan would do it..

-USA..
Good Luck..
harry d brown jr
Honored Contributor

Re: finding out mac address of nic card

Uday,

Not if it's overridden. Which I do when I have to replace a nic in a firewall where the IP is bound to a mac.

live free or die
harry
Live Free or Die
Philip Kernohan
Advisor

Re: finding out mac address of nic card

Frank,

sorry I don't know any method of obtaining the actual MAC on the card but I'm throwing this idea out there which would require some testing as it's a bit of a hack ...

Could write a startup script for /sbin/rc?.d/SXXX100basequery (e.g.) and associated /sbin/init.d/100basequery to query the card before any of the '100conf' startup scripts modify the MAC.

This could then insert the info into /etc/rc.log for future reference.

This has the disadvantage of only logging this on a boot up. You **could** also modify the standard '100conf' scripts but this is subject to HP-UX patching etc. so I would advise against that.

Hope that helps.

Regards,
PK
It's nice to be important but it's more important to be nice
Steven Sim Kok Leong
Honored Contributor

Re: finding out mac address of nic card

Hi,

The surest way is to disconnect the LAN card from your system and look at the imprinted MAC address :-)

This aside, it is rare to have MAC addresses modified on HP-UX servers. lanscan should be the easy way of achieving this information.

If you are afraid of applications changing the MAC address (somehow), then shutdown to single-user mode (or maintenance mode) whereby the network is not activated and subsequently performing a lanscan.

Hope this helps. Regards.

Steven Sim Kok Leong
mark lenderman_3
New Member

Re: finding out mac address of nic card

You will find the MAC address inside the cstm utility. Run cstm....you'll find it.

Mark L.
Pete Randall
Outstanding Contributor

Re: finding out mac address of nic card

Mark,

I'm not sure cstm was available 3 years ago!

;^)



Pete

Pete
Rita C Workman
Honored Contributor

Re: finding out mac address of nic card

Ah...this is a hoot.

I finally get 5 minutes to get on the Forums and I stumble across a 3 year old resurection....

Good Eyes Pete !!
Say Hi to Jill for me !
Rgrds,
Rita