netstat -ant | awk '/^tcp/ {++state[$NF]} END {for(key in state) print key,state[key]}' netstat -s | grep timestamp