Identifying NIC card speed

Hi All ,Is there any command to find the NIC card speed (whether it is half duplex of full duplex). Please help me on this.Thank you,Rajesh Kannan R.
[177 byte] By [grkrajesh] at [2007-11-26 8:28:02]
# 1

Example for hme1 ;

ndd -set /dev/hme instance 1 -> further ndd commands will apply to /dev/hme1

ndd /dev/hme adv_autoneg_cap -> Are we autonegotiating? 1=true, 0=false

ndd /dev/hme link_speed -> Link speed? 1=100Mb/s, 0=10Mb/s

ndd /dev/hme link_mode -> Duplex mode? 1=FD, 0=HD

Change as appropriate :-)

wrightrp at 2007-7-6 21:44:33 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2

You can see what speed the card has come up in /var/adm/messages

eg

Jul 4 10:45:21 florida eri: [ID 786680 kern.notice] SUNW,eri0 : 100 Mbps full duplex link up

Also check out this cool cool script. The speed and duplex setting are stored in the Kernel and can be pulled out using this script, which formats them in a nice way for you.

http://www.brandonhutchinson.com/Solaris_NIC_speed_and_duplex_settings.html

Hope this helps!

smyles at 2007-7-6 21:44:33 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 3
Hi All ,Thanks to all, now i am able identify link speed & mode of NIC.Thank you,Rajesh Kannan R.
grkrajesh at 2007-7-6 21:44:33 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 4
And if you just have a plain Solaris machine then `kstat` is also able to give you the right information.
hspaans at 2007-7-6 21:44:33 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 5
Hi ,Simply it would show u the speed through#kstat |grep link_speed#kstat |grep link_duplex
dwizranjan at 2007-7-6 21:44:33 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...