Index  | Recent Threads  | Unanswered Threads  | Who's Active  | Guidelines  | Search
 

Quick Go »
No member browsing this thread
Thread Status: Active
Total posts in this thread: 4
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 1107 times and has 3 replies Next Thread
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Using boinccmd tool

I looked through the FAQs and didn't see a section for this... I have a remote machine about 50 miles (80km) away that I usually visit only once or twice a month. It runs CentOS 6.3 and BOINC 6.10.something (whatever is in the elpo repo).

I have SSH setup, but I currently don't have enough bandwidth where I'm located to VNC into it (even the SSH connection is pretty jerky from here), so I've been learning/using boinccmd.

Anyway, I SSH into the remote machine and run
BOINCPWD=MyPwdForBOINC

So then the command
boinccmd --host $HOSTNAME --passwd $BOINCPWD --get_results
gives output like

1) -----------
name: cfsw_14666_14666108_0
WU name: cfsw_14666_14666108
project URL: http://www.worldcommunitygrid.org/
report deadline: Sun Sep 9 05:57:00 2012
ready to report: no
got server ack: no
final CPU time: 0.000000
state: 2
scheduler state: 0
exit_status: 0
signal: 0
suspended via GUI: no
active_task_state: 0
stderr_out:
app version num: 0
checkpoint CPU time: 0.000000
current CPU time: 0.000000
fraction done: 0.000000
swap size: 0.000000
working set size: 0.000000
estimated CPU time remaining: 2289.210667
supports graphics: no
2) -----------
name: cfsw_14666_14666075_0
WU name: cfsw_14666_14666075
project URL: http://www.worldcommunitygrid.org/
report deadline: Sun Sep 9 05:57:00 2012
ready to report: no
got server ack: no
final CPU time: 0.000000
state: 2
scheduler state: 0
exit_status: 0
signal: 0
suspended via GUI: no
active_task_state: 0
stderr_out:
app version num: 0
checkpoint CPU time: 0.000000
current CPU time: 0.000000
fraction done: 0.000000
swap size: 0.000000
working set size: 0.000000
estimated CPU time remaining: 2289.210667
supports graphics: no

et cetera

According to --help, the syntax for working with results is
--result url result_name op job operation
op = suspend | resume | abort | graphics_window | graphics_fullscreen

But which 'result_name' is it talking about?
because running
boinccmd --host $HOSTNAME --passwd $BOINCPWD --result www.worldcommunitygrid.org cfsw_14666_14666108_0 abort
and
boinccmd --host $HOSTNAME --passwd $BOINCPWD --result www.worldcommunitygrid.org cfsw_14666_14666108 abort
(using the 2 variations of 'name' shown in result #1 above)
are both accepted without error, but as far as I can tell neither actually aborts the work unit...
at least, nothing changes in the output from
boinccmd --host $HOSTNAME --passwd $BOINCPWD --get_results

So, what's the proper syntax to abort a work unit from the CLI?

Thanks!
[Sep 3, 2012 2:41:12 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: Using boinccmd tool

You looked through the FAQs... okay, item 1-E, "Command line tool operations". I'll add "with boinccmd" as keyword for those focused on the one word :D

Edit: would not be surprised if you need to prefix with sudo under Linux.
----------------------------------------
[Edit 1 times, last edit by Former Member at Sep 3, 2012 3:03:05 PM]
[Sep 3, 2012 2:59:50 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: Using boinccmd tool

You looked through the FAQs... okay, item 1-E, "Command line tool operations". I'll add "with boinccmd" as keyword for those focused on the one word :D

Edit: would not be surprised if you need to prefix with sudo under Linux.


I guess formerly it was named boinc-cmd... not sure when the name changed.

I'm SSH'd in as 'root' so I'm certain no sudo is requred.

The FAQ (which links to the BOINC wiki) doesn't really answer my question, but carefully comparing
# boinccmd --help
with what is shown there does reveal a difference...
do you see it?

# boinccmd --help
usage: boinccmd [--host hostname] [--passwd passwd] command

Commands:
--lookup_account URL email passwd
--create_account URL email passwd name
--project_attach URL auth attach to project
--join_acct_mgr URL name passwd attach account manager
--quit_acct_mgr quit current account manager
--get_state show entire state
--get_results show results
--get_simple_gui_info show status of projects and active results
--get_file_transfers show file transfers
--get_project_status show status of all attached projects
--get_disk_usage show disk usage
--get_proxy_settings
--get_messages [ seqno ] show messages > seqno
--get_message_count show largest message seqno
--get_host_info
--version, -V show core client version
--result url result_name op job operation
op = suspend | resume | abort | graphics_window | graphics_fullscreen
--project URL op project operation
op = reset | detach | update | suspend | resume | nomorework | allowmorework
--file_transfer URL filename op file transfer operation
op = retry | abort
--set_run_mode mode duration set run mode for given duration
mode = always | auto | never
--set_network_mode mode duration
--set_proxy_settings
--run_benchmarks
--read_global_prefs_override
--quit
--read_cc_config
--set_debts URL1 std1 ltd1 [URL2 std2 ltd2 ...]
--get_project_config URL
--get_project_config_poll
--network_available
--get_cc_status

[Sep 4, 2012 1:37:18 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: Using boinccmd tool

If executing under v7 with --task and a real result, yes with the suffix _0 or whatever [though did not want to abort one], I get a "Authorization failure: -155" error. The command:

boinccmd --host xxxxxxx --passwd yyyyyyy -- task http://www.worldcommunitygrid.org zzzzzzzzz

Even when rooted in [which I never do, whilst using TeamViewer7], I'd still sudo... a matter of routine. This is the only format that does not respond with the help list of all the commands. I've also tried permutations such navigating to the data dir and then prefixing the path before boinccmd to where it is located. Same outcome.

Alternate manuals: http://boincfaq.mundayweb.com/index.php?view=503 and http://linux.die.net/man/1/boinccmd . The official and volunteer documentation is [ltd comment], always subject to improvement [if maintained at all], often changed without version reference, when something was added, changed, made deprecated. In the latter linked manual don't see --passwd, but it still has --result.

Spot the difference or errors... > report to developers. (Sorry, but other commitment to fulfill ATM).
[Sep 4, 2012 8:34:31 AM]   Link   Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Post new Thread