User manual

Using S.M.A.R.T. Disk Monitor 221
SANTOOLS® is registered in US Patent and Trademark Office No 3,107,854 All rights reserved.
if [ "$a" = "Discovered" ] ; then
if [ "$b" == "SEAGATE" ] ; then
read a b ; read a b
if [ "$a" != "-Background" ] ; then
read x; read x; read x; read x; read x; read a b
if [ "$a" == "Defect#" ] ; then
DONE=0 ; COUNT=0 ; BAD=0
while read n pow blk REASON
do
if [ "$n" == $COUNT ] ; then
BAD=`expr $BAD + 1`
Header
DAYS=`expr $pow / 1440`
MIN=`expr $pow - $DAYS '*' 1440`
HRS=`expr $MIN / 60`
MIN=`expr $MIN - $HRS '*' 60`
printf "%-20s%5d:%02d:%02d%8s " $LASTDEV $DAYS $HRS $MIN $blk
CANDIDATE=`echo $REASON|grep WRITE`
if [ "$CANDIDATE" != "" ] ; then
echo $REASON
else
CANDIDATE=`echo $REASON|grep 'recovered via in`
if [ "$CANDIDATE" != "" ] ; then
REASON="Recovered via in-place rewrite"
fi
echo $REASON
fi
COUNT=`expr $COUNT + 1`
else
if [ "$BAD" -eq 0 ] ; then
Header
OK
fi
break
fi
done
fi
else
Header
OK
fi
fi
fi
done
rm -f $TFILE