Thursday, May 25, 2006

equivalent ethtool for solaris

if you are looking for equivalent ethtool for solaris, the answer is ndd
ndd - get and set driver configuration parameters

to get your network interface card (eg: hme0) info:
# ndd -get /dev/hme link_status
# ndd -get /dev/hme link_speed
# ndd -get /dev/hme link_mode

0 for Link Down
1 for Link up

0 for 10 Mbps
1 for 100 Mbps

0 for Half-Duplex mode
1 for Full-Duplex mode

and of course for more info:
# man ndd