ITPub博客

首页 > Linux操作系统 > Linux操作系统 > OS message

OS message

原创 Linux操作系统 作者:yhj20041128001 时间:2012-05-09 14:14:00 0 删除 编辑


#add by hongjun 2012/05/08
##########################This script. is Used to monitor OS Message############

name1=GMLB-B2BDB2
condition='-A 2 -B 2'

##################### rsync message################

cp /var/log/messages  /Data/script/log

####################################################################
echo '  '
echo `uname -a`
date
echo '  '
echo "#############################$name1 info##########################"
echo '  '
tail -n 1000  /Data/script/log/messages|grep $condition error
echo '  '
tail -n 1000  /Data/script/log/messages|grep $condition ERROR
echo '  '
tail -n 1000  /Data/script/log/messages|grep $condition fail
echo '  '
tail -n 1000  /Data/script/log/messages|grep $condition FAIL
echo '  '
tail -n 1000  /Data/script/log/messages|grep $condition shut
echo '  '
tail -n 1000  /Data/script/log/messages|grep $condition SHUT
echo '  '
tail -n 1000  /Data/script/log/messages|grep $condition warn
echo '  '
tail -n 1000  /Data/script/log/messages|grep $condition WARN
echo ' '

echo "############### $name1 OS message END ###################"

 index.html  編輯項

 

 


 





DB2 Filesystem INFO


DB2 Tablespace INFO


DB2 Alertlog INFO


DB2 Longtime Sessions INFO


OS message INFO


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23757700/viewspace-723134/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2010-09-17

  • 博文量
    162
  • 访问量
    355223