============================================================= Wed 12/23/2020 12:00:05.10 - 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 ( 2020_12_22_000900_00_57_37 000903 "ERROR: NO VIDEO SIGNAL 2020_12_22_000900_00_57_37" Station: ######### CAMS STATUS FOR STATION: "000900_DC_DiscoveryChannel_" ######################### File: 3.001 Total Detections=767 GetStatus_000900_DC_DiscoveryChannel_.txt [2020-12-23T10:11:35.179-07:00 2020-12-23T17:11:35.148+00:00 UTC] 000903 "ERROR: NO VIDEO SIGNAL 2020_12_22_000900_00_57_37" 000906 Detections=000051/767 ***** EXCESSIVE DROPPED FRAMES 870 dropped 1.13 dropped/min 000907 Detections=000040/767 ***** EXCESSIVE DROPPED FRAMES 799 dropped 1.03 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=5856 GetStatus_000916_MH_MarsHill_.txt [2020-12-23T09:12:47.314-07:00 2020-12-23T16:12:47.282+00:00 UTC] 000931 Detections=005473/5856 WATCH - FIX 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=12325 GetStatus_000941_ER_Prescott.txt [2020-12-23T09:47:22.796-07:00 2020-12-23T16:47:22.733+00:00 UTC] 000944 Detections=003862/12325 WARNING - CHECK CAMERA NOISE 000945 Detections=007683/12325 WATCH - FIX CAMERA NOISE 000949 Detections=000018/12325 ***** EXCESSIVE DROPPED FRAMES 146768 dropped 190.27 dropped/min 000950 Detections=000004/12325 ***** EXCESSIVE DROPPED FRAMES 789 dropped 1.02 dropped/min 000952 Detections=000492/12325 ***** EXCESSIVE DROPPED FRAMES 802 dropped 1.04 dropped/min 000953 Detections=000014/12325 ***** EXCESSIVE DROPPED FRAMES 797 dropped 1.03 dropped/min 000955 Detections=000061/12325 ***** EXCESSIVE DROPPED FRAMES 1224 dropped 1.59 dropped/min 000956 Detections=000011/12325 ***** EXCESSIVE DROPPED FRAMES 840 dropped 1.09 dropped/min for /f "usebackq tokens=*" ..b in (`dir /b /a-d "E:\cams2_queue\RunFolder\GetStatus_000957_*.txt"`) do ( File: 3.001 Total Detections=448 GetStatus_000957_MC_Meteor_Crater.txt [2020-12-23T10:42:03.915-07:00 2020-12-23T17:42:03.884+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"