Solaris “ifconfig” and “ifconfig -a” miss out on interesting values like “error” & “drop” etc. netstat and ndd are its replacement in that case
# see common stats - usually seen with "ifconfig -a" in linux netstat -i
Find out your interface names in /dev folder, for me its /dev/e1000g but its split into /dev/e1000g0 and /dev/e1000g1
# see all available variables (and whether they are read only or read/write) - readonly meaning you can only view their value, read/write meaning you can view their value and change it (such as duplex setting) ndd /dev/e1000g \?
How to view every value nicely:
# How to view 1 value of the lp_100hdx_cap value ndd /dev/e1000g0 lp_100hdx_cap # how to view the /dev/e1000g0 value of every variable (in your case just change the ETHT variable and copy paste the whole commmand) ETHT=/dev/e1000g0; for i in `ndd $ETHT \? | awk '{print $1}' | tail -n +2`; do echo "$ETHT $i: `ndd $ETHT $i`"; done; # in rare case you want to compare 2 nics side by side ETHT1=/dev/e1000g0; ETHT2=/dev/e1000g1; diff -y <(for i in `ndd $ETHT1 \? | awk '{print $1}' | tail -n +2`; do echo "$ETHT1 $i: `ndd $ETHT1 $i`"; done;) <(for i in `ndd $ETHT2 \? | awk '{print $1}' | tail -n +2`; do echo "$ETHT2 $i: `ndd $ETHT2 $i`"; done;);
My apologizes too lazy to include output on this article. (hey this is my own notebook blog, anyways)