You canât control the headers using -af, but you can if you use a print format file with the -pr option.
Custom print formats can fully control the classad print engine that -af and -format use, including the headings and specialized data formatters.
https://htcondor.readthedocs.io/en/latest/classads/print-formats.html
For example, if you create file named templon.cpf with this content:
SELECT NOSUMMARY
Cmd
Arguments
CpusProvisioned AS CPUs
JobId
Owner
formatTime(Qdate) AS Qdate
formatTime(JobCurrentStartDate) AS StartDate
Machine
interval(time()-JobCurrentStartDate) AS RunTime
CpusUsage
NumJobStarts
GROUP BY
JobCurrentStartDate DECENDING
then run this
condor_status -claimed -pr templon.cpf -constraint 'Owner=="templon"'
To duplicate some of the time formatting of the regular condor_status output, try using FORMATAS QDATE
-tj
From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx>
On Behalf Of Jeff Templon
Sent: Tuesday, November 22, 2022 7:10 AM
To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx>
Subject: [HTCondor-users] headers on condor_status command
Hi,
I have commands like this:
â gofact_extendrange_ganymede git:(master)
â condor_status -claimed -af:h Cmd Arguments CpusProvisioned JobId Owner 'formatTime(Qdate)' 'formatTime(JobCurrentStartDate)' Machine 'interval(time()-JobCurrentStartDate)' CpusUsage NumJobStarts -sort "-JobCurrentStartDate" -constraint 'Owner=="templon"'
Cmd Arguments CpusProvisioned JobId Owner formatTime(Qdate) formatTime(JobCurrentStartDate) Machine interval(time()-JobCurrentStartDate) CpusUsage NumJobStarts
/user/templon/gofact_extendrange_ganymede/mers.condor 214 1 49710.152 templon Fri Nov 18 10:21:07 2022 Fri Nov 18 10:22:33 2022 wn-lot-048.nikhef.nl 4+03:08:05 0.9994810870997662 0
/user/templon/gofact_extendrange_ganymede/mers.condor 242 1 49710.180 templon Fri Nov 18 10:21:07 2022 Fri Nov 18 10:23:56 2022 wn-lot-047.nikhef.nl 4+03:06:42 0.9995679102645538 0
/user/templon/gofact_extendrange_ganymede/mers.condor 254 1 49710.192 templon Fri Nov 18 10:21:07 2022 Fri Nov 18 10:32:35 2022 wn-lot-050.nikhef.nl 4+02:58:03 0.9994999861801459 0
/user/templon/gofact_extendrange_ganymede/mers.condor 257 1 49710.195 templon Fri Nov 18 10:21:07 2022 Fri Nov 18 10:39:16 2022 wn-lot-050.nikhef.nl 4+02:51:22 0.9995049555423193 0
The output gets really bulky, partially because I have headers in the output with names like
interval(time()-JobCurrentStartDate)
. Is there a way (aside from wrapping stuff in a script that does the substitution) to give the headers different
names?
JT