Get Mac Address

:frowning:
Hi
I am trying to get Mac address of of my Sun server from my C program running on the host machine.
Any suggestions .

If you have root access you can see the MAC with the ifconfig -a command.

If not, it may be in the output of dmesg

$ dmesg|grep "Ethernet address"