sysstat.2.sh

sysstat.sh

#! /bin/sh
export LC_ALL=zh_CN.UTF-8
cd /bin2/
sh  sysstat-daily.sh > sysstat-daily.sh.log 2>&1
mutt -s "scm5 sysstat-daily" scm-svr-mtr@scm5.***.cn < sysstat-daily.sh.log 

sysstat-daily.sh

#! /bin/sh 
#echo "***10.1.56.221阵列情况...***"
#/usr/sbin/afacli @sysstat-daily

#echo .
echo "***10.12.5.49数据库情况...***"
/usr/bin/mysqlcheck -u root -p*** --databases sympa
 

sysstat-daily

open afa0
container list
enclosure show slot
exit

你可能感兴趣的:(sysstat.2.sh)