1 # marian.ivanov@cern.ch
3 # Input - errRec.logs - text file with the list of error logs
4 # Output - abort.log - text file with the seg.faults runs
5 # - abortout.log - text file with the output of the seg.fault runs
6 # - the err.log and out.log suppose to be in the same directory
16 echo hname/C:sname/C:id0/I:id1/I:id2/I:first/D:stampSec/D:mi.fMemUsed/D:mi.fSwapUsed/D:cI.fUser/D:cI.fSys/D:pI.fMemResident/D:pI.fMemVirtual/D:pI.fCpuUser/D:pI.fCpuSys/D:stampOldSec/D:miOld.fMemUsed/D:miOld.fSwapUsed/D:cIOld.fUser/D:cIOld.fSys/D:pIOld.fMemResident/D:pIOld.fMemVirtual/D:pIOld.fCpuUser/D:pIOld.fCpuSys/D > syswatchAbort.log
17 echo hname/C:sname/C:id0/I:id1/I:id2/I:first/D:stampSec/D:mi.fMemUsed/D:mi.fSwapUsed/D:cI.fUser/D:cI.fSys/D:pI.fMemResident/D:pI.fMemVirtual/D:pI.fCpuUser/D:pI.fCpuSys/D:stampOldSec/D:miOld.fMemUsed/D:miOld.fSwapUsed/D:cIOld.fUser/D:cIOld.fSys/D:pIOld.fMemResident/D:pIOld.fMemVirtual/D:pIOld.fCpuUser/D:pIOld.fCpuSys/D > syswatchAll.log
21 for efile in `cat errRec.log` ;do
22 xxx=`cat $efile| grep segmentation`
23 xxx=$xxx`cat $efile| grep Aborted`
24 xxx=$xxx`cat $efile| grep floating`
25 sysfile=`echo $efile| sed s_err_syswatch_`
33 echo "$efile" >>abort.log
35 ofile=`echo $efile| sed s_err_out_`
36 cat $ofile >> abortout.log
37 cat $sysfile | grep -v hname\/C:sname\/C: >> syswatchAbort.log
39 cat $sysfile | grep -v hname\/C:sname\/ >> syswatchAll.log
47 touch networkProblem.log
50 for efile in `cat errRec.log` ;do
51 xxx=`cat $efile| grep tcp_connect`
56 let netNonOK=netNonOK+1
57 echo $efile >> networkProblem.log
63 echo isOK=$isOK nonOK=$nonOK
64 echo netOK=$netOK netNonOK=$netNonOK
66 # filter segmentation fault
69 for a in `cat abort.log |sed s_err_out_ ` ;do
70 cat $a | grep 0x | grep \# >> seg0.out