On May 25, 2009, at May 25, 10:06 AM, Tom Scavo wrote:

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.

No. GRAM does not gather this information from the local resource managers (e.g. pbs) and make it available directly via GRAM. But, TeraGrid is using OGSA-DAI to create a virtual DB on top of gram auditing DB and TeraGrid's central DB (TGCDB).

Here is a paper on that:
        
http://www.globus.org/alliance/publications/papers/TG_GRAM_Auditing_and_LEAD_Gateway.pdf


Alternatively, is it possible to get the PBS job ID to use PBS tools for
this task?

The "localJobId" was added as a resource property in GT 4.2.
        
http://www.globus.org/toolkit/docs/4.2/4.2.0/execution/gram4/developer/gram4-wsdl.html#gram4-rps-mejpt

But this was not available in ws gram in GT 4.0.



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

Reply via email to