Using the Grid/Job output

From BiGGrid Wiki
Jump to navigation Jump to search
  • Problem: you want to get the output of your job.
  • Solution: Use glite-wms-job-output
  • First: Your job must be succesfully completed. See in "Job status" how to check the status of your jobs.

When your job has been succesfully completed, the result can be retrieved by the command:

glite-wms-job-output <JobID>
example:  glite-wms-job-output  https://wms.grid.sara.nl:9000/1QubWarBs8gX86X_QkL

You don't need to specify a delegation identifier.

mgjansen$ glite-wms-job-output -i myjobs
------------------------------------------------------------------
1 : https://wms.grid.sara.nl:9000/DMx2JLLbkV6DofzRLG_sow
2 : https://wms.grid.sara.nl:9000/TuubaTab7s6ehol9OTcO1g
a : all
q : quit
------------------------------------------------------------------

Choose one or more jobId(s) in the list - [1-2]all (use , as separator or - for a range): 1

Connecting to the service https:///wms.grid.sara.nl:7443/glite_wms_wmproxy_server


================================================================================

                        JOB GET OUTPUT OUTCOME

Output sandbox files for the job:
https:///wms.grid.sara.nl:9000/DMx2JLLbkV6DofzRLG_sow
have been successfully retrieved and stored in the directory:
/tmp/glite/glite-ui/mgjansen_DMx2JLLbkV6DofzRLG_sow

================================================================================

In order to inspect the job output, list the files in the indicated directory and show the content of the output file(s).

mgjansen$ cd /tmp/glite/glite-ui/mgjansen_DMx2JLLbkV6DofzRLG_sow
mgjansen$ ls -l
total 4
-rw-r--r--    1 budapest31 users           0 Sep 27 21:25 hostname.err
-rw-r--r--    1 budapest31 users          19 Sep 27 21:25 hostname.out
mgjansen$ cat hostname.out
wn01wur.els.sara.nl

The output directory can be choosen by the user by the --dir option:

mgjansen$ glite-wms-job-output --dir ./op2 -i myjobs
------------------------------------------------------------------
1 : https:///wms.grid.sara.nl:9000/DMx2JLLbkV6DofzRLG_sow
2 : https:///wms.grid.sara.nl:9000/TuubaTab7s6ehol9OTcO1g
a : all
q : quit
------------------------------------------------------------------

Choose one or more jobId(s) in the list - [1-2]all (use , as separator or - for a range): 2

Connecting to the service https:///wms.grid.sara.nl:7443/glite_wms_wmproxy_server


================================================================================

                        JOB GET OUTPUT OUTCOME

Output sandbox files for the job:
https:///wms.grid.sara.nl:9000/TuubaTab7s6ehol9OTcO1g
have been successfully retrieved and stored in the directory:
/home/mgjansen/op2

================================================================================