On solaris, is there a command to get the Ethernet Card MAC Address without being root

ppower66 picture ppower66 · Apr 21, 2010 · Viewed 44.9k times · Source

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

Answer

srikanth picture srikanth · Jul 26, 2010

/usr/bin/netstat -pn |grep SP