Expand columns to see full jobname in Slurm

时间秒杀一切 提交于 2019-12-09 08:59:15

问题


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 

回答1:


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.



来源:https://stackoverflow.com/questions/42217102/expand-columns-to-see-full-jobname-in-slurm

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!