On Sun, May 24, 2009 at 11:34 PM, Cihan Altinay <[email protected]> wrote:
>
> we are setting up a web portal which allows users to submit jobs and
> retrieve results using WS-GRAM. I was wondering if there is a way to
> obtain PBS statistics such as CPU time and memory usage of a submitted
> job through GRAM?
I don't know, so I've cc'd the gram-user mailing list.
> Alternatively, is it possible to get the PBS job ID to use PBS tools for
> this task?
Yes. Assuming GRAM audit is enabled at the resource, you can query
the GRAM audit database to obtain the local_job_id (which is what the
PBS job ID is called in the gram_audit_table): For example, using the
GRAM Audit Tools, here's how you obtain the local_job_id given a
particular job_grid_id (GJID):
$ $GRIDSHIB_HOME/bin/get-audit-record --debug \
--GJID $GJID | grep local_job_id
http://globus.org/names/attribute/gram/audit_v1/local_job_id 12345
The output is a name-value pair for the "attribute" local_job_id.
The GRAM Audit Tools include a Java API to build your own if the
provided tools (such get-audit-record) don't do what you want.
Hope this helps,
Tom