kstat on T5220

We used kstat on netra240/440 to check if the link is full duplex. So we do something like:

bash-3.00# kstat -pc net bge:1::/'link_duplex'/ | cut -f2
2

The output 2 indicates the link is full duplex. This kind of check worked all right for Netra 240/440 systems.

However, the nxge interface on Netra T5220 system is returning me 2 rows of output. E.g.

bash-3.00# kstat -pc net nxge:0::/'link_duplex'/
nxge:0:mac:link_duplex 2
nxge:0:Port Stats:link_duplex full

Do you know which one indicates that the link is full duplex? What would be the right command to check full duplex on T5220?

Thanks.

try "dladm show-dev" on solaris 10.

That's great, DukeNuke2! Thanks.