2010年5月12日

netstat 統計連線狀態數量

netstat -n awk '/^tcp/{++S[$NF]} END {for(a in S) print a,S[a]}'
TIME_WAIT 6
ESTABLISHED 4
LAST_ACK 3

沒有留言:

張貼留言