2 REM Check for zombie jobs (not terminated).
3 REM Also scan logs for ERROR messages
5 sed -e "s;@storage@;%1=%2;" scripts\check_for_zombie_jobs.bscr >tmp\bconcmds
6 CALL scripts\functions run_bconsole
7 grep "No Jobs running." tmp\dir.out >nul 2>&1
8 IF %ERRORLEVEL% NEQ 0 (
10 ECHO !!!! Zombie Jobs in Director !!!!
11 ECHO !!!! Zombie Jobs in Director !!!! >>test.out
14 grep "No Jobs running." tmp\fd.out >nul 2>&1
15 IF %ERRORLEVEL% NEQ 0 (
17 ECHO !!!! Zombie Jobs in File daemon !!!!
18 ECHO !!!! Zombie Jobs in File daemon !!!! >>test.out
21 grep "No Jobs running." tmp\sd.out >nul 2>&1
22 IF %ERRORLEVEL% NEQ 0 (
24 ECHO !!!! Zombie Jobs in Storage daemon !!!!
25 ECHO !!!! Zombie Jobs in Storage daemon !!!! >>test.out
28 grep "ERROR" tmp/log*.out >nul 2>&1
29 IF %ERRORLEVEL% EQU 0 (
31 ECHO !!!! ERROR in log output !!!!
32 ECHO !!!! ERROR in log output !!!! >>test.out
35 grep "Fatal Error" tmp\log*.out >nul 2>&1
36 IF %ERRORLEVEL% EQU 0 (
38 ECHO !!!! Fatal Error in log output !!!!
39 ECHO !!!! Fatal Error in log output !!!! >>test.out