#!/bin/sh
echo ==========================
echo -n Start Time:
date
echo -n Current Total Connection Numbers:
more /proc/slabinfo |grep ip_conn |grep -v expe | awk {'print $2'}
cp -f /proc/net/ip_conntrack /tmp/ip_conntrack
echo Top 10 Max Conn IP:
#find top 10 ,with 192.168
more /tmp/ip_conntrack |grep ESTAB| awk {'print $5'}|grep 192.168|cut -d= -f2|sort |uniq -c|sort -n|tail -10
echo -n Finish Time:
date
echo ===========================
#
阅读(1367) | 评论(0) | 转发(0) |