View TCP status command
View the TCP status command:
[unilife@VM_206_14_centos ~] $netstat-n | awk'/ ^ tcp/ {+ + S [$NF]} END {for (an in S) print a, S [a]} 'TIME_WAIT 179CLOSE_WAIT 1SYN_SENT 1FIN_WAIT1 181FIN_WAIT2 4ESTABLISHED 56986SYN_RECV 220LAST_ACK 293 [unilife@VM_206_14_centos ~] $