Ignore:
Timestamp:
03/02/14 01:20:11 (11 years ago)
Author:
Daniela Dorner
Message:
changed logging for connection problems
Location:
trunk/DataCheck/Transfer
Files:
9 edited

Legend:

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

    r17573 r17594  
    3131   if ! rsync -rltDvR --stats -T $rsynctempdir $auxdirisdc operator@coma.astro.uni-wuerzburg.de:$auxdirwue >> $logfile 2>&1
    3232   then
    33       printprocesslog "WARN problem rsyncing auxiliary data for "$date" from ISDC to Wue"
     33      printprocesslog "CONNECTION problem rsyncing auxiliary data for "$date" from ISDC to Wue"
    3434      echo `date`": problem rsyncing auxiliary data for "$date" from ISDC to Wue" >> $logfile 2>&1
    35       echo `date`": problem rsyncing auxiliary data for "$date" from ISDC to Wue"
     35      #echo `date`": problem rsyncing auxiliary data for "$date" from ISDC to Wue"
    3636   fi
    3737done
  • trunk/DataCheck/Transfer/BackupDatabase.sh

    r13305 r17594  
    8282if ! /usr/bin/rsync -avxP $path operator@coma.astro.uni-wuerzburg.de:$dbdirwue >> $logfile 2>&1
    8383then
    84    echo `date`": problem rsyncing database from LP ("$path") to Wuerzburg (coma:"$dbdirwue")"
    85    printprocesslog "WARN problem rsyncing database from LP ("$path") to Wuerzburg (coma:"$dbdirwue")"
     84   echo `date`": problem rsyncing database from LP ("$path") to Wuerzburg (coma:"$dbdirwue")" >> $logfile 2>&1
     85   printprocesslog "CONNECTION problem rsyncing database from LP ("$path") to Wuerzburg (coma:"$dbdirwue")"
    8686fi
    8787
  • trunk/DataCheck/Transfer/BackupQLA.sh

    r17575 r17594  
    3535date >> $logfile
    3636
    37 rsync -av $from $to >> $logfile 2>&1
     37if ! rsync -av $from $to >> $logfile 2>&1
     38then
     39   printprocesslog "CONNECTION problem rsyncing QLA from "$from" to "$to
     40   echo `date`": problem rsyncing QLA from "$from" to "$to >> $logfile 2>&1
     41fi
     42
    3843
    3944finish >> $logfile 2>&1
  • trunk/DataCheck/Transfer/BackupRawToWue.sh

    r17576 r17594  
    8888      0)   printprocesslog "INFO rawfile "$rawfileisdc" transferred successfully to Wue."
    8989           ;;
    90       *)   printprocesslog "WARN "$rawfileisdc" could not be transferred to Wue."
     90      *)   printprocesslog "CONNECTION "$rawfileisdc" could not be transferred to Wue."
    9191           check=$check1
    9292           ;;
     
    105105         0)   printprocesslog "INFO rawfile "$drsfileisdc" transferred successfully to Wue."
    106106              ;;
    107          *)   printprocesslog "WARN "$drsfileisdc" could not be transferred to Wue."
     107         *)   printprocesslog "CONNECTION "$drsfileisdc" could not be transferred to Wue."
    108108              check=$check1
    109109              ;;
  • trunk/DataCheck/Transfer/RsyncAuxLP.sh

    r17103 r17594  
    7575   if ! /usr/bin/rsync -avxHP -T $rsynctempdir $bwlimit $rsyncserverdir/ $dir >> $logfile 2>&1
    7676   then
    77       printprocesslog "WARN problem rsyncing auxiliary files in "$dir" from newdaq to daq"
    78       echo `date`": problem rsyncing auxiliary files in "$dir" from newdaq to daq"
     77      printprocesslog "CONNECTION problem rsyncing auxiliary files in "$dir" from newdaq to daq"
     78      echo `date`": problem rsyncing auxiliary files in "$dir" from newdaq to daq" >> $logfile 2>&1
    7979   fi
    8080
     
    8989   if ! /usr/bin/rsync -avxHP -T $rsynctempdirdata $bwlimit $dir/ $rsyncserverdirdata >> $logfile 2>&1
    9090   then
    91       printprocesslog "WARN problem rsyncing auxiliary files in "$dir" from daq to data"
    92       echo `date`": problem rsyncing auxiliary files in "$dir" from daq to data"
     91      printprocesslog "CONNECTION problem rsyncing auxiliary files in "$dir" from daq to data"
     92      echo `date`": problem rsyncing auxiliary files in "$dir" from daq to data" >> $logfile 2>&1
    9393   fi
    9494done
  • trunk/DataCheck/Transfer/RsyncAuxToISDC.sh

    r13599 r17594  
    5858   if ! rsync -rltDvR -T $rsynctempdir --stats fact@161.72.93.131:$auxdirlp $auxdirisdc >> $logfile 2>&1
    5959   then
    60       printprocesslog "WARN problem rsyncing auxiliary data for "$date" from La Palma to ISDC"
     60      printprocesslog "CONNECTION problem rsyncing auxiliary data for "$date" from La Palma to ISDC"
    6161      echo `date`": problem rsyncing auxiliary data for "$date" from La Palma to ISDC" >> $logfile 2>&1
    62       echo `date`": problem rsyncing auxiliary data for "$date" from La Palma to ISDC"
    6362   fi
    6463done
  • trunk/DataCheck/Transfer/RsyncDBToWue.sh

    r13047 r17594  
    1414if ! /usr/bin/rsync -avxP $dbdirlp operator@coma.astro.uni-wuerzburg.de:$dbdirwue >> $logfile 2>&1
    1515then
    16    echo `date`": problem rsyncing database from LP to Wuerzburg"
     16   printprocesslog "CONNECTION problem rsyncing DB from LP to Wue"
     17   echo `date`": problem rsyncing database from LP to Wuerzburg" >> $logfile 2>&1
    1718fi
    1819
  • trunk/DataCheck/Transfer/RsyncRawLP.sh

    r15435 r17594  
    33# this script has been written to run on La Palma on the machine data
    44#   i.e. paths are only working on this machine
     5
     6echo `dirname $0`" is not to be used anymore."
     7exit
    58
    69source `dirname $0`/../Sourcefile.sh
  • trunk/DataCheck/Transfer/RsyncRawToISDC.sh

    r17574 r17594  
    8585           fi
    8686           ;;
    87       *)   printprocesslog "WARN "$rawfilelp" could not be transferred to ISDC (check1="$check1")."
     87      *)   printprocesslog "CONNECTION "$rawfilelp" could not be transferred to ISDC (check1="$check1")."
    8888           check=$check1
    8989           ;;
     
    132132              fi
    133133              ;;
    134          *)   printprocesslog "WARN "$drsfilelp" could not be transferred to ISDC (check3="$check3")."
     134         *)   printprocesslog "CONNECTION "$drsfilelp" could not be transferred to ISDC (check3="$check3")."
    135135              check=$check3
    136136              ;;
Note: See TracChangeset for help on using the changeset viewer.