2014. 8. 28. 13:17

#! /bin/bash

LOGDATE=`/bin/date +%m%d_%H`

while true

do

NETSTAT_SSL=`netstat -an | grep 8443 | grep EST | wc -l`

NETSTAT=`netstat -an | grep 8080 | grep EST | wc -l`

WAS1=`netstat -an | grep 10.xxx.xxx.xxx | grep EST | wc -l`

WAS2=`netstat -an | grep 10.xxx.xxx.xxx| grep EST | wc -l`

WAS3=`netstat -an | grep 10.xxx.xxx.xxx | grep EST | wc -l`

WAS4=`netstat -an | grep 10.xxx.xxx.xxx | grep EST | wc -l`

WAS5=`netstat -an | grep 10.xxx.xxx.xxx | grep EST | wc -l`

WAS6=`netstat -an | grep 10.xxx.xxx.xxx | grep EST | wc -l`

DATE=`/bin/date + %Y%m%d_%H%M%s'

echo "[${DATE}] (${NETSTAT_SSL} ${NETSTAT}) ${WAS1} ${WAS2} ${WAS3} ${WAS4} ${WAS5} ${WAS6} " | tee -a netstat_wb01_${LOGDATE}.log

sleep 1

done

'JBoss' 카테고리의 다른 글

JBoss 기본 로깅 레벨 변경  (0) 2015.01.06
admin-console ID,PW 변경  (0) 2014.09.26
JBOSS 바인딩 IP 정의  (0) 2014.08.26
Posted by 아도니우스