Hi.

I do not know if this is of any interest to anyone else, but here is a small 
python 
program that will compress lines showing similar jobs for a user.  On our 
system it 
makes the output of showq a lot more compact.  For instance it makes the list 
of blocked 
jobs a lot shorter:

BLOCKED JOBS----------------
JOBNAME            USERNAME      STATE  PROC     WCLIMIT            QUEUETIME

122935                  userA       Hold     1     2:00:00  Tue Jun  3 11:35:59
123247                  userA       Hold     1     2:00:00  Tue Jun  3 12:05:00
134332                  userB   Deferred     4  8:08:00:00  Wed Jun  4 10:57:01
         Skipping 7 jobs
134347                  userB   Deferred     4  8:08:00:00  Wed Jun  4 10:58:11
134357                  userA       Hold     1     2:00:00  Wed Jun  4 10:59:53
151885                  userC       Idle     1  2:00:00:00  Fri Jun  6 11:09:24
         Skipping 342 jobs
152239                  userC       Idle     1  2:00:00:00  Fri Jun  6 11:30:31



Usage:
showq | rowcompressor.py 1,2,3

Compress jobs with same user, state and cpucount.
I usually rename "rowcompressor.py" to "rc" (I'm a lazy typist...)

Use at your own leisure.

Regards,
r.

-- 

  The Computer Center, University of Tromsø, N-9037 TROMSØ Norway.
              phone:+47 77 64 41 07, fax:+47 77 64 41 00
        Roy Dragseth, Team Leader, High Performance Computing
         Direct call: +47 77 64 62 56. email: [EMAIL PROTECTED]

Attachment: rowcompressor.py
Description: application/python

_______________________________________________
mauiusers mailing list
[email protected]
http://www.supercluster.org/mailman/listinfo/mauiusers

Reply via email to