本文介绍了展开列以在Slurm中查看完整的作业名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在SLURM中扩展命令sacctJobName列中使用的字符数?

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

例如,我目前有:

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

我想:

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

推荐答案

您应将format选项与以下选项一起使用:

You should use the format option, with:

sacct --helpformat

您将看到要显示的参数,例如:

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

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

将打印作业ID和名称,最多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.

这篇关于展开列以在Slurm中查看完整的作业名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 05:51