Am 24.04.2014 um 10:29 schrieb Fritz Ferstl:

> And here is something even more straight forward, Tim:
> 
> qhost -j -xml | grep qinstance | grep <your_job_ID>
> 
> This gives you a single line looking like this
> 
>    <jobvalue jobid='88' name='qinstance_name'>[email protected]</jobvalue>
> 
> If you add an sed command as follows then you even get the hostname directly:
> 
> qhost -j -xml | grep qinstance | grep <your_job_ID>  | sed 
> "s%^.*@\([^<]*\)<.*%\1%"
> 
> In "qhost -j" (without the -xml) the length of the hostname field is limited 
> to 21 characters. So even that might be enough.

What about the output of `qstat -r -s r` for the "Master Queue:" - AFAICS this 
is unlimited.

-- Reuti



> Cheers,
> 
> Fritz
> 
> 
> Fritz Ferstl schrieb:
>> Tim,
>> 
>> the XML output returned with -xml (e.g. in addition to 'qstat -u ...') will 
>> contain the un-truncated data. Should be easy to parse it out.
>> 
>> But indeed ... it should be much easier to get this info.
>> 
>> Cheers,
>> 
>> Fritz
>> 
>> Tim Landscheidt schrieb:
>>> Ian Kaufman <[email protected]>
>>>  wrote:
>>> 
>>> 
>>>> When I run qstat -u \*, each job references the specific node it is
>>>> running on. So, if you know the jobnum, I would just use "qstat -u \*
>>>> | grep jobnum".
>>>> 
>>> 
>>>> [...]
>>>> 
>>> 
>>> It does, but it truncates queue + host to 30 characters for
>>> me:
>>> 
>>> | tools.wikilint@tools-login:~$ qstat
>>> | job-ID  prior   name       user         state submit/start at     queue   
>>>                        slots ja-task-ID
>>> | 
>>> -----------------------------------------------------------------------------------------------------------------
>>> |    1897 0.73198 lighttpd-w tools.wikili Rr    04/16/2014 19:28:13 
>>> webgrid-lighttpd@tools-webgrid     1
>>> | tools.wikilint@tools-login:~$
>>> 
>>> So I can't see from that whether the job is running on
>>> tools-webgrid-01 or tools-webgrid-02.
>>> 
>>> Tim
>>> 
>>> _______________________________________________
>>> users mailing list
>>> 
>>> [email protected]
>>> https://gridengine.org/mailman/listinfo/users
>> 
>> -- 
>> <image.png>Fritz Ferstl | CTO and Business Development, EMEA
>> Univa Corporation | The Data Center Optimization Company
>> E-Mail: [email protected] | Mobile: +49.170.819.7390
>> 
>> <image.png>
>> 
>> 
>> 
> 
> -- 
> <Grafik1.png>Fritz Ferstl | CTO and Business Development, EMEA
> Univa Corporation | The Data Center Optimization Company
> E-Mail: [email protected] | Mobile: +49.170.819.7390
> 
> <Where Grid Engine lives.png>
> 
> 
> 
> _______________________________________________
> users mailing list
> [email protected]
> https://gridengine.org/mailman/listinfo/users


_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to