Ignore:
Timestamp:
08/21/08 18:27:34 (16 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/dbchk

    r9100 r9128  
    5050
    5151getdbsetup
    52 alias mymysql='mysql -s -u $us --password=$pw --host=vela $db'
    53 
    54 # check for crashed runs, sequences and datasets
     52alias mymysql='mysql -s -u $us --password=$pw --host=$ho $db'
     53
     54# check for crashed nights, runs, sequences and datasets
     55echo "Checking if something is crashed on nightly basis" >> $scriptlog 2>&1
     56nights=`echo "SELECT fDate FROM SequenceBuildStatus WHERE isnull(fFailedTime) and not isnull(fStartTime) and adddate(fStartTime, Interval 12 HOUR) < Now()" | mymysql`
     57if [ ! "$nights" = "" ]
     58then
     59   printprocesslog "WARN For the following nights something seems to be crashed. Please check manually: $nights"
     60   echo "WARN For the following nights something  seems to be crashed. Please check manually: $nights" >> $scriptlog 2>&1
     61else
     62   echo " Nothing found." >> $scriptlog 2>&1
     63fi
     64
    5565echo "Checking if something is crashed on run basis" >> $scriptlog 2>&1
    5666cruns=`echo "SELECT fRunNumber FROM RunProcessStatus WHERE isnull(fFailedTime) and not isnull(fStartTime) and adddate(fStartTime, Interval 12 HOUR) < Now()" | mymysql`
Note: See TracChangeset for help on using the changeset viewer.