On Solaris, is there a command that I can run to get the MAC address of an ethernet card without running "/sbin/ifconfig -a" as root. Running /sbin/ifconfig -a as a non root user leaves out the MAC address - go figure!
Thanks,
Paul
On Solaris, is there a command that I can run to get the MAC address of an ethernet card without running "/sbin/ifconfig -a" as root. Running /sbin/ifconfig -a as a non root user leaves out the MAC address - go figure!
Thanks,
Paul
Try an "arp -a"
, and look for your own hostname. (This works for me on the Solaris 9 machine I tried it on, but your mileage may vary.)