Is there a way to find out where a completed job that was submitted
under PBS was invoked from? I can use qstat -f on running jobs, and it
does tell me the error and output paths, so I know that PBS knows this
information at the time of running a job.
I have found the tracejob command, but it only searches through the
server_logs directory for the job id. It seems that the logs in
server_logs do not keep this directory information. Is it kept anywhere
else? Is there a way I can get the directory information into the
server logs?
Thank you for your help!
David
--
David Shrader
Research Assistant
Computational Materials Group
Materials Science Program
University of Wisconsin - Madison
email: dshr...@wisc.edu
web: http://matmodel.engr.wisc.edu/
You need to be root to get to the right logs. It is the accounting log
in /opt/torque/server_priv/accounting/ that contains this information. If you
do not want to open up read access to this path for the users you can make
tracejob setuid root.
r.
--
The Computer Center, University of Tromsø, N-9037 TROMSØ Norway.
phone:+47 77 64 41 07, fax:+47 77 64 41 00
Roy Dragseth, Team Leader, High Performance Computing
Direct call: +47 77 64 62 56. email: ro...@cc.uit.no
Does anyone know where PBS keeps track of the variable PBS_O_WORKDIR
after a job completes, if it does at all? The PBS documentation on
clusteresrouces.com does not have the answer. From what I do find
there, I think that PBS/torque doesn't keep that information, which is
very strange to me. SGE did.
Again, thank you for the help!
David
Roy Dragseth wrote the following on 03/28/2008 04:55 AM:
> On Thursday 27 March 2008, David Shrader wrote:
>> Hello All,
>>
>> Is there a way to find out where a completed job that was submitted
>> under PBS was invoked from? I can use qstat -f on running jobs, and it
>> does tell me the error and output paths, so I know that PBS knows this
>> information at the time of running a job.
>>
>> I have found the tracejob command, but it only searches through the
>> server_logs directory for the job id. It seems that the logs in
>> server_logs do not keep this directory information. Is it kept anywhere
>> else? Is there a way I can get the directory information into the
>> server logs?
>>
>> Thank you for your help!
>> David
>
> You need to be root to get to the right logs. It is the accounting log
> in /opt/torque/server_priv/accounting/ that contains this information. If you
> do not want to open up read access to this path for the users you can make
> tracejob setuid root.
>
> r.
>
--
You are right, PBS does not keep this information after the job is finished.
You can of course save this yourself for running jobs in a relatively simple
shell script:
ls /opt/torque/server_priv/jobs/*.JB | xargs -i printjob {} | grep -e jobid -e
PBS_O_WORKDIR
r.
Bart