<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Rocks%3A_PBS</id>
	<title>Rocks: PBS - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Rocks%3A_PBS"/>
	<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Rocks:_PBS&amp;action=history"/>
	<updated>2026-05-04T22:57:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Rocks:_PBS&amp;diff=2501&amp;oldid=prev</id>
		<title>Michael: Created page with &quot;Scripts and commands for torque / maui (pbs)  ==== Torque/Maui Commands ==== &lt;syntaxhighlight&gt;     qsub submit_script.sh       # submit Job      qmgr print server           # show the se...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Rocks:_PBS&amp;diff=2501&amp;oldid=prev"/>
		<updated>2013-05-13T10:04:05Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Scripts and commands for torque / maui (pbs)  ==== Torque/Maui Commands ==== &amp;lt;syntaxhighlight&amp;gt;     qsub submit_script.sh       # submit Job      qmgr print server           # show the se...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Scripts and commands for torque / maui (pbs)&lt;br /&gt;
&lt;br /&gt;
==== Torque/Maui Commands ====&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
    qsub submit_script.sh       # submit Job&lt;br /&gt;
&lt;br /&gt;
    qmgr print server           # show the server configuration/settings&lt;br /&gt;
    qmgr print node compute-0-0 # show the compute nodes configuration/settings&lt;br /&gt;
&lt;br /&gt;
    qstat                       # list information about queues and jobs&lt;br /&gt;
    qstat -q                    # list all queues on system&lt;br /&gt;
    qstat -Q                    # list queue limits for all queues&lt;br /&gt;
    qstat -a                    # list all jobs on system&lt;br /&gt;
    qstat -au userid            # list all jobs owned by user userid (returns jobid)&lt;br /&gt;
    qstat -s                    # list all jobs with status comments&lt;br /&gt;
    qstat -r                    # list all running jobs&lt;br /&gt;
    qstat -f jobid              # list all information known about specified job&lt;br /&gt;
    qstat -Qf queue             # list all information known about specified queue&lt;br /&gt;
    qstat -B                    # list summary information about the PBS server&lt;br /&gt;
    qstat -n                    # list nodes allocated to jobs&lt;br /&gt;
    qstat -ans -u {username}    # this will show the nodes, jobid&amp;#039;s of a given {username}&lt;br /&gt;
&lt;br /&gt;
    qdel jobid                  # delete job jobid&lt;br /&gt;
    qdel -p job (as root)       # purge job from system, last resort&lt;br /&gt;
    qalter jobid                # modify the attributes of the job or jobs specified by jobid&lt;br /&gt;
&lt;br /&gt;
    pbsnodes -a                 # show nodes online and some node characteristics&lt;br /&gt;
    pbsnodes -l                 # list which nodes are currently offline&lt;br /&gt;
    pbsnodes -o compute-1-7     # set compute-1-7 to offline (no job will schedule to this node)&lt;br /&gt;
    pbsnodes -c compute-1-7     # clear compute-1-7 offline node status&lt;br /&gt;
&lt;br /&gt;
    showq                       # shows the current queue status (decide by MAUI)&lt;br /&gt;
    showq -u {username}         # show the queue of jobs that belong to {username}&lt;br /&gt;
    checkjobs -v {jobid}        # show the status of job {jobid}&lt;br /&gt;
    showbf                      # shows the total available cpus on the cluster&lt;br /&gt;
    showbf -f {FEATURE}         # shows the total available cpus with feature set {FEATURE} on the cluster. &lt;br /&gt;
    showstart {jobid}           # estimate when the job {jobid} will start/complete&lt;br /&gt;
    checkjob {jobid}            # information on the job that is running or being queued.&lt;br /&gt;
    showstate                   # Check if any nodes are down... queue daemon not running&lt;br /&gt;
    showstats                   # Stats about queue&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Submit Script Flags ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#PBS -I                             # submit an interactive job&lt;br /&gt;
