Update Slurm guide authored by LOGER Benoit's avatar LOGER Benoit
TODO Here is a non-exhaustive list of commands to run and track your jobs on srvoad. You can refer to the slurm documentation for more details and options. You can also access the documentation in the shell with *--help* *(ex: squeue --help)*.
\ No newline at end of file
## [squeue](https://slurm.schedmd.com/squeue.html)
The *squeue* command gives the list of jobs located in the Slurm scheduling queue.
```
$ squeue
JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON)
130212 ls2n myjob j21doe R 56:35 1 srvoad
```
## [scontrol](https://slurm.schedmd.com/scontrol.html)
The *scontrol* command is used to view or modify Slurm configuration including: job, job step, node, partition, reservation, and overall system configuration. It is useful to check your job configurations, suspend or resume jobs.
```
scontrol show job <JobId>
scontrol show job -u <username>
scontrol suspend <JobId>
scontrol resume <JobId>
```
## [scancel](https://slurm.schedmd.com/scancel.html)
The *scancel* command is used to cancel jobs.
```
scancel <JobId>
```
will cancel all jobs of a given user
```
scancel -u <username>
```
\ No newline at end of file