============================================================= Fri 06/19/2020 12:00:08.31 - 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=24080 GetStatus_000900_DC_DiscoveryChannel_.txt [2020-06-19T11:18:45.388-07:00 2020-06-19T18:18:45.341+00:00 UTC] 000901 Detections=000024/24080 ***** EXCESSIVE DROPPED FRAMES 2545 dropped 5.23 dropped/min 000902 Detections=000044/24080 ***** EXCESSIVE DROPPED FRAMES 1225 dropped 2.52 dropped/min 000908 Detections=008544/24080 WATCH - FIX CAMERA NOISE ***** EXCESSIVE DROPPED FRAMES 4037 dropped 8.25 dropped/min 000909 Detections=000027/24080 ***** EXCESSIVE DROPPED FRAMES 1910 dropped 3.90 dropped/min 000910 Detections=000007/24080 ***** EXCESSIVE DROPPED FRAMES 2361 dropped 4.82 dropped/min 000911 Detections=000024/24080 ***** EXCESSIVE DROPPED FRAMES 2604 dropped 5.32 dropped/min 000912 Detections=000041/24080 ***** EXCESSIVE DROPPED FRAMES 2842 dropped 5.81 dropped/min 000913 Detections=015123/24080 CRITICAL - FIX CAMERA NOISE AND CHECK DISK SPACE ***** EXCESSIVE DROPPED FRAMES 5254 dropped 10.73 dropped/min 000914 Detections=000036/24080 ***** EXCESSIVE DROPPED FRAMES 3169 dropped 6.47 dropped/min 000915 Detections=000011/24080 ***** EXCESSIVE DROPPED FRAMES 3417 dropped 6.98 dropped/min 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=3109 GetStatus_000916_MH_MarsHill_.txt [2020-06-19T11:23:55.528-07:00 2020-06-19T18:23:55.481+00:00 UTC] 000931 Detections=002960/3109 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=449 GetStatus_000941_ER_Prescott.txt [2020-06-15T09:36:16.296-07:00 2020-06-15T16:36:16.233+00:00 UTC] 000955 Detections=000093/449 ***** EXCESSIVE DROPPED FRAMES 603 dropped 1.24 dropped/min OFFLINE - Not uploaded for 4 days. for /f "usebackq tokens=*" ..b in (`dir /b /a-d "E:\cams2_queue\RunFolder\GetStatus_000957_*.txt"`) do ( File: 3.001 Total Detections=297 GetStatus_000957_MC_Meteor_Crater.txt [2020-06-19T09:06:14.867-07:00 2020-06-19T16:06:14.820+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"