cancel
Showing results for 
Search instead for 
Did you mean: 

how to mac address in HPUX

jgobbur
Advisor

how to mac address in HPUX

Pls let me sample code to get mac address in hpux machine.
8 REPLIES
Robert-Jan Goossens
Honored Contributor

Re: how to mac address in HPUX

Hi,

Try

# lanscan
or
# lanadmin

Regards,
Robert-Jan
jgobbur
Advisor

Re: how to mac address in HPUX

Can you provide me sample c program.
Robert-Jan Goossens
Honored Contributor

Re: how to mac address in HPUX

Steven E. Protter
Exalted Contributor

Re: how to mac address in HPUX

Shalom,

lanscan will show all MAC addresses for NIC cards.

Note its possible to change this if you need to do so. Not a fun thing to do, but possible.

SEP
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
Md. Farhan A Azam
Trusted Contributor

Re: how to mac address in HPUX

lanscan will display the MAC address under the Station Address heading.
sujit kumar singh
Honored Contributor

Re: how to mac address in HPUX

hi u can do a simple

#lanscan

or #lanscan -v


the results will show u numbers like 0x----------

these are the MAC addresses of the LAN I/f Cards as expressed in the Hexadecimal format.


Regards
Sujit
Johnson Punniyalingam
Honored Contributor

Re: how to mac address in HPUX

Mac Address

lanscan |awk '{print $2}'|grep -v Station|grep -v Address
Problems are common to all, but attitude makes the difference
Asif Sharif
Honored Contributor

Re: how to mac address in HPUX