============================================================= Sun 05/31/2020 12:00:08.43 - Version: 3.000 - E:\cams2_queue\RunFolder\status_check.bat [".. emp\status" "status_check_LOCAMS.txt"] [status_check.bat:SETUP ".. emp\status" "status_check_LOCAMS.txt"] Please wait... ******* Detecting noisy cameras ************* [CALL status_check.bat:LOOP_LISTFILE] "E:\cams2_queue\RunFolder\status_check_LOCAMS.txt" for /f "usebackq tokens=*" ..a in (`findstr /i "getstatus_" "E:\cams2_queue\RunFolder\status_check_LOCAMS.txt"`) do ( Now download/caching ALL "GetStatus_000900_*.txt" files to "E:\cams2_queue\RunFolder". Now download/caching ALL "GetStatus_000916_*.txt" files to "E:\cams2_queue\RunFolder". Now download/caching ALL "GetStatus_000941_*.txt" files to "E:\cams2_queue\RunFolder". Now download/caching ALL "GetStatus_000957_*.txt" files to "E:\cams2_queue\RunFolder". ) for /f "usebackq tokens=*" ..a in [`findstr /i "getstatus_" "E:\cams2_queue\RunFolder\status_check_LOCAMS.txt"`] do [ for /f "usebackq tokens=*" ..b in (`dir /b /a-d "E:\cams2_queue\RunFolder\GetStatus_000900_*.txt"`) do ( Station: ######### CAMS STATUS FOR STATION: "000900_DC_DiscoveryChannel_" ######################### File: 3.001 Total Detections=1773 GetStatus_000900_DC_DiscoveryChannel_.txt [2020-05-31T11:18:10.572-07:00 2020-05-31T18:18:10.525+00:00 UTC] 000902 Detections=000021/1773 ***** EXCESSIVE DROPPED FRAMES 2559 dropped 5.13 dropped/min 2020_05_31_000908_03_12_11 000909 000000 24.5 x 32.4 3.007 (arcmin/pix) "CAL file in detect file [] not found in: "E:\Cams_Board1\CAMS\SubmissionFiles\2020_05_31_000908_03_12_11\FTP"" 000909 "CAL file in detect file [] not found in: "E:\Cams_Board1\CAMS\SubmissionFiles\2020_05_31_000908_03_12_11\FTP"" 2020_05_31_000908_03_12_11 000910 000000 24.5 x 32.4 3.007 (arcmin/pix) "CAL file in detect file [] not found in: "E:\Cams_Board1\CAMS\SubmissionFiles\2020_05_31_000908_03_12_11\FTP"" 000910 "CAL file in detect file [] not found in: "E:\Cams_Board1\CAMS\SubmissionFiles\2020_05_31_000908_03_12_11\FTP"" for /f "usebackq tokens=*" ..b in (`dir /b /a-d "E:\cams2_queue\RunFolder\GetStatus_000916_*.txt"`) do ( Station: ######### CAMS STATUS FOR STATION: "000916_MH_MarsHill_" ################################# File: 3.001 Total Detections=5699 GetStatus_000916_MH_MarsHill_.txt [2020-05-31T11:23:12.657-07:00 2020-05-31T18:23:12.610+00:00 UTC] 000916 Detections=000004/5699 ***** EXCESSIVE DROPPED FRAMES 853 dropped 1.72 dropped/min 000917 Detections=000024/5699 ***** EXCESSIVE DROPPED FRAMES 775 dropped 1.56 dropped/min 000918 Detections=000011/5699 ***** EXCESSIVE DROPPED FRAMES 955 dropped 1.93 dropped/min 000919 Detections=000005/5699 ***** EXCESSIVE DROPPED FRAMES 1099 dropped 2.22 dropped/min 000920 Detections=000005/5699 ***** EXCESSIVE DROPPED FRAMES 1154 dropped 2.33 dropped/min 000921 Detections=000070/5699 ***** EXCESSIVE DROPPED FRAMES 3731 dropped 7.53 dropped/min 000922 Detections=000216/5699 ***** EXCESSIVE DROPPED FRAMES 1449 dropped 2.92 dropped/min 000923 Detections=000004/5699 ***** EXCESSIVE DROPPED FRAMES 1387 dropped 2.80 dropped/min 000931 Detections=005322/5699 WATCH - FIX CAMERA NOISE for /f "usebackq tokens=*" ..b in (`dir /b /a-d "E:\cams2_queue\RunFolder\GetStatus_000941_*.txt"`) do ( File: 3.001 Total Detections=73 GetStatus_000941_ER_Prescott.txt [2020-05-31T09:36:12.947-07:00 2020-05-31T16:36:12.900+00:00 UTC] for /f "usebackq tokens=*" ..b in (`dir /b /a-d "E:\cams2_queue\RunFolder\GetStatus_000957_*.txt"`) do ( File: 3.001 Total Detections=23 GetStatus_000957_MC_Meteor_Crater.txt [2020-05-31T09:12:46.853-07:00 2020-05-31T16:12:46.806+00:00 UTC] ) [RETURN status_check.bat:LOOP_LISTFILE] [bat_returncode=0] This script examines all the GetStatus report files in the specified directory and reports on anomolies such as: 1. Cameras with excessive detections [indicates noisy camera/s] 2. Cameras with excessive dropped frames 3. Stations with dangerously low disk space 4. Stations that haven't reported in lately 5. Stations with GetStatus reports that haven't been uploaded in 3 or more days. The detections and dropped frames are determined by reading the GetStatus report and examining each camera in the most recent SubmissionFiles session for that CAMS instance. [status_check.bat:DONE] [0] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ If there are issues reported, examine the GetStatus files that have been downloaded for you in the "E:\cams2_queue\RunFolder" directory. "E:\cams2_queue\RunFolder\status_check_to_html.bat" "E:\cams2_queue\RunFolder" "e:\cams2_queue\status_LOCAMS.html" [status_check_to_html.bat:DONE] [0] ["E:\cams2_queue\RunFolder" "e:\cams2_queue\status_LOCAMS.html"] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The resulting file is: "e:\cams2_queue\status_LOCAMS.html" start "" "e:\cams2_queue\status_LOCAMS.html"