[Mauiusers] command to find total number of jobs of a given user

Ole Holm Nielsen Ole.H.Nielsen at fysik.dtu.dk
Tue Jun 15 13:42:39 MDT 2010

Rahul Nabar<rpnabar at gmail.com> wrote:
> Is there a torque / maui command that can allow me to find the total
> number of jobs / nodes occupied by a certain user at any point of
> time? Couldn't see a way out by using qstat, showq or diagnose but
> maybe I am missing the obvious.

We use the script "showuserjobs" which you can download from
This script parses the output of "showq" and reads user/group
information from /etc/passwd and /etc/group.  The output may
look like this example:

# showuserjobs
Batch job status at Tue Jun 15 21:39:32 CEST 2010
              Running       Idle
Username    Jobs Procs   Jobs Procs  Group     Further info
========    ==== =====   ==== =====  ========  =============================
GRAND_TOTAL  328  4665    697 10504  ALL       running+idle=15169 procs 43 users
GROUP_TOTAL  249  3613    553  6912  campvip   running+idle=10525 procs 24 users
user1         48  1040     18   512  campvip   Name1
user2        136   996    397  1656  campvip   Name2

Best regards,
Ole Holm Nielsen
Dept. of Physics, Technical University of Denmark

More information about the mauiusers mailing list