[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] headers on condor_status command



Yo,

> On 14 Dec 2022, at 09:31, Stefano Dal Pra <stefano.dalpra@xxxxxxxxxxxx> wrote:
> 
> 
> I would try substituting RemoteHost with
> split(RemoteHost,".@")[1]
> 
> Example:
> [root@htc-2 ~]# condor_q -name sn-02 -run -lim 3 -af 'split(remotehost,".@")[1]' 
> cn-313-02-03 
> cn-610-01-09 
> wn-204-13-39-02-a

WOW.  This is perfect.  I didnât know you could do that.

SELECT NOSUMMARY
   ClusterId  AS  JOB_ID PRINTAS JOB_ID
   Owner AS Username
   Cmd               AS CMD WIDTH 15 PRINTAS JOB_DESCRIPTION
   CpusProvisioned   AS CPUS
   MemoryProvisioned AS MEMREQ PRINTAS READABLE_MB
   JobStatus         AS "  ST" PRINTAS JOB_STATUS
   RemoteUserCpu     AS "   RUN_TIME"      PRINTAS CPU_TIME
   split(RemoteHost,".@")[1]     AS "  WorkerNode"

Thanks!

JT