flux-core icon indicating copy to clipboard operation
flux-core copied to clipboard

add -o flag for formatting output on flux resource drain

Open Raj-Bagri1 opened this issue 2 years ago • 2 comments

Please if we can add a -o flag to flux resource drain so that we may increase spacing inbetween columns such as this output before editing output;

sinfo -Rh 
INC0312887 CPU therm root      2022-09-28T11:25:27 quartz224
INC0309480 Testing   root      2022-09-12T15:04:42 quartz494
INC0314614 cpu therm root      2022-10-10T15:15:24 quartz343
INC0313381 severe:fa root      2022-10-03T00:16:44 quartz1144

and afterwards;

sinfo -Rho "%60E %20H %6t %N"
INC0312887 CPU thermal or power problem                      2022-09-28T11:25:27  drain* quartz224
INC0309480 Testing                                                            2022-09-12T15:04:42  drain* quartz494
INC0314614 cpu thermal                                                    2022-10-10T15:15:24  drain  quartz343
INC0313381 severe:fan2a                                                  2022-10-03T00:16:44  drain  quartz1144

Raj-Bagri1 avatar Oct 11 '22 16:10 Raj-Bagri1

Here is a better example of the output formatting

Screenshot from 2022-10-11 09-55-06

Raj-Bagri1 avatar Oct 11 '22 16:10 Raj-Bagri1

Good idea, thanks!

grondo avatar Oct 11 '22 18:10 grondo