Posts

syscheck stability script for AIX

#!/usr/bin/ksh # #-------------------------------------------------- # Script to validate the rootvg and OS information # # Written by : Rameshkumar Pitchairaj #          : IBM Singapore Ptd Ltd #-------------------------------------------------- # Instruction on usage # # 1. Ensure execute permission for the script is there. If not, execute "chmod 755 syscheck_stability.sh" # 2. ./syscheck_stability.sh > `hostname`_syscheck.txt 2>&1 # ------------------------------------------------- # # Get common values # hname=`hostname` osversion=`oslevel -r` dttim=`date '+%Y%m%d-%H:%M'` # # Variables # tmp_dir=/tmp tmpfile=${tmp_dir}/rootcheck.$$ # echo "Checking for rootvg related information....Pls wait...." lsvg rootvg > ${tmpfile}.lsvg lsvg -l rootvg | sed '1,2 d' > ${tmpfile}.lsvgl lsvg -p rootvg | sed '1,2 d' > ${tmpfile}.lsvgp for i in `awk '{print $1}' ${tmpfile}.lsvgp` do  lspv -l $i > ${tmpfile}.lspvl${i} done he...