You are here

tcp connection monitoring

i found this script immensely useful to determine the activity of your tcp stack

#!/bin/sh
while true
do         
        netstat -an | awk '/tcp/ {print $6}' | sort | uniq -c;         
        sleep 5;         
        clear; 
done