cat monitornet.sh while true do lines=`netstat -an | grep YOURDESTINATIONIP | grep SYN` sleep 0.1 if [ "$lines" ]; then echo `date` $lines echo " " fi done
Maybe running netstat 10 times a second will kill your server, so you better sleep a bit more
Anything about Java, WebLogic, OSB, Linux etc.... this is my logbook of a navigation in the IT Technology ocean.
cat monitornet.sh while true do lines=`netstat -an | grep YOURDESTINATIONIP | grep SYN` sleep 0.1 if [ "$lines" ]; then echo `date` $lines echo " " fi done
No comments:
Post a Comment