Job info by qstat
The current state of the job can be probed by
qstat job_ID # display status of selected job (short format)
qstat -f job_ID # display status of job (long format)
qstat -u user123 # list all user123's running or waiting jobs on current PBS server
qstat -u user123 @cerit-pbs.cerit-sc.cz @meta-pbs.metacentrum.cz @elixir-pbs.elixir-czech.cz # dtto, on all PBS servers
PBS Pro uses different codes to mark job state within the PBS ecosystem.
|Moved to another PBS server
|Held. Job is put into a held state by the server, user or administrator. Job stays in a held state until it is released by a user or administrator.
|Suspended (substate of R)
|Exiting after having run
|Finished (subjobs only)
|Waiting. Job is waiting for its requested execution time to be reached, or job is delayed due to stagein failure.
Output of running jobs
Although the input and temporary files for calculation lie in
$SCRACHDIR, the standard output (STDOUT) and standard error output (STDERR) are elsewhere.
To see current state of these files in a running job, proceed in these steps:
- find on which host the job runs by
qstat -f job_ID | grep exec_host2
sshto this host
- on the host, navigate to
/var/spool/pbs/spool/directory and examine the files
$PBS_JOBID.OUfor STDOUT, e.g.
$PBS_JOBID.ERfor STDERR, e.g.
- To watch a file continuously, you can also use a command
(BULLSEYE)user123@tarkil:~$ qstat -f 13031539.meta-pbs.metacentrum.cz | grep exec_host2
exec_host2 = zenon41.cerit-sc.cz:15002/12
(BULLSEYE)user123@tarkil:~$ ssh zenon41.cerit-sc.cz
firstname.lastname@example.org:/var/spool/pbs/spool$ tail -f 13031539.meta-pbs.metacentrum.cz.OU