tags:

views:

87

answers:

2

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

+1  A: 

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.)

David Gelhar
Thanks for that David - it worked beautifully
ppower66
Or "arp $(hostname) | cut -d' ' -f4".
Martin Carpenter
+1  A: 

/usr/bin/netstat -pn |grep SP

srikanth