]# netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'TIME_WAIT 260CLOSE_WAIT 913FIN_WAIT1 9FIN_WAIT2 129ESTABLISHED 1683