Hi all,
a quick question how the correct syntax is for directQuery() from the
Python bindings?
from the documentation
> directQuery( (Collector)arg1, (DaemonTypes)daemon_type, (str)name =
'', (list)projection = [], (str)statistics = '' )
I tried unsuccessful to get directly in touch with a startd
>
collector.directQuery(collector,htcondor.DaemonTypes.Startd,localStartdList[0],
projection=["Name"])
or
>
htcondor.Collector.directQuery(collector,htcondor.DaemonTypes.Startd,'slot1@xxxxxxxxxxxxxxxxx',
projection=["Name"]) # ??
where the used objects are
> collector = htcondor.Collector(collectorAddress)
> regexStr = "\\.".join(socket.gethostname().split('.'))
> localStartdList =
collector.query(htcondor.AdTypes.Startd,'regexp(".*%s", Name)' %
(regexStr), projection=["Name"])
> localStartdList[0]
[ Name = "slot1@xxxxxxxxxxxxxxxxx"; MyType = "Machine"; TargetType = "Job" ]
Maybe somebody has a hint for me?
Cheers,
Thomas
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature