Some frequently used PBS commands:

======

command description

======

qstat list information about queues and jobs

qstat -q list all queues on system

qstat -Q list queue limits for all queues

qstat -a list all jobs on system

qstat -au userid list all jobs owned by user userid

qstat -s list all jobs with status comments

qstat -r list all running jobs

qstat -f jobid list all information known about specified job

qstat -Qf queue list all information known about specified queue

qstat -B List summary information about the PBS server

qsub submit a batch job to PBS

qsub jobscript submit jobscript to PBS

qsub -I submit an interactive-batch job

qsub -q queue submit job directly to specified queue

qdel <job_id> Delete the job

======

qsub -

Submits a job script. Useful options include -I for an interactive job. qsub with a filename will read the job script from a file. Without a file name it will read the job script from the command line. A job can be specified in a single command line.

======

qstat

Queries the current job queue and lists its contents. Useful options include -a which lists all jobs and -f which gives a full listing of queued jobs. With -f the listing includes information on why a job is not currently running. The meaning of the output from qstat is described on the qstat man page.

qstat -f <jobid

Displays more information about a particular job (also see man qstat)

qstat -q

To list all the PBS queues on Discover.

qstat -Qf <Name of the Queue , e.g general>

To get details of the particular queue.

======

qdel <jobid>

This command will stop a running or queued pbs job identified by jobid. The parameter jobid is the identifier listed in qstat and returned by qsub.

pbsnodes -a

This command will list all the nodes that PBS can send jobs to and their attributes. Attributes are arbitrary keys listed in the properites field.

======