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

Re: [Condor-users] condor node status



On 24/05/2012 01:52, Ben Cotton wrote:
You can use format arguments. For example:

[514 bcotton@condor-fe00 ~ ]$ condor_status
slot1@xxxxxxxxxxxxxxxxxxxxxxx -format "%s\n" State
Owner
[515 bcotton@condor-fe00 ~ ]$

Yes, true, but still doesn't give any definitive answer:

[root@serv07 ~]# condor_status farm001 -format "%s\n" State && echo $?
0

it just doesn't return anything at all for a "down" host and the exit-code is still the 0. Only "-direct" returns a different output:
[root@serv07 ~]# condor_status -direct farm001
Error: Failed to locate startd farm001.hep.phy.cam.ac.uk
Can't find address for startd farm001.hep.phy.cam.ac.uk