============================================================= Sun 05/24/2020 12:00:08.28 - 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=10174 GetStatus_000900_DC_DiscoveryChannel_.txt [2020-05-24T11:18:31.078-07:00 2020-05-24T18:18:31.046+00:00 UTC] 000902 Detections=000016/10174 ***** EXCESSIVE DROPPED FRAMES 1581 dropped 3.11 dropped/min 000908 Detections=004857/10174 WARNING - CHECK CAMERA NOISE 000913 Detections=005045/10174 WATCH - FIX CAMERA NOISE 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=2707 GetStatus_000916_MH_MarsHill_.txt [2020-05-24T11:23:57.711-07:00 2020-05-24T18:23:57.664+00:00 UTC] 000931 Detections=002569/2707 WARNING - CHECK CAMERA NOISE for /f "usebackq tokens=*" ..b in (`dir /b /a-d "E:\cams2_queue\RunFolder\GetStatus_000941_*.txt"`) do ( Station: ######### CAMS STATUS FOR STATION: "000941_ER_Prescott" ################################## File: 3.001 Total Detections=1341 GetStatus_000941_ER_Prescott.txt [2020-05-24T09:36:01.274-07:00 2020-05-24T16:36:01.227+00:00 UTC] 000951 Detections=000001/1341 ***** EXCESSIVE DROPPED FRAMES 4931 dropped 9.70 dropped/min 000952 Detections=001218/1341 WARNING - CHECK CAMERA NOISE for /f "usebackq tokens=*" ..b in (`dir /b /a-d "E:\cams2_queue\RunFolder\GetStatus_000957_*.txt"`) do ( Station: ######### CAMS STATUS FOR STATION: "000957_MC_Meteor_Crater" ############################# File: 3.001 Total Detections=171 GetStatus_000957_MC_Meteor_Crater.txt [2020-05-24T08:32:09.581-07:00 2020-05-24T15:32:09.535+00:00 UTC] 000957 Detections=000001/171 ***** EXCESSIVE DROPPED FRAMES 2922 dropped 5.78 dropped/min 000958 Detections=000010/171 ***** EXCESSIVE DROPPED FRAMES 2329 dropped 4.60 dropped/min 000959 Detections=000013/171 ***** EXCESSIVE DROPPED FRAMES 2551 dropped 5.04 dropped/min 000960 Detections=000008/171 ***** EXCESSIVE DROPPED FRAMES 2736 dropped 5.41 dropped/min 000961 Detections=000010/171 ***** EXCESSIVE DROPPED FRAMES 2361 dropped 4.67 dropped/min 000962 Detections=000008/171 ***** EXCESSIVE DROPPED FRAMES 2903 dropped 5.74 dropped/min 000963 Detections=000018/171 ***** EXCESSIVE DROPPED FRAMES 2901 dropped 5.74 dropped/min 000964 Detections=000010/171 ***** EXCESSIVE DROPPED FRAMES 2915 dropped 5.76 dropped/min 000972 Detections=000018/171 ***** EXCESSIVE DROPPED FRAMES 2490 dropped 4.89 dropped/min ) [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"