Sunday, April 26, 2009

Check network interface (NIC) speed, duplex and autoneg Solaris

Duplex
bash-2.05# kstat -m -i 0 -s link_duplex|grep link_duplex|awk '{print $2}'

2= Full duplex

Speed
kstat -m -i 0 -s link_speed|grep link_speed|awk '{print $2}'

Autoneg
kstat -m -i 0 -s cap_autoneg|grep cap_autoneg|awk '{print $2}'

No comments: