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]