Thread 'use BOINC command line to communicate on login/out'

Message boards : BOINC Manager : use BOINC command line to communicate on login/out
Message board moderation

To post messages, you must log in.

AuthorMessage
rearden

Send message
Joined: 24 Apr 08
Posts: 4
Message 22911 - Posted: 5 Feb 2009, 23:07:11 UTC

I have quite a number of machines on my team, but a large number of them are not connected to the internet all the time and when they are the window is short. The way the retry system works means that for my setup I often do not get results reported in time, because the probability that boinc will attempt a connection while the window is open is low. I also use BAM and participate in quite a number of projects.

Is there a way I can force/request communication with BOINC, upload results and communicate with the project servers upon command? I looked at the command line arguments and it seems like it may be possible, but I would have to specify each project and it would not be dynamic. I would like a simple command which would "--project all update" which I could queue to run at a specific time or event. Any suggestions?
ID: 22911 · Report as offensive
ProfileKSMarksPsych
Avatar

Send message
Joined: 30 Oct 05
Posts: 1239
United States
Message 22912 - Posted: 5 Feb 2009, 23:35:29 UTC

Use boinccmd and write a script or a batch file to do what you want. Use cron or the Windows task scheduler to run it whenever you want (pick the option that goes with your OS).
Kathryn :o)
ID: 22912 · Report as offensive
ProfileGundolf Jahn

Send message
Joined: 20 Dec 07
Posts: 1069
Germany
Message 22914 - Posted: 6 Feb 2009, 2:24:08 UTC - in response to Message 22911.  
Last modified: 6 Feb 2009, 2:24:44 UTC

]...Is there a way I can force/request communication with BOINC, upload results and communicate with the project servers upon command? I looked at the command line arguments and it seems like it may be possible, but I would have to specify each project and it would not be dynamic. I would like a simple command which would "--project all update" which I could queue to run at a specific time or event. Any suggestions?
[/quote]
What about
[pre]--set_network_mode mode duration set network mode for given duration
mode = always | auto | never[/pre]Or else, are the connection windows on a fixed schedule? If yes, you could use the preferences for a once per day window or the local preferences (BOINC Manager Advanced/Preferences... network usage tab) to establish a slightly advanced schedule for BOINC network access.

Gruß,
Gundolf
Computer sind nicht alles im Leben. (Kleiner Scherz)
ID: 22914 · Report as offensive
rearden

Send message
Joined: 24 Apr 08
Posts: 4
Message 23020 - Posted: 10 Feb 2009, 19:20:02 UTC
Last modified: 10 Feb 2009, 19:22:22 UTC

I worked on a batch file (BTW --acct_mgr_rpc doesn't work despite what the man pages say, --join_acct_mgr now takes its place). I now have a script which will contact each specifically listed project and the project manager upon command. Unfortunately I had to hardcode each project instead of a wildcard giving me all projects which the computer is currently attached to.

Now the problem is that I additionally need to force a file transfer. The command exists to do so, but you have to be explicit with the file names, which once again forces hardcoding. I looked at what appears to be the results files in each of the directories and I did not see a common extension or something which I could use to identify what files need to be transferred, if any.
Anyone have any pointers on identifying the files which need to be transfered?

I could shut off all network activity and then open it up, hoping that boinc would then quickly do all the network activity it needs during a short window, but I do not want to limit it to traffic only when I force it, but I do want to be able to flush it upon command.

Anyone know what the difference between network "auto" and "always" is?
ID: 23020 · Report as offensive
ProfileGundolf Jahn

Send message
Joined: 20 Dec 07
Posts: 1069
Germany
Message 23021 - Posted: 10 Feb 2009, 19:36:27 UTC - in response to Message 23020.  

Anyone know what the difference between network "auto" and "always" is?

"Always" is always and "auto" is according to schedule set in preferences (same as "Network activity based on preferences" from BOINC manager Activity menu).

Gruß,
Gundolf
Computer sind nicht alles im Leben. (Kleiner Scherz)
ID: 23021 · Report as offensive

Message boards : BOINC Manager : use BOINC command line to communicate on login/out

Copyright © 2026 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.