[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [HTCondor-users] Python bindings: how to querying configuration values
- Date: Tue, 26 Jul 2016 13:50:25 +0000
- From: Iain Bradford Steers <iain.steers@xxxxxxx>
- Subject: Re: [HTCondor-users] Python bindings: how to querying configuration values
There's the docstrings here:
Which more or less match what you'll find in help()
Note if you update a remote param I don't believe an explicit send_command with reconfig is required, think it happens automatically. Although Brian can confirm this last point
From: HTCondor-users [htcondor-users-bounces@xxxxxxxxxxx] on behalf of Thomas Hartmann [thomas.hartmann@xxxxxxx]
Sent: 26 July 2016 15:45
Subject: Re: [HTCondor-users] Python bindings: how to querying configuration values
many thanks - that's what I was looking for!
> masterAds = condorCollector.locate(htcondor.DaemonTypes.Master,
> masterParams = htcondor.RemoteParam(masterAds)
Do you know, if there is some documentation?
Else I will try to deduce the remaining functionality from dir() or the
C++ modules behind it.
Cheers and thanks,
On 2016-07-26 15:21, Iain Bradford Steers wrote:
> Hi Thomas,
> Check out the local param attribute and the remoteparam class.
> Cheers, Iain
> Sent from Nine <http://www.9folders.com/>
> *From:* Thomas Hartmann <thomas.hartmann@xxxxxxx>
> *Sent:* 26 Jul 2016 15:19
> *To:* htcondor-users@xxxxxxxxxxx
> *Subject:* [HTCondor-users] Python bindings: how to querying
> configuration values
> Hi all,
> I have another question regarding the python bindings:
> - is it possible to query config values with the python bindings?
> e.g., the kernel version
>> condor_config_val -name wn2-test.desy.de -master UTSNAME_RELEASE
> since it is a configuration value and no (master?) ClassAd(?), I cannot
> simply query it with something like
>> condorCollector.query(htcondor.AdTypes.Any, 'regexp("wn.*\.desy\.de",
> [[ MyType = "DaemonMaster"; Name = "wn2-test.desy.de" ], [..],...]
> So, I wonder, if the configuration values are available as ClassAds as
> well, so that I can query them?
> illustration what I intent:
> I have added some attributes to a node's master, e.g.,
> TargetKernel = 3.4.5
> TargetState = False
> MASTER_ATTRS = TargetKernel, TargetState, $(MASTERD_ATTRS)
> MASTER.SETTABLE_ATTRS_ADMINISTRATOR = TargetKernel, TargetState,
> which I can get/set via condor_config_val/condor_reconfig.
> So, I would like to do the same with the bindings - but since these are
> no ClassAds but attributes (probably I am mixing these up??), I have
> found no way to access them?
> Cheers and thanks,
> 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: