[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
https://htcondor-wiki.cs.wisc.edu/index.cgi/wiki?p=ExperimentalCustomPrintFormats

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.
SELECT
   ClusterId     AS " ID"  NOSUFFIX WIDTH 6
   ProcId        AS " "    NOPREFIX             PRINTF ".%-3d"
   Owner         AS "OWNER/NODENAME" WIDTH -17   PRINTAS DAG_OWNER
   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 ??
   RemoteHost    AS "HOST(S)" PRINTAS REMOTE_HOST OR ??
WHERE JobStatus == 2
SUMMARY STANDARD

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
much.

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. 

-tj 

-----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  

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 : <10.5.0.6:8191?...
>72497086.0   kborziak        2/7  18:33   1+21:02:31 10.5.0.6
>72688584.0    |-EOG090O0JAV.f 2/8  21:59   0+17:34:16
>slot9@CRUSH-10-5-26-13
>72693295.0    |-EOG090O048D.f 2/8  22:57   0+16:24:51
>slot8@CRUSH-10-5-67-46
>72693327.0    |-EOG090O02BQ.f 2/8  22:58   0+16:26:47
>WHIT-CR-1993-S2-its-u12-nfs-20141003
>72694740.0    |-EOG090O0NTN.f 2/8  23:18   0+16:07:54
>NEWH-J0D9HQ1-S4-its-u12-nfs-20141003
>72697244.0    |-EOG090O0D04.f 2/8  23:51   0+15:42:27
>LE-HER114-S1-its-u12-nfs-20141003
>72700895.0    |-EOG090O083I.f 2/9  00:36   0+14:50:46
>LCS-215-036-S8-its-u12-nfs-20141003
>
>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?
>
>Cheers,
>Duncan.
>
>--
>
>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
>https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users
>
>The archives can be found at:
>https://lists.cs.wisc.edu/archive/htcondor-users/


_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/