#PBS -q queue_name                  # submit to a specific queue&lt;br /&gt;
#PBS -l nodes=6                     # request 6 nodes&lt;br /&gt;
#PBS -l nodes=compute-0-0           # request only node compute-0-0&lt;br /&gt;
#PBS -l nodes=4:ppn=2               # request 4 nodes with 2 processes per node&lt;br /&gt;
#PBS -j oe                          # combine both stdout and stderr&lt;br /&gt;
#PBS -o output_filename&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Simple PBS Job Submit Script ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Import BASH variables &lt;br /&gt;
#PBS -S /bin/bash&lt;br /&gt;
#PBS -V&lt;br /&gt;
&lt;br /&gt;
# Combine error/output and set outputfile&lt;br /&gt;
#PBS -j oe&lt;br /&gt;
#PBS -o qsub_hpl_output.log&lt;br /&gt;
&lt;br /&gt;
# Request job to run on 46 nodes with 8 processes per node&lt;br /&gt;
#PBS -l nodes=46:ppn=8&lt;br /&gt;
&lt;br /&gt;
# Change to the working directory&lt;br /&gt;
cd ${PBS_O_WORKDIR}&lt;br /&gt;
&lt;br /&gt;
##########################################&lt;br /&gt;
#                                        #&lt;br /&gt;
#   Output some useful job information.  #&lt;br /&gt;
#                                        #&lt;br /&gt;
##########################################&lt;br /&gt;
&lt;br /&gt;
NPROCS=`wc -l &amp;lt; $PBS_NODEFILE`&lt;br /&gt;
echo ------------------------------------------------------&lt;br /&gt;
echo &amp;#039; This job is allocated on &amp;#039;${NPROCS}&amp;#039; cpu(s)&amp;#039;&lt;br /&gt;
echo &amp;#039;Job is running on node(s): &amp;#039;&lt;br /&gt;
cat $PBS_NODEFILE&lt;br /&gt;
echo ------------------------------------------------------&lt;br /&gt;
echo PBS: qsub is running on $PBS_O_HOST&lt;br /&gt;
echo PBS: originating queue is $PBS_O_QUEUE&lt;br /&gt;
echo PBS: executing queue is $PBS_QUEUE&lt;br /&gt;
echo PBS: working directory is $PBS_O_WORKDIR&lt;br /&gt;
echo PBS: execution mode is $PBS_ENVIRONMENT&lt;br /&gt;
echo PBS: job identifier is $PBS_JOBID&lt;br /&gt;
echo PBS: job name is $PBS_JOBNAME&lt;br /&gt;
echo PBS: node file is $PBS_NODEFILE&lt;br /&gt;
echo PBS: current home directory is $PBS_O_HOME&lt;br /&gt;
echo PBS: PATH = $PBS_O_PATH&lt;br /&gt;
echo ------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
# Launch the Job&lt;br /&gt;
date&lt;br /&gt;
/opt/openmpi/bin/mpirun -np $NPROCS -machinefile $PBS_NODEFILE ./xhpl&lt;br /&gt;
date&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Use &amp;lt;tt&amp;gt;showstats&amp;lt;/tt&amp;gt; to get details on user jobs.&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[root@fotcluster2 ~]# showstats -u | sort -n -k 3&lt;br /&gt;
 &lt;br /&gt;
         |------ Active ------|--------------------------------- Completed -----------------------------------|&lt;br /&gt;
asmith       0     0      0.00    1   2.27 153600.0   2.53  322.2   2.40 -----   0.00   0.00   0.00 4771.67   0.20&lt;br /&gt;
klangfeld    0     0      0.00   15  34.09 5567999.4  91.77 13068.4  97.45 -----   0.00   0.00   0.00 21888.98   0.22&lt;br /&gt;
maustin      0     0      0.00   28  63.64 345666.6   5.70   20.5   0.15 -----   0.08   0.00   0.00 5487.95   7.43&lt;br /&gt;
statistics initialized Thu Jan  1 01:00:00&lt;br /&gt;
user      Jobs Procs ProcHours Jobs    %    PHReq    %    PHDed    %   FSTgt  AvgXF  MaxXF  AvgQH  Effic  WCAcc&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael</name></author>
	</entry>
</feed>