Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display long SLURM QoS names

Tags:

slurm

qos

I am trying to find out a way to display long QoS names in SLURM (bigger than 9 characters). I have created a QoS with the following command

sacctmgr add qos verylongname

But when using sacctmgr show qos format=name i get the following:

$ sacctmgr show qos format=name
      Name
----------
verylongn+

As you can see the name is clipped after 9 characters. Is there a way to find out the full name of the SLURM QoS item? For example, suppose you forget the long name but want to delete a QoS item, unless specifying it's full name the operation can't be done.

$ sacctmgr delete -i qos verylongn+
 Nothing deleted
$ sacctmgr delete -i qos verylongname
 Deleting QOS(s)...
  verylongname
like image 619
dru10 Avatar asked Oct 17 '25 14:10

dru10


1 Answers

The format parameter accepts an optional argument specifying the width of the column:

sacctmgr show qos format=name%-40

The % sign indicates the width specifier, the - means "justify left" and 40 is the width in chars of the column.

like image 101
damienfrancois Avatar answered Oct 19 '25 12:10

damienfrancois



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!