Multiple Server

for i in `cat server`
do
free=`ssh $i lsvg rootvg |grep "FREE PPs" |awk -F '('  '{print $2}' |awk '{print $1}'`
dumperr=`ssh $i /usr/lib/ras/dumpcheck -p |awk 'NR==1'`
dmpdev=`ssh $i /usr/lib/ras/dumpcheck -p |awk 'NR==4'`
dmpsize=`ssh $i /usr/lib/ras/dumpcheck -p |awk 'NR==6'`
dumpest=`ssh $i /usr/lib/ras/dumpcheck -p |awk 'NR==8'`
pipe=`echo "|"`
echo $i $pipe $free $pipe $dumperr $pipe $dmpdev $pipe $dmpsize $pipe $dumpest
done
Advertisements