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

Re: [Condor-users] how to find a host name

induru hemanth <induruhemanth@xxxxxxxxx> wrote:
>          How can I find the hostname and  slot number particular to job
> through command line,

Are you looking for the job itself to learn the hostname and slot
number?  The easiest solution is to pass the information into the
job's command line.  Something like this in your submit file:

arguments= --slot=$$(SlotID) --machine=$$(Machine)

You can get any attribute in the startd's ClassAd, see
"condor_status -l HOSTNAME" (where HOSTNAME is representative
machine in your pool) to drown in possibilities.

Alan De Smet                              Condor Project Research
adesmet@xxxxxxxxxxx                http://www.cs.wisc.edu/condor/