Changeset 17618
- Timestamp:
- 03/17/14 12:40:04 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Transfer/CheckTransfer.sh
r17616 r17618 7 7 printprocesslog "INFO starting $0" 8 8 9 #numchecktransfer=`/usr/sbin/lsof $0 | grep -o -c $0` 10 #if [ $numchecktransfer -gt 1 ] 11 #then 12 # printprocesslog "INFO "$0" already running -> exit. " 13 # echo "INFO "$0" already running -> exit. " 14 # finish 15 #fi 16 9 numchecktransfer=`/usr/sbin/lsof $0 | grep -o -c $0` 10 if [ $numchecktransfer -gt 1 ] 11 then 12 printprocesslog "INFO "$0" already running -> exit. " 13 echo "INFO "$0" already running -> exit. " 14 finish 15 fi 17 16 18 17 logfile2=$logpath"/transfer/CheckTransfer.log" … … 23 22 if [ ${diskusage[3]} -lt 700000 ] 24 23 then 25 printprocesslog "DISK less than 700 GB left on /daq "26 echo "WARN less than 700 GB left on /daq "27 echo "WARN less than 700 GB left on /daq " >> $logfile2 2>&124 printprocesslog "DISK less than 700 GB left on /daq ("${diskusage[3]}")" 25 echo "WARN less than 700 GB left on /daq ("${diskusage[3]}")" 26 echo "WARN less than 700 GB left on /daq ("${diskusage[3]}")" >> $logfile2 2>&1 28 27 sendemail="yes" 29 28 fi … … 33 32 if [ ${diskusage2[3]} -lt 500000 ] 34 33 then 35 printprocesslog "DISK less than 500 GB left on /scratch "36 echo "WARN less than 500 GB left on /scratch " 37 echo "WARN less than 500 GB left on /scratch " >> $logfile2 2>&134 printprocesslog "DISK less than 500 GB left on /scratch ("${diskusage2[3]}")" 35 echo "WARN less than 500 GB left on /scratch "${diskusage2[3]}")" 36 echo "WARN less than 500 GB left on /scratch "${diskusage2[3]}")" >> $logfile2 2>&1 38 37 sendemail="yes" 39 38 fi … … 83 82 check_runs_in_db "RawFileAvailISDCStatus" 84 83 85 86 84 # get nights from directory in LP 87 85 dates=( `ssh fact@161.72.93.131 "find /loc_data/zipraw -mindepth 3 -type d | sort | sed -e 's/\/loc_data\/zipraw\///g' "` ) … … 94 92 do 95 93 logfile=$logpath"/transfer/CheckTransfer_"`echo $date | sed -e 's/\//-/g'`".log" 94 if grep "EVERYTHING" $logfile >/dev/null 95 then 96 echo $date" has been checked already and is fine." 97 echo $date" has been checked already and is fine." >> $logfile2 2>&1 98 continue 99 fi 96 100 #echo "" 97 101 #echo "" … … 100 104 #echo "" >> $logfile 2>&1 101 105 #echo "" >> $logfile 2>&1 102 echo $date > $logfile 2>&1 103 echo $date >> $logfile2 2>&1 106 echo "Processing "$date" ..." 107 echo "Processing "$date" ..." > $logfile 2>&1 108 echo "Processing "$date" ..." >> $logfile2 2>&1 104 109 if [ "$certaindate" != "" ] 105 110 then … … 113 118 then 114 119 printprocesslog "INFO continue, as certaindate has been set to "$certaindate 120 echo " continue, as certaindate has been set to "$certaindate 115 121 continue 116 122 fi … … 350 356 echo " number of files does not yet agree in all sites: "${newdaq[0]}" (newdaq) "${daq[0]}" (daq) "${zip[0]}" (data) "${dl00[0]}" (dl) "${wue[0]}" (wue) "${archive[0]}" (arch) "${fails[0]}" (fails) "${qla[@]}" (qla) "$numdatruns" (datruns) " 351 357 echo " "$date" is not yet transfered completely. For more details, please check the logfile "$logfile 352 echo "" >> $logfile 2>&1358 echo "" 353 359 echo "SUMMARY for "$date >> $logfile 2>&1 354 360 echo "-----------------------" >> $logfile 2>&1 355 361 echo " number of files does not yet agree in all sites: "${newdaq[0]}" (newdaq) "${daq[0]}" (daq) "${zip[0]}" (data) "${dl00[0]}" (dl) "${wue[0]}" (wue) "${archive[0]}" (arch) "${fails[0]}" (fails) "${qla[@]}" (qla) "$numdatruns" (datruns) " >> $logfile 2>&1 356 362 echo " "$date" is not yet transfered completely. For more details, please check the logfile "$logfile >> $logfile 2>&1 357 echo "" >> $logfile 22>&1363 echo "" >> $logfile 2>&1 358 364 echo "SUMMARY for "$date >> $logfile2 2>&1 359 365 echo "-----------------------" >> $logfile2 2>&1 360 366 echo " number of files does not yet agree in all sites: "${newdaq[0]}" (newdaq) "${daq[0]}" (daq) "${zip[0]}" (data) "${dl00[0]}" (dl) "${wue[0]}" (wue) "${archive[0]}" (arch) "${fails[0]}" (fails) "${qla[@]}" (qla) "$numdatruns" (datruns) " >> $logfile2 2>&1 361 367 echo " "$date" is not yet transfered completely. For more details, please check the logfile "$logfile >> $logfile2 2>&1 368 echo "" >> $logfile2 2>&1 362 369 #echo "number of files does not yet agree in all sites ("$result1") -> do no further checking. " 363 370 #echo "disk: " … … 842 849 fi 843 850 844 echo ""845 851 echo "SUMMARY for "$date 846 852 echo "-----------------------" 847 echo "" >> $logfile 2>&1848 853 echo "SUMMARY for "$date >> $logfile 2>&1 849 854 echo "-----------------------" >> $logfile 2>&1 850 echo "" >> $logfile2 2>&1851 855 echo "SUMMARY for "$date >> $logfile2 2>&1 852 856 echo "-----------------------" >> $logfile2 2>&1 … … 917 921 echo "WARN not all data runs are processed yet by the QLA. " >> $logfile2 2>&1 918 922 fi 923 echo "" 924 echo "" >> $logfile 2>&1 925 echo "" >> $logfile2 2>&1 919 926 done 920 927
Note:
See TracChangeset
for help on using the changeset viewer.