[GE users] query for pending jobs statistic

reuti reuti at staff.uni-marburg.de
Wed Apr 7 11:47:08 BST 2010


Hi,

Hi,

Am 07.04.2010 um 12:39 schrieb introx:

> I am looking for a way for querying the pending spool for specific information without using grep.
> E.g Is there a more elegant for getting information from the Cluster regarding number of jobs of a particular user instead of "qstat -u $USER|wc -l"

there are several wrappers available, you can try for example the `status` scripts:

http://gridengine.sunsource.net/files/documents/7/208/status-1.4.tgz (there's an older version for older gawk versions)

$ status -acl

                running #jobs/#slots
Owner        serial   parallel    total
---------------------------------------
user1       0/  0     1/  2     1/  2
user2          0/  0     4/ 16     4/ 16
fubar1       0/  0    10/ 40    10/ 40
fubar2          1/  1     1/  8     2/  9
...
---------------------------------------
Sum          44/ 44    38/122    82/166


                waiting #jobs/#slots
Owner        serial   parallel    total
---------------------------------------
user1       48/ 48     0/  0    48/ 48
fubar1        0/  0     7/ 14     7/ 14
---------------------------------------
Sum          48/ 48     7/ 14    55/ 62

(misaligned due to removed user names). You can get a help with all options with -h and also request:

$ status -cl myuser

                running #jobs/#slots
Owner        serial   parallel    total
---------------------------------------
myuser       0/  0    10/ 40    10/ 40


-- Reuti


> Thanks.
> 
> 
> Erez

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=252554

To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].



More information about the gridengine-users mailing list