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

Re: [HTCondor-users] Python bindings: query wildcards & not all ClassAds returned?



Hi Brian,

many thanks! I had not realized, that the ClassAd functions can be
utilized in the query...

I am going now for a query like
> condorCollector.query(htcondor.AdTypes.Master,
'regexp(".*test.*\.desy\.de", Name)',['Name', ... ])

Cheers and thanks,
  Thomas


On 2016-07-25 18:18, Brian Bockelman wrote:
> Hi Thomas,
> 
> Try using the regexp function in the query:
> 
> regexp(âwn.*\.desy\.deâ, Name)
> 
> *Note*: thereâs no way to wildcard *attribute names*: you have to list all those you want returned, or get all attributes in the response.  TJ has been talking about wildcards in the projection for awhile.  To my knowledge, no work toward this has been done.
> 
> Brian
> 
>> On Jul 25, 2016, at 11:14 AM, Thomas Hartmann <thomas.hartmann@xxxxxxx> wrote:
>>
>> Hi all,
>>
>> is it actually possible to use the filter with wildcards?
>>
>> E.g., can I query for all masters in a pool where the name matches a
>> wildcarded pattern?
>>
>> So far, I was able to filter on a specific master's [1] - but apparently
>> "Name = "wn*.desy.de"" is not possible
>>
>> Cheers and thanks,
>>  Thomas
>>
>> [1]
>>>>> condorCollector.query(htcondor.AdTypes.Master, 'Machine =?=
>> "wn1-test.desy.de"',['MyAddress','Name'])
>> [[ MyType = "DaemonMaster"; Name = "wn1-test.desy.de"; MyAddress =
>> "<131.169.71.99:9618?addrs=131.169.71.99-9618+[--1]-9618&noUDP&sock=1109239_9582>"
>> ]]
>>
>> _______________________________________________
>> 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/
> 

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature