Some useful SLURM commands

===========================================
Inside the jobscript for "sbatch":
---------------------------------------------------------------------------
To receive email notification about your job status:
#SBATCH --mail-type=ALL
#SBATCH --mail-user=YourEmailAddress
---------------------------------------------------------------------------
To use 72hours queue:
#SBATCH --partition=72hours
#SBATCH --qos=72hours
===========================================

===========================================
On the command line:
---------------------------------------------------------------------------
"squeue"
"squeue -u YourUserName"
"squeue -u YourUserName -i"
"squeue -n TheJobName"
"squeue -t Running" or "squeue -t Pending"
---------------------------------------------------------------------------
"scancel JobID" (To cancel the job with the ID of JobID)
"scancel -u YourUserName" (To cancel all your jobs)
"scancel -u YourUserName -i" (To cancel your jobs interactively)
---------------------------------------------------------------------------
"sinfo" (Ti check node availability)
"sinfo -T" (To check reservation information)
---------------------------------------------------------------------------
"sacct"
"sacct -u YourUserName -S2016-07-03-11:40 -E2016-07-12-12:00"
"sacct -u YourUserName --format=jobid,jobname,user,submit,start,end,state ,NNodes,CPUTimeRAW,comment"
---------------------------------------------------------------------------
"scontrol show job JobIDs"
"scontrol show node NodeIDs"
"scontrol show hostname nid000[1-3]"
"scontrol show hostlist nid00001,nid00002,nid00003"
---------------------------------------------------------------------------
Find more useful information by:
man sbatch
man squeue
man scancel
man sinfo
man sacct
man scontrol
===========================================