Page 1 of 1

How to check progress from CLI?

Posted: Mon Mar 09, 2020 8:27 pm
by sbassi
Hello,

I started folding like 3 days ago, using a headless Linux based machine and I can see that the deamon is running (using about 800% CPU according to top). But according to the stats page, it says 0 units. So I would like to know the progress, is there any place, a directory or a command I could use to check this?
Also, when I run the command, it never asked me to which project to contribute. So my question is: How do I find out? Is there a way to change this from the command line?
Best,
SB

Re: How to check progress from CLI?

Posted: Mon Mar 09, 2020 9:42 pm
by bollix47
Welcome to the folding@home community driven support forum.

There are a few ways:

Run a tail command on log.txt :

Code: Select all

tail /var/lib/fahclient/log.txt
Also, if your server is on a lan you could set up FAHControl on a desktop computer with access to the same lan. FAHControl would allow you to see the progress of the project and to make changes such as Cause Preference if needed.

I believe the default Cause is Any.

Re: How to check progress from CLI?

Posted: Mon Mar 09, 2020 9:57 pm
by bruce
Doing a tail on FAH's log can be useful. It contains a merged set of output streams from the various active FAH programs, identified with a WU number and a FAH_Slot number.

With a telnet-like application, you can connect to 127.0.0.1 (or your public IP) on port 36330. All of the commands invoked by FAHControl are passed to FAHClient that way and the output that is returned is then parsed and displayed in FAHControl's GUI. There are appropriate help commands so you can construct useful queries yourself.

Personally, I prefer to monitor FAH's work files inasmuch as new checkpoints are written periodically and I make too many typing errors when doing interactive queries.

As far as forcing specific projects, you really shouldn't force FAH to dump an active WU. Science dictates which projects are assigned and at what priority. Dumped projects are costly to FAH as somebody else still has to run that WU ... and it's getting delayed. :( I have no doubt that the COVID19 projects will soon be distributed with a high priority, but existing projects will also continue so you may find yourself working on a mixture of FAH projects.

Re: How to check progress from CLI?

Posted: Mon Mar 09, 2020 10:15 pm
by sbassi
Thank you very much!
I found useful information in this log.
For what I understand, my computer did processed some units. So I don't know why I don't see them in the ranking.
Here is my log: https://gist.github.com/raionik/33013da ... 7444402881
And here is my ranking: https://stats.foldingathome.org/team/236290

Re: How to check progress from CLI?

Posted: Mon Mar 09, 2020 10:26 pm
by bollix47
You need to add your team number to your config:

<team v='236290'/>

You should remove the following line:
22:35:59: <fold-anon v='true'/>


Also, to earn maximum points (i.e. bonus points) you need a passkey:
https://apps.foldingathome.org/getpasskey

Your ID section in your config should look somethng like:

20:55:14: <!-- User Information -->
20:55:14: <passkey v='********************************'/>
20:55:14: <team v='236290'/>
20:55:14: <user v='Toyoko'/>

Re: How to check progress from CLI?

Posted: Mon Mar 09, 2020 10:43 pm
by sbassi
Thank you. i see now what was going on. I had the right config.xml file in my home folder, but the client was reading the config.xml in from /etc/fahclient/config.xml, so I stopped the client, cp the file from the home to that location, restarted, and according to the log, it is taking the team information. So I believe it will start counting it toward my team now. Thank you again.