Sunday, January 25, 2009

Dig out more information about particular IP address


# netstat -nat | awk '{print $6}' | sort | uniq -c | sort -n

Output:
1 CLOSE_WAIT
1 established)
1 Foreign
3 FIN_WAIT1
3 LAST_ACK
13 ESTABLISHED
17 LISTEN
154 FIN_WAIT2
327 TIME_WAIT

0 comments: