Counting TIME_WAIT with netstat
# netstat -tan | grep ':80 ' | awk '{print $6}' | sort | uniq -c
Sample Output:
15 CLOSING
26 ESTABLISHED
31 FIN_WAIT1
7 FIN_WAIT2
14 LAST_ACK
2 LISTEN
24 SYN_RECV
2428 TIME_WAIT
Labels: sysadmin
0 Comments:
Post a Comment
<< Home