Multiple Server

echo Server Name,Serial No,LPM Started,LPM Started Time,LPM Completed,LPM completed time

for i in `cat server`
do
serial=`ssh $i prtconf |grep "Machine Serial Number" |awk '{print $4}'`
lpm_start=`ssh $i errpt |grep 08917DC6 |head -1 |awk '{$1=$2=$3=$4=$5=""; print $0}'`
lpm_comp=`ssh $i errpt |grep A5E6DB96 |head -1 |awk '{$1=$2=$3=$4=$5=""; print $0}'`
errdate_start=`ssh $i errpt -aj 08917DC6 |head |grep Date |awk '{print $2,$3,$4,$5,$6}'`
errdate_comp=`ssh $i errpt -aj A5E6DB96 |head |grep Date |awk '{print $2,$3,$4,$5,$6}'`
pipe=`echo "|"`
echo $i,$serial,$lpm_start,$errdate_start,$lpm_comp,$errdate_comp
done