Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Expand columns to see full jobname in Slurm

Tags:

slurm

sacct

Is it possible to expand the number of characters used in the JobName column of the command sacct in SLURM?

For example, I currently have:

       JobID    JobName    Elapsed      NCPUS   NTasks      State  ------------ ---------- ---------- ---------- -------- ----------  12345      lengthy_na+   00:00:01         4         1      FAILED  

and I would like:

       JobID    JobName    Elapsed      NCPUS   NTasks      State  ------------ ---------- ---------- ---------- -------- ----------  12345      lengthy_name   00:00:01         4         1      FAILED  
like image 455
br19 Avatar asked Feb 14 '17 02:02

br19


People also ask

How do I see completed jobs in Slurm?

To view the statistics of a completed job using Slurm's sacct command. Copied! Copied! You can get statistics (accounting data) on completed jobs by passing either the jobID or username flags.

What is status PD in Slurm?

PD. The job is waiting for resource allocation. It will eventually run. PREEMPTED.

What is Squeue?

DESCRIPTION. squeue is used to view job and job step information for jobs managed by Slurm.

How do I cancel all jobs Slurm?

If you want to cancel all of your jobs then you can use scancel -u username , where username is your system username (i.e. jharri62 is my username). Often you may want to be selective and keep some jobs running, but cancel others.


1 Answers

You should use the format option, with:

sacct --helpformat 

you'll see the parameters to show, for instance:

sacct --format="JobID,JobName%30" 

will print the job id and the name up to 30 characters:

       JobID                        JobName ------------ ------------------------------ 19009                                  bash 19010                             launch.sh 19010.0                     hydra_pmi_proxy 19010.1                     hydra_pmi_proxy 

Now, you can to customize your own output.

like image 167
Bub Espinja Avatar answered Sep 20 '22 17:09

Bub Espinja