大橙子网站建设,新征程启航

为企业提供网站建设、域名注册、服务器等服务

AIX巡检脚本erikxue

#!/usr/bin/ksh
# 获取主机系统配置

# Get Hostname
HOSTNAME=`hostname`

# Get Serial number
SERIAL=`lscfg -vpl sysplanar0 |grep -p "System:" |grep "Machine/Cabinet"`
if [[ $? -eq 0 ]]; then
SERIAL=${SERIAL##*.}
else
SERIAL=`lscfg -vpl sysplanar0 |grep -p "System VPD:" |grep "Machine/Cabinet"`
if [[ $? -eq 0 ]]; then
SERIAL=${SERIAL##*.}
else
SERIAL=NotAvailable
fi
fi

# Get Lparinfo
LPARINFO=`uname -L`

# Pre-5.2, `uname -L` returns a leading "AIX"
# Check for a leading AIX and remove it
if [[ $LPARINFO = AIX* ]]
then
LPARINFO=${LPARINFO#* }
fi

LPARINFO_NUM=`echo ${LPARINFO}|awk '{print $1}'`
if [[ "${LPARINFO_NUM}" != "" ]] ; then
if [[ ${LPARINFO_NUM} -ne -1 ]] ; then
DIRNAME=${HOSTNAME}.${LPARINFO_NUM}.${SERIAL}
else
DIRNAME=${HOSTNAME}.1.${SERIAL}
LPARINFO=NONE
fi
else
DIRNAME=${HOSTNAME}.1.${SERIAL}
fi

if [[ ! -d /tmp/${DIRNAME} ]]
then
mkdir -p /tmp/${DIRNAME}
fi

CFGDIR=/tmp/${DIRNAME}

date >$CFGDIR/date.log

if [[ ! -d $CFGDIR/file ]]
then
mkdir -p $CFGDIR/file
fi

if [[ -f $CFGDIR/file/diff.log ]]
then
rm -f $CFGDIR/file/diff.log
fi


#Get Config File
echo "Get Config File ********\n"


for FULLNAME in /.dtprofile /.profile /.rhost /smit.log /etc/environment /etc/inittab /etc/filesystems /etc/hosts /etc/services /etc/inetd.conf /etc/syslog.conf /etc/hosts.equiv /etc/passwd /etc/security/passwd /etc/group /etc/security/group /etc/security/limits
do
FILENAME=$(echo ${FULLNAME}|awk -F/ '{print $NF}')
# echo "${FULLNAME}\n"
# echo "${FILENAME}\n"

if [[ ${FULLNAME} = *security* ]] && [[ ${FULLNAME} != *limits ]]
then
FILENAME=security.${FILENAME}
# echo ${FILENAME}
fi

if [[ -f ${FULLNAME} ]]
then
if [[ -f $CFGDIR/file/${FILENAME} ]]
then
# echo "${FULLNAME}\n"
diff $CFGDIR/file/${FILENAME} ${FULLNAME} >>$CFGDIR/file/diff.log
if [[ $? != 0 ]]
then
echo "${FULLNAME} was varied\n" >>$CFGDIR/file/diff.log
cp -p ${FULLNAME} $CFGDIR/file/${FILENAME}
fi
else
cp -p ${FULLNAME} $CFGDIR/file/${FILENAME}
fi
else
echo "${FULLNAME} does not exist!\n" >>$CFGDIR/file/error.log
fi
done


#Get Hardware Information
echo "Get Hardware Information ********\n"

if [[ ! -d $CFGDIR/hardware ]]
then
mkdir -p $CFGDIR/hardware
fi

echo ${HOSTNAME} >$CFGDIR/hardware/hostname.txt

echo ${SERIAL} >$CFGDIR/hardware/serialnumber.txt

echo ${LPARINFO} >$CFGDIR/hardware/lparinfo.txt

echo " prtconf \n" >$CFGDIR/hardware/prtconf.log
prtconf >>$CFGDIR/hardware/prtconf.log

MODEL=`lsattr -El sys0 -a modelname -F value`
echo ${MODEL} >$CFGDIR/hardware/model.txt

FWVERSION=`lsattr -El sys0 -a fwversion -F value`
echo ${FWVERSION} >$CFGDIR/hardware/fwversion.txt

NUMPROC=`lsdev -Cc processor | grep Available | wc -l`
NUMPROC=${NUMPROC##* }
echo ${NUMPROC} >$CFGDIR/hardware/numproc.txt

MSIZE=0
for i in `lscfg | grep -i mem | awk '{print $2}'`
do
((MSIZE=MSIZE + `lsattr -El mem0 | awk '/^size/ {print $2}'`))
done
echo "${MSIZE}MB" >$CFGDIR/hardware/nummem.txt

OSLEVEL=`oslevel -s`
if [[ $? -eq 0 ]]; then
OSLEVEL=${OSLEVEL}
else
OSLEVEL=`instfix -i|grep ML |grep All |sort -rn| head -1 |tr -s "_" " " |awk '{print $4}'`
fi
echo ${OSLEVEL} >$CFGDIR/hardware/oslevel.txt

NUMROOTDISK=`lsvg rootvg |grep "ACTIVE PVs" |awk '{print $3}'`
echo ${NUMROOTDISK} >$CFGDIR/hardware/numrootdisk.txt

if [[ -f $CFGDIR/hardware/rootdisksize.txt ]]
then
rm -f $CFGDIR/hardware/rootdisksize.txt
fi

for i in `lsvg -p rootvg |grep hdisk |sort -n +1 |awk '{print $1}'`
do
ROOTDISKSIZE=`lsattr -El $i|grep size_in_mb |awk '{print $2}`
echo "$i ${ROOTDISKSIZE}MB" >> $CFGDIR/hardware/rootdisksize.txt
done

echo " lsattr -El sys0 \n" >$CFGDIR/hardware/sys0.log
lsattr -El sys0>>$CFGDIR/hardware/sys0.log

echo " lsdev -C \n" >$CFGDIR/hardware/lsdev.log
lsdev -C >>$CFGDIR/hardware/lsdev.log

echo " lscfg -v \n" >$CFGDIR/hardware/lscfg.log
lscfg -v >>$CFGDIR/hardware/lscfg.log

echo " lscfg -vp \n" >$CFGDIR/hardware/lscfg.vp.log
lscfg -vp >>$CFGDIR/hardware/lscfg.vp.log


netstat -in |grep en|sort -rn +2 |sort -n |awk '{print $4}' |head -1 >$CFGDIR/hardware/ipaddr.txt

echo "bindprocessor -q \n" >$CFGDIR/hardware/bindprocessor.log
bindprocessor -q >>$CFGDIR/hardware/bindprocessor.log


echo " lscfg -vp |grep -ip memory |grep -i size \n" >$CFGDIR/hardware/memsize.log
lscfg -vp |grep -ip memory |grep -i size >>$CFGDIR/hardware/memsize.log
echo " lscfg -vp |grep -ip MS |grep -i size \n" >>$CFGDIR/hardware/memsize.log
lscfg -vp |grep -ip MS |grep -i size >>$CFGDIR/hardware/memsize.log

#Get SSA Hardware Information

if [[ ! -d $CFGDIR/hardware/SSA ]]
then
mkdir -p $CFGDIR/hardware/SSA
fi

echo "lsdev -Cc pdisk \n" >$CFGDIR/hardware/SSA/pdisk.log
lsdev -Cc pdisk >>$CFGDIR/hardware/SSA/pdisk.log

for i in `lsdev -Cc disk|grep SSA|grep Available|awk '{print $1}'`
do
echo "ssaxlate -l $i \n" > $CFGDIR/hardware/SSA/ssaxlate.$i.log
ssaxlate -l $i >> $CFGDIR/hardware/SSA/ssaxlate.$i.log
done

for i in `lsdev -Cc adapter|grep ssa|grep Available|awk '{print $1}'`
do
echo "ssa_fw_status -a $i \n" > $CFGDIR/hardware/SSA/ssastatus.$i.log
ssa_fw_status -a $i >> $CFGDIR/hardware/SSA/ssastatus.$i.log
echo "ssa_diag -l $i \n" > $CFGDIR/hardware/SSA/ssadiag.$i.log
ssa_diag -l $i >> $CFGDIR/hardware/SSA/ssadiag.$i.log
done

for i in `lsdev -C|grep enclosure|grep Available|awk '{print $1}'`
do
echo "ssaencl -l $i -a \n" > $CFGDIR/hardware/SSA/ssaencl.$i.log
ssaencl -l $i -a >>$CFGDIR/hardware/SSA/ssaencl.$i.log
echo "*******************" >>$CFGDIR/hardware/SSA/ssaencl.$i.log
echo "ssaencl -l $i -b \n" >> $CFGDIR/hardware/SSA/ssaencl.$i.log
ssaencl -l $i -b >>$CFGDIR/hardware/SSA/ssaencl.$i.log
echo "*******************" >>$CFGDIR/hardware/SSA/ssaencl.$i.log
echo "ssaencl -l $i -cv \n" >> $CFGDIR/hardware/SSA/ssaencl.$i.log
ssaencl -l $i -cv >>$CFGDIR/hardware/SSA/ssaencl.$i.log
echo "*******************" >>$CFGDIR/hardware/SSA/ssaencl.$i.log
echo "ssaencl -l $i -d \n" >> $CFGDIR/hardware/SSA/ssaencl.$i.log
ssaencl -l $i -d >>$CFGDIR/hardware/SSA/ssaencl.$i.log
echo "*******************" >>$CFGDIR/hardware/SSA/ssaencl.$i.log
echo "ssaencl -l $i -iort \n" >> $CFGDIR/hardware/SSA/ssaencl.$i.log
ssaencl -l $i -iort >>$CFGDIR/hardware/SSA/ssaencl.$i.log
echo "*******************" >>$CFGDIR/hardware/SSA/ssaencl.$i.log
echo "ssaencl -l $i -f \n" >> $CFGDIR/hardware/SSA/ssaencl.$i.log
ssaencl -l $i -f >>$CFGDIR/hardware/SSA/ssaencl.$i.log
echo "*******************" >>$CFGDIR/hardware/SSA/ssaencl.$i.log
echo "ssaencl -l $i -p \n" >> $CFGDIR/hardware/SSA/ssaencl.$i.log
ssaencl -l $i -p >>$CFGDIR/hardware/SSA/ssaencl.$i.log
done


#Get DS4000 Hardware Information

if [[ ! -d $CFGDIR/hardware/DS4000 ]]
then
mkdir -p $CFGDIR/hardware/DS4000
fi

echo "fget_config -vA \n" > $CFGDIR/hardware/DS4000/fgetcfg.log
fget_config -vA >> $CFGDIR/hardware/DS4000/fgetcfg.log

#Get Software Information
echo "Get Software Information ********\n"

if [[ ! -d $CFGDIR/software ]]
then
mkdir -p $CFGDIR/software
fi

echo " oslevel -s \n" >$CFGDIR/software/oslevel.s.log
oslevel -s >>$CFGDIR/software/oslevel.s.log

echo " oslevel -r \n" >$CFGDIR/software/oslevel.r.log
oslevel -r >>$CFGDIR/software/oslevel.r.log

echo " instfix \n" >$CFGDIR/software/instfix.log
instfix -i|grep ML >>$CFGDIR/software/instfix.log

echo " lslpp \n" >$CFGDIR/software/lslpp.log
lslpp -l >>$CFGDIR/software/lslpp.log

lslpp -l |grep cluster |awk '{print $2}' |sort -rn |head -1 >$CFGDIR/software/clusterver.txt

echo "lslpp -l |grep cluster \n" >$CFGDIR/software/cluster.log
lslpp -l |grep cluster >>$CFGDIR/software/cluster.log

UNMIRROR=`lsvg -l rootvg |grep -v sysdump |grep /|grep -E 'open|hd5' |awk '{if($4<2*$3)print $1}'|wc -l`
LV_ROOTVG=`lsvg -l rootvg |grep -v sysdump |grep /|grep -E 'open|hd5' |wc -l`
if [[ ${UNMIRROR} -eq 0 ]];then
echo "YES" >$CFGDIR/software/rootvg_mirror.txt
elif [[ ${UNMIRROR} -eq ${LV_ROOTVG} ]];then
echo "NO" >$CFGDIR/software/rootvg_mirror.txt
else
echo "Partial" >$CFGDIR/software/rootvg_mirror.txt
fi

#Get Volume Group Information
echo "Get Volume Group Information ********\n"

if [[ ! -d $CFGDIR/lvm/vg ]]
then
mkdir -p $CFGDIR/lvm/vg
fi

echo "lsvg \n" >$CFGDIR/lvm/vg/vg.log
lsvg >>$CFGDIR/lvm/vg/vg.log

echo " \n\n lsvg -o \n" >>$CFGDIR/lvm/vg/vg.log
lsvg -o >>$CFGDIR/lvm/vg/vg.log



#Get Physical Volume and Logical Volume Information
echo "Get Physical Volume and Logical Volume Information ********\n"

if [[ ! -d $CFGDIR/lvm/pv ]]
then
mkdir -p $CFGDIR/lvm/pv
fi

if [[ ! -d $CFGDIR/lvm/lv ]]
then
mkdir -p $CFGDIR/lvm/lv
fi

echo "lsdev -Cc disk \n" > $CFGDIR/lvm/pv/lsdev.disk
lsdev -Cc disk >> $CFGDIR/lvm/pv/lsdev.disk

echo "lspv \n" > $CFGDIR/lvm/pv/lspv.log
lspv >> $CFGDIR/lvm/pv/lspv.log

for VG in `lsvg -o`
do
echo "lsvg$VG \n" > $CFGDIR/lvm/vg/lsvg.$VG
lsvg $VG >> $CFGDIR/lvm/vg/lsvg.$VG

echo "lsvg -p $VG \n" > $CFGDIR/lvm/vg/lsvg.$VG.p
lsvg -p $VG >> $CFGDIR/lvm/vg/lsvg.$VG.p

echo "lsvg -l $VG \n" > $CFGDIR/lvm/vg/lsvg.$VG.l
lsvg -l $VG >> $CFGDIR/lvm/vg/lsvg.$VG.l

for DISK in `lsvg -p $VG|grep hdisk|cut -f 1,1 -d ' '`
do
echo "lspv $DISK \n" > $CFGDIR/lvm/pv/lspv.$DISK
lspv $DISK >> $CFGDIR/lvm/pv/lspv.$DISK 2>/dev/null

echo "lspv -l $DISK \n" > $CFGDIR/lvm/pv/lspv.$DISK.l
lspv -l $DISK >> $CFGDIR/lvm/pv/lspv.$DISK.l 2>/dev/null

echo "lspv -p $DISK \n" > $CFGDIR/lvm/pv/lspv.$DISK.p
lspv -p $DISK >> $CFGDIR/lvm/pv/lspv.$DISK.p 2>/dev/null

done
for LV in `lsvg -l $VG|grep -v $VG|grep -v "LV NAME"|cut -f 1,1 -d ' '`
do
echo "lslv $LV \n" > $CFGDIR/lvm/lv/lslv.$LV
lslv $LV >> $CFGDIR/lvm/lv/lslv.$LV

echo "lslv -m $LV \n" > $CFGDIR/lvm/lv/lslv.$LV.m
lslv -m $LV >> $CFGDIR/lvm/lv/lslv.$LV.m

done
done

#Get Network Information
echo "Get Network Information ********\n"

if [[ ! -d $CFGDIR/network ]]
then
mkdir -p $CFGDIR/network
fi

echo " ifconfig -a \n" > $CFGDIR/network/ifconfig.log
ifconfig -a >> $CFGDIR/network/ifconfig.log

echo " netstat -i \n" > $CFGDIR/network/netstat.i
netstat -i >> $CFGDIR/network/netstat.i

echo " netstat -in \n" > $CFGDIR/network/netstat.in
netstat -in >> $CFGDIR/network/netstat.in

echo " netstat -a \n" > $CFGDIR/network/netstat.a
netstat -a >> $CFGDIR/network/netstat.a

echo " netstat -rn \n" > $CFGDIR/network/netstat.rn
netstat -rn >> $CFGDIR/network/netstat.rn

for i in `lsdev -Cc adapter|grep ent|grep Available|awk '{print $1}'`
do
echo "entstat -d $i \n" > $CFGDIR/network/entstat.$i
entstat -d $i >> $CFGDIR/network/entstat.$i
done

echo " no -a \n" > $CFGDIR/network/no.log
no -a >> $CFGDIR/network/no.log

#echo "ping \n" > $CFGDIR/network/ping.txt
ping -c 10 `netstat -rn|grep default|awk '{print $2}'`|wc -l >> $CFGDIR/network/ping.txt

#Get boot information
echo "Get Boot Information ********\n"

if [[ ! -d $CFGDIR/bootinfo ]]
then
mkdir -p $CFGDIR/bootinfo
fi

echo "bootlist -m normal -o \n" > $CFGDIR/bootinfo/bootlist.log
bootlist -m normal -o >> $CFGDIR/bootinfo/bootlist.log

echo "bootinfo -K \n" > $CFGDIR/bootinfo/bootinfo.log
bootinfo -K >> $CFGDIR/bootinfo/bootinfo.log

echo "alog -o -t boot \n" > $CFGDIR/bootinfo/boot.log.log
alog -o -t boot >> $CFGDIR/bootinfo/boot.log.log

echo "uptime \n" > $CFGDIR/bootinfo/uptime.log
uptime >> $CFGDIR/bootinfo/uptime.log

echo "env \n" > $CFGDIR/bootinfo/env.log
env >> $CFGDIR/bootinfo/env.log

echo "vmo -a \n" > $CFGDIR/bootinfo/vmo.log
vmo -a >> $CFGDIR/bootinfo/vmo.log

echo "/usr/samples/kernel/vmtune -a \n" > $CFGDIR/bootinfo/vmtune.log
/usr/samples/kernel/vmtune -a >> $CFGDIR/bootinfo/vmtune.log

echo "ioo -a \n" > $CFGDIR/bootinfo/ioo.log
ioo -a >> $CFGDIR/bootinfo/ioo.log

echo "crontab -l\n" > $CFGDIR/bootinfo/crontab.log
crontab -l >> $CFGDIR/bootinfo/crontab.log

# 获取主机性能信息

#Get Errpt Information
echo "Get Errpt Information ********\n"

if [[ ! -d $CFGDIR/errpt ]]
then
mkdir -p $CFGDIR/errpt
fi

echo " errpt \n" > $CFGDIR/errpt/errpt.log
errpt >> $CFGDIR/errpt/errpt.log

#echo " errpt -d H \n" > $CFGDIR/errpt/errpt.H.txt
errpt -T PERM -d H >> $CFGDIR/errpt/errpt.H.txt
errpt -T PERF -d H >> $CFGDIR/errpt/errpt.H.txt
errpt -T PEND -d H >> $CFGDIR/errpt/errpt.H.txt

echo " errpt -a \n" > $CFGDIR/errpt/errpt.a.log
errpt -a >> $CFGDIR/errpt/errpt.a.log

#Get Mail Information
echo "Get Mail Information ********\n"

if [[ ! -d $CFGDIR/mail ]]
then
mkdir -p $CFGDIR/mail
fi

cp /var/spool/mail/root $CFGDIR/mail/rootmail.txt
cp /mbox $CFGDIR/mail/mbox.txt

#Get software utilization Information
echo "Get software utilization ********\n"

if [[ ! -d $CFGDIR/softwareutil ]]
then
mkdir -p $CFGDIR/softwareutil
fi

echo "df -k \n" >$CFGDIR/softwareutil/df.log
df -k >>$CFGDIR/softwareutil/df.log

SUPER_DF=0
for i in `df -k |sort -rn +3 |awk '{print $4}'`
do
if [[ $i = 100% ]]; then
SUPER_DF=1
elif [[ $i > 84.9% ]]
then
SUPER_DF=$(expr $SUPER_DF + 1)
else
break
fi
done
if [[ ${SUPER_DF} = 0 ]]
then
cat /dev/null >$CFGDIR/softwareutil/df.txt
else
df -k |sort -rn +3 | head -${SUPER_DF} >$CFGDIR/softwareutil/df.txt
fi


echo "ps -ef\n" >$CFGDIR/softwareutil/ps.log
ps -ef >>$CFGDIR/softwareutil/ps.log

#echo "lsvg -il \n" >$CFGDIR/softwareutil/stalelv.txt
lsvg -o |lsvg -il|grep stale >>$CFGDIR/softwareutil/stalelv.txt

echo "sysdumpdev \n" >$CFGDIR/softwareutil/sysdumpdev.l.log
sysdumpdev -l >>$CFGDIR/softwareutil/sysdumpdev.l.log
sysdumpdev -e >>$CFGDIR/softwareutil/sysdumpdev.e.log

/usr/lib/ras/dumpcheck >$CFGDIR/softwareutil/sysdumpcheck.txt

echo "ps aux | head -1 ; ps aux | sort -rn +2 | head" >$CFGDIR/softwareutil/top10cpu.log
ps aux | head -1 >>$CFGDIR/softwareutil/top10cpu.log
ps aux | sort -rn +2 | head >>$CFGDIR/softwareutil/top10cpu.log

echo "ps aux | head -1 ; ps aux | sort -rn +3 | head" >$CFGDIR/softwareutil/top10mem.log
ps aux | head -1 >>$CFGDIR/softwareutil/top10mem.log
ps aux | sort -rn +3 | head >>$CFGDIR/softwareutil/top10mem.log

#Get Performance Information
echo "Get Performance Information ********\n"

if [[ ! -d $CFGDIR/performance ]]
then
mkdir -p $CFGDIR/performance
fi

echo "sar 3 20 \n" >$CFGDIR/performance/sar.log
sar 3 20 |tee -a $CFGDIR/performance/sar.log |sed -n '$'p |awk '{$6=$2+$3; print $6"%"}' >$CFGDIR/performance/sar.txt


echo "sar -PALL 3 20 \n" >$CFGDIR/performance/sar.all.log
sar -PALL 3 20 >>$CFGDIR/performance/sar.all.log

echo "vmstat 3 20 \n" >$CFGDIR/performance/vmstat.log
vmstat 3 20 |tee -a $CFGDIR/performance/vmstat.log |sed -n '5,$'p|awk '{if($6 !=0 || $7 !=0) print $0}'|wc -l >$CFGDIR/performance/vmstat.txt

echo "iostat 3 20 \n" >$CFGDIR/performance/iostat.log
iostat 3 20 |tee -a $CFGDIR/performance/iostat.log |grep hdisk |awk '{if($2>=80) print $1}'|sort -u >$CFGDIR/performance/iostat.txt

echo "svmon \n" >$CFGDIR/performance/svmon.log
svmon -G |tee -a $CFGDIR/performance/svmon.log |grep memory |awk '{$7=$3/$2*100;print $7"%"}' >$CFGDIR/performance/svmon.txt

echo "lsps -s \n" >$CFGDIR/performance/lsps.log
lsps -s >>$CFGDIR/performance/lsps.log
lsps -s|grep "%" |awk '{print $2}' >$CFGDIR/performance/lsps.txt

# 获取HA信息

HAVER=`lslpp -l |grep cluster |awk '{print $2}' |sort -rn |head -1`
if [[ "${HAVER}" = "" ]] ; then
#compress the information
echo "HACMP not configuration *******\n"
echo "compress the Information ********\n"
cd /tmp
tar -cvf ${DIRNAME}.tar ./${DIRNAME}/* >/dev/null
compress ${DIRNAME}.tar

exit 0
fi

echo "Get HACMP information *******\n"

if [[ ! -d $CFGDIR/ha ]]
then
mkdir -p $CFGDIR/ha
fi

if [[ -f $CFGDIR/ha/diff.log ]]
then
rm -f $CFGDIR/ha/diff.log
fi

#Get Config File

#!/bin/ksh
Nodename=`/usr/es/sbin/cluster/utilities/get_local_nodename`
echo ${Nodename}
/usr/es/sbin/cluster/utilities/clsnapshot -c -i -n ${Nodename} -d `date +%Y%m%d`
mv /usr/es/sbin/cluster/snapshots/${Nodename}.info $CFGDIR/ha
mv /usr/es/sbin/cluster/snapshots/${Nodename}.odm $CFGDIR/ha
cp /tmp/hacmp* $CFGDIR/ha
/usr/es/sbin/cluster/utilities/cltopinfo >$CFGDIR/ha/cltopinfo.log
/usr/es/sbin/cluster/utilities/cltopinfo -i >$CFGDIR/ha/cltopinfo.i.log
/usr/es/sbin/cluster/utilities/cllsclstr -n >$CFGDIR/ha/cllsclstr.log
/usr/es/sbin/cluster/utilities/cllsgrp >$CFGDIR/ha/cllsgrp.log
/usr/es/sbin/cluster/utilities/cllsres >$CFGDIR/ha/cllsres.log
/usr/es/sbin/cluster/utilities/clshowres >$CFGDIR/ha/clshowres.log
/usr/es/sbin/cluster/utilities/cllsserv >$CFGDIR/ha/cllsserv.log
/usr/es/sbin/cluster/utilities/clfindres >$CFGDIR/ha/clfindres.log
/usr/es/sbin/cluster/utilities/cllsif >$CFGDIR/ha/cllsif.log


#compress the information
echo "compress the Information ********\n  by erikxue"
cd /tmp
tar -cvf ${DIRNAME}.tar ./${DIRNAME}/* >/dev/null
compress ${DIRNAME}.tar


exit 0

创新互联公司-专业网站定制、快速模板网站建设、高性价比格尔木网站开发、企业建站全套包干低至880元,成熟完善的模板库,直接使用。一站式格尔木网站制作公司更省心,省钱,快速模板网站建设找我们,业务覆盖格尔木地区。费用合理售后完善,十载实体公司更值得信赖。


网站名称:AIX巡检脚本erikxue
本文路径:http://dzwzjz.com/article/gsijog.html
在线咨询
服务热线
服务热线:028-86922220
TOP