Commit 52cb6d2e authored by Bjoern Nachtwey's avatar Bjoern Nachtwey
Browse files

fixed ANR4005E counting, counting total error number

parent a61f8acc
......@@ -5,10 +5,12 @@ for i in $(ls *.all.log)
do
total=$(printf " %10d " $(grep 'CMD: >>"/usr/bin/dsmc" i "/mnt/oc_stor_userdata' $i | wc -l))
trans=$(printf " %10d " $(grep "Total number of bytes transferred" $i | grep -v "0 B" | wc -l))
e4005=$(printf " %10d " $(grep ANR4005E"" $i | grep -v "0 B" | wc -l))
e4005=$(printf " %10d " $(grep "ANR4005E" $i | wc -l))
error=$(printf " %10d " $(grep "AN[E,R,S][0..9]*[E,S]" $i | wc -l))
ratio=$(printf "%4.2lf %%" $(echo "$trans / $total * 100" | bc -l))
echo $i ": Total folders processed :" $total
echo $i ": Folders with Data stored:" $trans
echo $i ": ratio :" $ratio
echo $i ": ANR4005E Errors :" $e4005
echo $i ": Errors at all :" $error
done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment