Use the PBS command qdel JOBID to delete a job. When the job is hung and qdel JOBID can't remove the job, use qsig -sNULL JOBID to delete the job. Another method to delete a job is qdel -p JOBID.
Unfortunately, a job cannot be deleted if the head node (first node) for the job
is unreachable via the network. This condition is also likely to cause a
flood of emails to the user and/or the admins of the cluster. This is a
known problem; if you fail to delete a job by one of these methods, please submit a trouble ticket to have the job killed.
There are 2 commands for checking the status of batch jobs.
Both give useful output with no options, and can operate on a subset of jobs if appropriate options are included.
qstat is a standard PBS/Torque command, and its usage can be found by typing man qstat on any of the interactive machines.
jobstat is a locally developed command that has a slightly different output than qstat. jobstat's usage is:
jobstat -h usage: jobstat [-u user] [-s stat] [-a account] [-q queue] [-u user] to show the status of batch jobs for specified user [-s stat] to show the status of batch jobs in specified state [-q queue] to show the status of batch jobs belong to specified queue [-a account] to show the status of batch jobs belong to specified account