Loading

手动监控网络状态

手动监控网络状态

echo "==================================" >> out.txt
date +"%Y%m%d%H%M" >> out.txt
echo "187.33.1521\t`netstat -an|grep -ic 187.33.1521`" >> out.txt
echo "sg187.140\t`netstat -an|grep -i  187.33.1521|grep -ic 187.140`" >> out.txt
------
echo "who197.4x\t `netstat -an|grep -i 187.33.1521|grep -ic 197.4`">>out.txt
echo "othersIps\t`netstat -an|grep -i  187.33.1521|grep -iv 187.140....|grep -ic  ESTABLISHED`" >> out.txt

 

posted @ 2018-01-29 08:18  stono  阅读(155)  评论(0编辑  收藏  举报