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

Re: [HTCondor-users] condor_q in 8.6

Mary, you may be thinking of the custom print formats, a feature that is still experimental.  The page is here

condor_status and condor_q both  make use of a bit of code we call the ClassAd pretty-printer.  It was originally
created to handle condor_status/q -format,  later extended for condor_status/q -autoformat, at which point it was
powerful to do (almost) everything that condor_status and condor_q needed to do for their normal output.

The custom print format files provide a way to control the classad pretty printer directly, plus it has a bit of additional
syntax to let you set constraints and turn the condor_status/q totals lines on and off . 

For instance.  To get mixed -dag and -run output, you could use this print format file.

# dagrun.cpf
# show host for running jobs, and -dag nodenames in the same output.
   ClusterId     AS " ID"  NOSUFFIX WIDTH 6
   ProcId        AS " "    NOPREFIX             PRINTF ".%-3d"
   QDate         AS "  SUBMITTED"   WIDTH 11    PRINTAS QDATE
   {RemoteUserCpu,RemoteWallClockTime,ShadowBday,ServerTime}[0] AS "    RUN_TIME"  WIDTH 12    PRINTAS CPU_TIME
   RemoteUserCpu AS "    RUN_TIME" WIDTH 12 PRINTAS CPU_TIME OR ??
WHERE JobStatus == 2

With the command 

condor_q -dag -pr dagrun.cpf

I'm really hoping to get the time to move this feature out of experimental phase in the 8.7 series, but even if I can't 
I can say with some confidence at this point that the feature isn't going away and that the syntax isn't likely to change

As of 8.6, condor_q now uses the pretty printer for all of its non-batch output formatting.   
The HTCondor wiki would be a good place to share printing recipes.  If you have some you would like to share,
contact me and I'll give you write access to the wiki, or you can send me the text and a post it on your behalf. 


-----Original Message-----
From: HTCondor-users [mailto:htcondor-users-bounces@xxxxxxxxxxx] On Behalf Of Mary Romelfanger
Sent: Thursday, February 9, 2017 3:21 PM
To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx>
Subject: Re: [HTCondor-users] condor_q in 8.6

Hi all,

Which leads me to a question I have been meaning to ask.

 Is there?  Or could there be a page somewhere that showed some example -format commands? 

It could include the proper format conversion for the standard options like the one being asked about and could also maybe allow other users to include their favorites that they have created?  I think that would help new users get going with format options < plus there are so many options where someone else may have created a really cool and useful format using some option that I did not know about.

  I thought I saw something like that at one point, but I have not been able to find it.


Mary Romelfanger
Deputy Branch Manager
Data Systems Branch

{o,o}      Phone 410-338-6708
/)__)      Cell      443-244-0191
-"-"-          mary@xxxxxxxxx

Space Telescope Science Institute
3700 San Martin Drive
Baltimore, MD 21218

On 2/9/17, 3:41 PM, "HTCondor-users on behalf of Duncan Brown"
<htcondor-users-bounces@xxxxxxxxxxx on behalf of dabrown@xxxxxxx> wrote:

>Hi all,
>condor_q before 8.6 would let me combine -dag and -run so that I could 
>see the node name and the host that the job is running on:
>dbrown10@its-condor-submit:~$ condor_q -wide -dag -run
>-- Schedd: its-condor-submit.syr.edu : <
>72497086.0   kborziak        2/7  18:33   1+21:02:31
>72688584.0    |-EOG090O0JAV.f 2/8  21:59   0+17:34:16
>72693295.0    |-EOG090O048D.f 2/8  22:57   0+16:24:51
>72693327.0    |-EOG090O02BQ.f 2/8  22:58   0+16:26:47
>72694740.0    |-EOG090O0NTN.f 2/8  23:18   0+16:07:54
>72697244.0    |-EOG090O0D04.f 2/8  23:51   0+15:42:27
>72700895.0    |-EOG090O083I.f 2/9  00:36   0+14:50:46
>However, I can't get both the node name and the run host displayed in 
>8.6 (with -nobatch). -dag and -run seem mutually exclusive:
>condor_q -nobatch -run gives host names, but no node names.
>condor_q -nobatch -dag gives node names, but no host names.
>condor_q -nobatch -dag -run gives the same output as condor_q -nobatch 
>-dag, so no host names.
>Is this a regression, or expected new behavior and I should try and 
>roll my own -format?
>Duncan Brown                         http://dbrown10.expressions.syr.edu
>Charles Brightman Professor of Physics     Room 263-1 Physics Department
>Director of the Graduate Program      Syracuse University, NY 13244, USA
>Phone: 315 443 5993                                    Fax: 315 443 9103
>HTCondor-users mailing list
>To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx 
>with a
>subject: Unsubscribe
>You can also unsubscribe by visiting
>The archives can be found at:

HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting

The archives can be found at: