This shows you the differences between two versions of the page.
useful_pbs_commands [2017/10/19 10:52] |
useful_pbs_commands [2017/10/19 10:52] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | =====Useful PBS Commands===== | ||
+ | |||
+ | This document contains a list of useful Portable Batch System (PBS) commands. | ||
+ | |||
+ | More information about the TORQUE resource manager (PBS) and the Maui Cluster Scheduler can be found at Adaptive Computing’s official documentation website, located at www.adaptivecomputing.com/ | ||
+ | |||
+ | **PBS commands** | ||
+ | |||
+ | **qsub:** | ||
+ | | ||
+ | |||
+ | typical usage: | ||
+ | < | ||
+ | qsub [-A account] script | ||
+ | </ | ||
+ | |||
+ | **qdel:** | ||
+ | | ||
+ | |||
+ | typical usage: | ||
+ | < | ||
+ | qdel job_identifier | ||
+ | </ | ||
+ | |||
+ | **qstat:** | ||
+ | shows the status of PBS jobs | ||
+ | |||
+ | typical usage: | ||
+ | < | ||
+ | qstat -f job_identifier | ||
+ | </ | ||
+ | |||
+ | **myqueue: | ||
+ | shows all running and queued jobs for a user | ||
+ | |||
+ | typical usage: | ||
+ | < | ||
+ | myqueue | ||
+ | </ | ||
+ | |||
+ | **myquota: | ||
+ | show disk quotas for all projects in which the user is a member | ||
+ | |||
+ | typical usage: | ||
+ | < | ||
+ | myquota | ||
+ | </ | ||
+ | |||
+ | **showstart: | ||
+ | shows the approximate starting time of the job | ||
+ | |||
+ | typical usage: | ||
+ | < | ||
+ | showstart job_identifier | ||
+ | </ | ||
+ | |||
+ | **checkjob: | ||
+ | shows the current status of the job | ||
+ | |||
+ | typical | ||
+ | < | ||
+ | checkjob job_identifier | ||
+ | </ | ||
+ | |||
+ | **checknode: | ||
+ | shows the status of the node | ||
+ | |||
+ | typical usage: | ||
+ | < | ||
+ | checknode node_identifier | ||
+ | </ | ||
+ | |||
+ | **pbsnodes: | ||
+ | shows the detail of nodes | ||
+ | |||
+ | typical usage: | ||
+ | < | ||
+ | pbsnodes -a | ||
+ | |||
+ | To list the count of unique nodes along with the properties of those nodes: | ||
+ | |||
+ | pbsnodes -a | grep properties | sort | uniq -c | ||
+ | </ | ||
+ | |||
+ | **pbsdsh:** | ||
+ | | ||
+ | |||
+ | typical usage: | ||
+ | < | ||
+ | pbsdsh executable [args] | ||
+ | </ | ||
+ | This command copies the inputfile into /tmp directory of each node: | ||
+ | < | ||
+ | pbsdsh cp inputfile /tmp | ||
+ | </ | ||
+ | |||
+ | **mpiexec: | ||
+ | | ||
+ | |||
+ | typical usage: | ||
+ | < | ||
+ | mpiexec executable [args] | ||
+ | </ | ||
+ | This command copies the input file into /tmp directory of each node: | ||
+ | < | ||
+ | mpiexec -comm=none -pernode cp inputfile /tmp | ||
+ | </ | ||