FAHClient reporting script for Linux

Moderators: Site Moderators, FAHC Science Team

Post Reply
ptavares
Posts: 4
Joined: Tue Mar 24, 2020 4:03 pm

FAHClient reporting script for Linux

Post by ptavares »

Greetings fellow folders:

I've created a quick and dirty script to parse my FAHClient logs generated within systemd (one huge advantage to configuring the client to run as a systemd service is that all logfile output is also stored according to your system's systemd config settings). The script is available in my newly created foldingathome_tools repo. Just git clone and go! This is a Linux-only script. If any Windows users out there want to create a similar script and submit a PR for the repo, I'm sure the community would be grateful ;)



Some example reporting usecases and outputs:

Last 24 hour period across entire machine (defaults):

Code: Select all

./fahclient_reporting.sh

Code: Select all

Tue 14 Apr 2020 10:52:24 AM CDT
Reporting on folding slot: All

		             Date Range             	 Score Credit 	 WUS 	   PPD   
		=====================================	==============	=====	=========
		 24 hours ago     -              now 	      13923 	    6 	   13923 

Folding Slot 00 between Mar 15, 2020 and Apr 1, 2020:

Code: Select all

./foldingathome_tools/fahclient_reporting.sh -s "2020-03-15" -e "2020-04-01" -f 00

Code: Select all

Tue 14 Apr 2020 10:57:36 AM CDT
Reporting on folding slot: FS00

		             Date Range             	 Score Credit 	 WUS 	   PPD   
		=====================================	==============	=====	=========
		 2020-03-15       -       2020-04-01 	      53645 	   21 	    3155 

Feedback and contributions (PRs) are most welcome!
Post Reply