SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-09-13 10:57:39

crunchgargoyle
#! Member
From: London
Registered: 2011-09-06
Posts: 55

Output 'qstat' (SGE) from remote HPC architecture to local conky

Hi,

A little script a friend (Telamonn on here) and I  -- his idea to use gawk so this version is basically his -- wrote which might be useful for anyone using SGE on HPC architectures to submit calculations.

First of all though, a caveat: using this method it's necessary to sacrifice SSH security by removing the need for a password each time you log in to the remote architecture. One does that as follows: firstly execute "ssh-keygen" locally (don't bother with passphrases when prompted) to generate an RSA key and then concatenate that into your authorized_keys file within an .ssh directory (/home/yourusername/.ssh) on the remote architecture.

Now that that's done, note that 'qstat' on SGE (which I believe I should refer to as OGE now) will output something along the lines of the following:

job-ID  prior   name       user         state submit/start at     queue                          slots ja-task-ID
-----------------------------------------------------------------------------------------------------------------
380603 1.97839 job_name yourusername      r   09/13/2011 11:46:43   

If for example, as I did, you want the 'job-ID', 'name' and 'state' fields only, modify this as necessary (change 'yourusername' etc.) and desired, and place it in the text section of .conkyrc locally:

J O B S    R U N N I N G
${hr}
${execpi 120 ssh yourusername@remotearchitectureaddress 'qstat | grep yourusername | gawk "{ print \$1 \": \" \$3 \"\t\" \"State: \" \$5 }"'
}

This particular version will reset every 2 minutes (120 seconds), and with any luck you'll get something along the lines of this output to your conky:

conky_qstat_out.png

Any suggestions for improvement will be much appreciated.

Thanks

Last edited by crunchgargoyle (2011-09-13 11:10:31)


I am error

Offline

Help fund CrunchBang, donate to the project!

#2 2011-09-17 04:40:06

Shayni
New Member
Registered: 2011-09-17
Posts: 1

Re: Output 'qstat' (SGE) from remote HPC architecture to local conky

Architectural styles denote the classification of architecture in terms of form, techniques and materials in an integration of architecture designs from over lapping periods of time. Is there any list of Architectural styles?

architectural style examples

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo