#/bin/sh
成都創(chuàng)新互聯(lián)公司2013年開創(chuàng)至今,先為武岡等服務(wù)建站,武岡等地企業(yè),進(jìn)行企業(yè)商務(wù)咨詢服務(wù)。為武岡企業(yè)網(wǎng)站制作PC+手機(jī)+微官網(wǎng)三網(wǎng)同步一站式服務(wù)解決您的所有建站問(wèn)題。
source /home/oracle/.bash_profile
gridpath=`ps -ef|grep crsd.bin|grep -v grep|awk '{print $8}'`
${gridpath%/*}/crsctl stat res -t |grep -v Resources |grep -v ^-- > res.log
#head -n 6 res.log
while read line
do
tmp=`echo $line | grep "^ora"`
exception=`echo $line | grep -E "OFFLINE|UNKNOWN|ONLINE"`
if [ "X$tmp" != "X" ];then
title=`echo $line | grep "^ora" | awk '{print $1}'`
fi
if [ "X$exception" != "X" ];then
#echo $title : $exception
echo $title : $exception >> /tmp/tst.txt
fi
done < res.log