Project

General

Profile

Quick How To Guide for JobSub Client

NOTE: This quick guide for expert users only and does not give details.

The following example should work for any FNAL employee:

kinit
jobsub_submit --resource-provides=usage_model=OPPORTUNISTIC --OS=SL5,SL6 --group=fermilab file:///usr/bin/id
jobsub_q --group=fermilab --jobid=75641.0@fifebatch1.fnal.gov
jobsub_history --group=fermilab
jobsub_fetchlog --group=fermilab --jobid=75641.0@fifebatch1.fnal.gov

Here is the successful output of those commands

<novagpvm01.fnal.gov> jobsub_submit --resource-provides=usage_model=OPPORTUNISTIC --OS=SL5,SL6 --group=fermilab file:///usr/bin/id
Server response code: 200
Response OUTPUT:
/fife/local/scratch/uploads/fermilab/gerard1/2014-09-18_154743.783960_9571

/fife/local/scratch/uploads/fermilab/gerard1/2014-09-18_154743.783960_9571/id_20140918_154744_16633_0_1.cmd

submitting....

Submitting job(s).

1 job(s) submitted to cluster 75641.

JobsubJobId of first job: 75641.0@fifebatch1.fnal.gov

Use job id 75641.0@fifebatch1.fnal.gov to retrieve output

Remote Submission Processing Time: 0.442955970764 sec
<novagpvm01.fnal.gov> jobsub_q --group=fermilab --jobid=75641.0@fifebatch1.fnal.gov
Server response code: 200
Response OUTPUT:
75641.0@fifebatch1.fnal.gov    gerard1    09/18    15:47    0+00:00:00    I    0    0.0    id_20140918_154744_16633_0_1_wrap.sh
Remote Listing Processing Time: 0.719716072083 sec
<novagpvm01.fnal.gov> 
<novagpvm01.fnal.gov> jobsub_history.py --group=fermilab | grep 75641.0@fifebatch1.fnal.gov
75641.0@fifebatch1.fnal.gov    gerard1    09/18    15:47    0+00:00:00    C    0    0.0    id_20140918_154744_16633_0_1_wrap.sh
<novagpvm01.fnal.gov> 
<novagpvm01.fnal.gov> jobsub_fetchlog --group=fermilab --jobid=75641.0@fifebatch1.fnal.gov

CREDENTIALS    : {'key': '/tmp/jobsub_x509up_u47331', 'env_key': '/tmp/jobsub_x509up_u47331', 'cert': '/tmp/jobsub_x509up_u47331', 'env_cert': '/tmp/jobsub_x509up_u47331'}

SUBMIT_URL     : https://fifebatch1.fnal.gov:8443/jobsub/acctgroups/fermilab/jobs/75641.0@fifebatch1.fnal.gov/sandbox/

Downloaded to 75641.0@fifebatch1.fnal.gov.tgz
Remote Submission Processing Time: 0.393342971802 sec
<novagpvm01.fnal.gov> 
<novagpvm01.fnal.gov> tar -xvf 75641.0@fifebatch1.fnal.gov.tgz
id
id_20140918_154744_16633_0_1.cmd
id_20140918_154744_16633_0_1_wrap.sh
id_20140918_154744_16633_0_1.log
id_20140918_154744_16633_0_1.out
id_20140918_154744_16633_0_1.err
<novagpvm01.fnal.gov> cat id_20140918_154744_16633_0_1.out 
uid=49635(fermiana) gid=9767(fnalgrid) groups=9767(fnalgrid),4294957320(glexec25)