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
14 rm -f syswatchAbort.log
18 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
19 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
23 for efile in `cat errRec.log` ;do
24 xxx=`cat $efile| grep segmentation`
25 xxx=$xxx`cat $efile| grep Aborted`
26 xxx=$xxx`cat $efile| grep floating`
27 sysfile=`echo $efile| sed s_err_syswatch_`
35 echo "$efile" >>abort.log
37 ofile=`echo $efile| sed s_err_out_`
38 cat $efile >> abortout.log
39 cat $ofile >> abortout.log
40 #cat $sysfile | grep -v hname\/C:sname\/C: >> syswatchAbort.log
42 #cat $sysfile | grep -v hname\/C:sname\/ >> syswatchAll.log
49 touch networkProblem.log
52 for efile in `cat errRec.log` ;do
53 xxx=`cat $efile| grep tcp_connect`
58 let netNonOK=netNonOK+1
59 echo $efile >> networkProblem.log
67 for efile in `cat errRec.log` ;do
68 xxx=`cat $efile| grep tcp_connect`
69 xxx=$xxx`cat $efile| grep Stale\ NFS\ file\ handle`
74 let nfsNonOK=nfsNonOK+1
75 echo $efile >> nfsworkProblem.log
82 echo isOK=$isOK nonOK=$nonOK
83 echo netOK=$netOK netNonOK=$netNonOK
84 echo nfsOK=$nfsOK netNonOK=$nfsNonOK
86 # filter segmentation fault
89 for a in `cat abort.log |sed s_err_out_ ` ;do
90 cat $a | grep 0x | grep \# >> seg0.out
93 for a in `cat abort.log ` ;do
94 cat $a | grep 0x | grep \# >> seg0.out