Index | Recent Threads | Unanswered Threads | Who's Active | Guidelines | Search |
![]() |
World Community Grid Forums
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
No member browsing this thread |
Thread Status: Active Total posts in this thread: 8
|
![]() |
Author |
|
Mgruben
Advanced Cruncher Joined: May 26, 2013 Post Count: 94 Status: Offline Project Badges: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Hey all,
----------------------------------------I'm running a linux box for WCG, and would like to be able to check on the status of crunching from the terminal. I'm aware of the "boinccmd" command, and of the "--get_tasks" subcommand, but it gets a but unwieldy on a single terminal, even using the "| less" pipe. I much prefer the visual efficiency of the BOINC manager, and was wondering if there was any way to make a "boinccmd" more informationally dense, like for example by only showing information on working tasks, the number of tasks completed, and the number of tasks not yet started. It's entirely possible that boincmgr already gives me everything I want to see and that I shouldn't be trying to reinvent the wheel, although something about being able to use the terminal (and ergo to work my checkup scheme into a script) appeals to me at a basic level. ![]() |
||
|
uplinger
Former World Community Grid Tech Joined: May 23, 2005 Post Count: 3952 Status: Offline Project Badges: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Mgruben,
If you are able to connect to the linux machine within your network, then you should be able to use the boincmgr to attach to that device and see it graphically instead of in text. Here is a great wiki page with more details on this, let me know if you have more questions. http://boinc.berkeley.edu/wiki/Controlling_BOINC_remotely Thanks, -Uplinger |
||
|
Mgruben
Advanced Cruncher Joined: May 26, 2013 Post Count: 94 Status: Offline Project Badges: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Uplinger,
----------------------------------------I was not aware of the GUI RPC, and found the protocol interesting to read about, although I don't think I can utilize it in my particular circumstance. While I perhaps should have mentioned this earlier (apologies for the initial vagueness), I connect to my linux box (which is running Ubuntu 12.04 desktop) through a Wine TeamViewer program, and so generally have access to the GUI as I'm plodding around on my iPad. My qualms with the boincmgr program are that I note that it uses approximately 8% of the core it runs on (which I'd like to avoid if possible, despite the short time I leave it open for), and in general I have to go through several steps to assuage my conscience that nothing has melted in my box since the last time I checked up on it (e.g. that tasks have completed, that tasks are currently running, and that there is a bank of unstarted tasks which can occupy the box in the case of a client / server internet outage), which I figured I could just as easily glean from a robust terminal command if one exists. So far, I find that the "boinccmd --get_tasks" command is as stripped down as the terminal can get, but since I've set my minimum work queue to 1 day and my max additional work queue to 0.5 days, this means paging through some 140 tasks to note the status of the client, which isn't terrible since they're usually ordered from finished->working->unstarted, but which takes more time for me than just starting up the boincmgr and accepting a slight performance drop for the duration during which it is open. Essentially I may be hoping against hope here, or I may be naively hoping that all things are possible (read: practical for a 3-week newbie to attempt) through Linux, but what I'd ideally like is to be able to run a command or script in the Linux terminal that reports whether there are completed and/or unstarted tasks, and the progress of the working units rather than calling boinccmd --get_tasks | less and paging through the verbose response. And yes, I realize the efficiency irony of using teamviewer, which grabs for itself about 20% of a CPU core while active, to operate a terminal to avoid using boincmgr which in a worst-case scenario would pull 8% of a CPU core, but just run with me here haha it's the easiest way to manage the box since I'm most often around iPhone or iPad and generally leave the laptop at home (also crunching). Many thanks for your helpfulness though, and I'm glad to have found out about another facet of remote administration that I hadn't previously known about. --mg ![]() |
||
|
sunfolk
Master Cruncher Super Kiwi Socialistic Empire Of Jacinda Joined: Oct 8, 2006 Post Count: 1769 Status: Offline Project Badges: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Check some of these tools out: http://boinc.berkeley.edu/addons.php
----------------------------------------![]() ![]() ![]() |
||
|
Tullus
Cruncher Joined: Nov 14, 2008 Post Count: 29 Status: Offline Project Badges: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Hi, I am currently working on this exact problem using python. You can find my solution here:
----------------------------------------https://code.google.com/p/py-boinc-plotter/ Note that you do not need to install numpy or matplotlib if you are not interested in the plotting aspects of the program. You will need BeautifulSoup4 with xml support, let me know if that causes problems. As an example from my laptop right now: > py-boinc-plotter --no-web --no-plot The cpu is used only when you ask for a refresh. The output you see is basically the parsed output of the --get_state command. If you know python (or is willing to learn) you can even make the output even more terse by only printing the number of tasks in the different states or by printing the total (estimated) remaining time. [Edit 1 times, last edit by Tullus at Aug 25, 2013 4:18:33 PM] |
||
|
Mgruben
Advanced Cruncher Joined: May 26, 2013 Post Count: 94 Status: Offline Project Badges: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Tullus,
----------------------------------------Your program is promising, I'll have to do some research to get up to speed with python and see how it works ![]() |
||
|
Tullus
Cruncher Joined: Nov 14, 2008 Post Count: 29 Status: Offline Project Badges: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Depending on your needs you may not need to learn any python at all. (you can browser the web using firefox without knowing C++). Just follow the instructions here:
https://code.google.com/p/py-boinc-plotter/wiki/installation and let me know where you get stuck. |
||
|
uplinger
Former World Community Grid Tech Joined: May 23, 2005 Post Count: 3952 Status: Offline Project Badges: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Mgruben,
Sounds like you have an interesting situation to say the least :) I would say an optimal solution for you would be to use something that prints the stats to a webpage for you to pull up on your ipad/iphone as that would keep the teamviewer from having to run. But looking at the addons within the BOINC site, it looks like all are either old or don't exist any more. Let us know how py-boinc-plotter works for you. Thanks, -Uplinger |
||
|
|
![]() |