How get information of completed PBS or Torque jobs?

user3282611 picture user3282611 · Jun 16, 2014 · Viewed 7.7k times · Source

I have IDs of completed jobs. How do I check its detailed information, such as execution time, allocated nodes, etc? I remember SGE has a command for it (qacct?). But I could not find it for PBS or Torque. Thanks.

Answer

jvd10 picture jvd10 · Feb 19, 2016

Since job accounting requires root access to view completed jobs, or that the cluster admins have installed pbstools (both out of the control of a user), I've found that the easiest thing to do is to place a

tracejob $PBS_JOBID

on the last line of the submission script. If the scheduler is MAUI, then checkjob -vv $PBS_JOBID is another alternative. These commands could be redirected to a separate outfile:

tracejob $PBS_JOBID > $PBS_O_WORKDIR/$PBS_JOBID.tracejob

Should also be possible to have this run as a user epilog script to make it more reusable from job to job.