Hi Tom,

Tom Scavo wrote:
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.

Thanks for that. I will have to ask the HPC manager if Gram audit is enabled and accessible.

Cheers,
Cihan

Reply via email to