Changeset 9128 for trunk/MagicSoft/Mars/datacenter/scripts/dbchk
- Timestamp:
- 08/21/08 18:27:34 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/dbchk
r9100 r9128 50 50 51 51 getdbsetup 52 alias mymysql='mysql -s -u $us --password=$pw --host=vela $db' 53 54 # check for crashed runs, sequences and datasets 52 alias mymysql='mysql -s -u $us --password=$pw --host=$ho $db' 53 54 # check for crashed nights, runs, sequences and datasets 55 echo "Checking if something is crashed on nightly basis" >> $scriptlog 2>&1 56 nights=`echo "SELECT fDate FROM SequenceBuildStatus WHERE isnull(fFailedTime) and not isnull(fStartTime) and adddate(fStartTime, Interval 12 HOUR) < Now()" | mymysql` 57 if [ ! "$nights" = "" ] 58 then 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 61 else 62 echo " Nothing found." >> $scriptlog 2>&1 63 fi 64 55 65 echo "Checking if something is crashed on run basis" >> $scriptlog 2>&1 56 66 cruns=`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.