ftp.sh
# !/bin/bash
total=`netstat -an|grep "210.51.xxx.192:21 "|grep -v LISTEN|wc -l`
avail=`netstat -an|grep "210.51.xxx.192:21 "|grep ESTAB|wc -l`
UPtime=`/usr/bin/uptime`
echo $total
echo $avail
echo $UPtime
echo FTP 连接数
web.sh
# !/bin/bash
total=`netstat -an|grep "210.51.xxx.192:80 "|grep -v LISTEN|wc -l`
avail=`netstat -an|grep "210.51.xxx.192:80 "|grep ESTAB|wc -l`
UPtime=`/usr/bin/uptime`
echo $total
echo $avail
echo $UPtime
echo APACHE 连接数
[ 关闭窗口 ]
Copyright © 1999-2000 LSLNET.COM. All rights reserved. 蓝森林网站 版权所有。
E-mail :
[email protected]