Changeset 18851


Ignore:
Timestamp:
05/14/17 02:29:35 (8 years ago)
Author:
Daniela Dorner
Message:
adapted as discussed in telcon (implemented warning if files in fails-folder)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Transfer/CheckTransfer.sh

    r18807 r18851  
    934934      if [ "$result1" = "0-0000" ] && [ "$result3" = "0010" ] && [ "$result4" = "0000" ] && [ ${archive[0]} -eq $numisdc ]
    935935      then
    936          echo "  "${fails[0]}" file(s) corrupt (fails folder), but files are transfered correctly. "
    937          echo "  "${fails[0]}" file(s) corrupt (fails folder), but files are transfered correctly. " >> $logfile 2>&1
    938          echo "  "${fails[0]}" file(s) corrupt (fails folder), but files are transfered correctly. " >> $logfile2 2>&1
    939          echo "  TRANSFER is ok. "$date" can be deleted. "
     936         echo "  "${fails[0]}" file(s) corrupt (fails folder) - please check if files are transfered correctly! "
     937         echo "  "${fails[0]}" file(s) corrupt (fails folder) - please check if files are transfered correctly! " >> $logfile 2>&1
     938         echo "  "${fails[0]}" file(s) corrupt (fails folder) - please check if files are transfered correctly! " >> $logfile2 2>&1
     939         echo "  TRANSFER to be checked. "$date" can be deleted only if files in fails folder are fine. "
    940940         echo "" >> $logfile 2>&1
    941          echo "  TRANSFER is ok. "$date" can be deleted. " >> $logfile 2>&1
    942          echo "  TRANSFER is ok. "$date" can be deleted. " >> $logfile2 2>&1
     941         echo "  TRANSFER to be checked. "$date" can be deleted only if files in fails folder are fine. " >> $logfile 2>&1
     942         echo "  TRANSFER to be checked.. "$date" can be deleted only if files in fails folder are fine. " >> $logfile2 2>&1
    943943         echo "    Details in the logfile "$logfile
    944944         echo "" >> $logfile 2>&1
     
    987987   if [ ${fails[0]} -gt 0 ] || [ $numisdc -ne $numisdc2 ]
    988988   then
    989       echo "  INFO there is "${fails[0]}" file in the fails folder. Please check. "
    990       echo "  INFO there is "${fails[0]}" file in the fails folder. Please check. " >> $logfile 2>&1
    991       echo "  INFO there is "${fails[0]}" file in the fails folder. Please check. " >> $logfile2 2>&1
     989      numdiff=`echo " $numisdc2 - $numisdc " | bc`
     990      echo "  WARN there is files marked as failed (fails folder: "${fails[0]}", DB: "$numdiff"). Please check. "
     991      echo "  WARN there is files marked as failed (fails folder: "${fails[0]}", DB: "$numdiff"). Please check. " >> $logfile 2>&1
     992      echo "  WARN there is files marked as failed (fails folder: "${fails[0]}", DB: "$numdiff"). Please check. " >> $logfile2 2>&1
    992993   fi
    993994   echo ""
     
    9991000if [ "$sendemail" = "yes" ]
    10001001then
     1002   echo "" >> $logfile2 2>&1
     1003   echo " REMARK: If you took some action to fix a problem and want that a day in checked again, " >> $logfile2 2>&1
     1004   echo "         please move the logfile to "`dirname $logfile`"CheckTransfer_YYYY-MM-DD.log.cp " >> $logfile2 2>&1
     1005   echo "         (or *.cp2 if the first does already exist ...) " >> $logfile2 2>&1
     1006   echo "         Then restart "$0 >> $logfile2 2>&1
     1007   echo "" >> $logfile2 2>&1
     1008
    10011009   echo ""
    10021010   echo "INFO send email with "$logfile2" to shift@fact-project.org "
    10031011   printprocesslog "INFO send email with "$logfile2" to shift@fact-project.org "
    1004    cat $logfile2 | mail -s "testmail for info on deleting data" shift@fact-project.org
     1012   cat $logfile2 | mail -s "Info for Deleting Data" shift@fact-project.org
    10051013fi
    10061014
Note: See TracChangeset for help on using the changeset viewer.