JSAGA Use Command Line on EGEE

STEPS by STEPS procedure to access the grid from a notebook using just the command line

Configuration

  • Ask and install a personal certificate: How to request a certificate, Install certificates
  • Download and install the last version of JSAGA
  • Download and uncompress the certificates certificates.zip (*.0 files) in ~/.globus/certificates
  • Modify your PATH, add the JSAGA_HOME variable and modify the configuration file $JSAGA_HOME/etc/jsaga-universe.xml with the parameters of the VO you want to access
$ JSAGA_HOME=~/JSAGA export JSAGA_HOME
$ PATH=$JSAGA_HOME/bin:$PATH export PATH
 $ cat $JSAGA_HOME/etc/jsaga-universe.xml
 <?xml version="1.0" encoding="UTF-8"?>
    <UNIVERSE name="World" xmlns="http://www.in2p3.fr/jsaga">
       <GRID contextType="VOMS">
           <attribute name="Server" value="voms://grid12.lal.in2p3.fr:20013/O=GRID-FR/C=FR/O=CNRS/OU=LAL/CN=grid12.lal.in2p3.fr"/>
           <attribute name="UserVO" value="vo.iscpif.fr"/>
           <attribute name="UserCert" value="/home/camilo/.globus/usercert.pem"/>
           <attribute name="UserKey" value="/home/camilo/.globus/userkey.pem"/>
           <attribute name="VomsDir" value="etc/vomsdir"/>
       </GRID>
       <GRID contextType="MyProxy" deactivated="true">
          <attribute name="Server" value="cclcgproxli01.in2p3.fr:7512"/>
       </GRID>
    </UNIVERSE>

Download the BDIIquerry here: BDII.jar, and execute:

$ java -jar ./BDII.jar --vo vo.iscpif.fr --ldap ldap://topbdii.grif.fr:2170

WMS for virtual organization: vo.iscpif.fr ldap server: ldap://topbdii.grif.fr:2170
https://grid25.lal.in2p3.fr:7443/glite_wms_wmproxy_server
https://node04.datagrid.cea.fr:7443/glite_wms_wmproxy_server
https://node27.datagrid.cea.fr:7443/glite_wms_wmproxy_server
https://grid07.lal.in2p3.fr:7443/glite_wms_wmproxy_server

Then you can use these wms in the jsaga-job-run.sh command.

Example how use JSAGA and launch jobs on the grid EGEE

$ jsaga-context-init.sh VOMS
Enter UserPass for security context: VOMS
Insert password <PASSWORD>

Launching jobs

$ jsaga-job-run.sh -WorkingDirectory /home/camilo/Desktop/jsaga/ -Output output.txt -Error error.txt -b  -Executable /bin/date -r wms://grid25.lal.in2p3.fr:7443/glite_wms_wmproxy_server

Checking Status

$ jsaga-job-status.sh [wms://grid25.lal.in2p3.fr:7443/glite_wms_wmproxy_server]-https://grid09.lal.in2p3.fr:9000/7yLgK4seSkS4ZacNN46tjw]
Job is running.

$ jsaga-job-status.sh [wms://grid25.lal.in2p3.fr:7443/glite_wms_wmproxy_server]-[https://grid09.lal.in2p3.fr:9000/Sr3qe9_1nRuQ803BWWxLMQ]]
Job done.

Retrieve Output

$ jsaga-job-get-output_WMS.sh [wms://grid25.lal.in2p3.fr:7443/glite_wms_wmproxy_server]-https://grid09.lal.in2p3.fr:9000/Sr3qe9_1nRuQ803BWWxLMQ]
2009-10-20 17:26:14,804  INFO fr.in2p3.jsaga.adaptor.wms.job.WMSJobControlAdaptor : Downloading output: gsiftp://grid25.lal.in2p3.fr:2811/var/glite/SandboxDir/Sr/https_3a_2f_2fgrid09.lal.in2p3.fr_3a9000_2fSr3qe9_5f1nRuQ803BWWxLMQ/output/output.txt
2009-10-20 17:26:16,444  INFO fr.in2p3.jsaga.adaptor.wms.job.WMSJobControlAdaptor : Downloading output: gsiftp://grid25.lal.in2p3.fr:2811/var/glite/SandboxDir/Sr/https_3a_2f_2fgrid09.lal.in2p3.fr_3a9000_2fSr3qe9_5f1nRuQ803BWWxLMQ/output/error.txt
Job output have been retrieved successfully

$ cat output.txt
Tue Oct 20 16:25:47 CEST 2009

File Management

PLEASE DO NOT DELETE FILES OF PARTNERS!

$ jsaga-mkdir.sh srm://grid05.lal.in2p3.fr/dpm/lal.in2p3.fr/home/vo.iscpif.fr/temp/test

$ jsaga-cp.sh file:///home/camilo/Desktop/jsaga/test.sh srm://grid05.lal.in2p3.fr/dpm/lal.in2p3.fr/home/vo.iscpif.fr/temp/test/
$ jsaga-ls.sh srm://grid05.lal.in2p3.fr/dpm/lal.in2p3.fr/home/vo.iscpif.fr/temp/test/
test.sh
$ jsaga-cp.sh -m srm://grid05.lal.in2p3.fr/dpm/lal.in2p3.fr/home/vo.iscpif.fr/temp/test/test.sh file:///home/camilo/Desktop/jsaga/
Progress: 79 bytes
File successfully copied !
$ jsaga-rm.sh srm://grid05.lal.in2p3.fr/dpm/lal.in2p3.fr/home/vo.iscpif.fr/temp/test /test.sh

BDII.jar - BDIIquerry: It ask for the WMS of your vo (7.17 KB) Melani Camilo, 11/02/2009 11:47 AM

BDII_src.tar.gz - BDIIquerry source (3.8 KB) Melani Camilo, 11/02/2009 11:51 AM

certificates.zip - Grid Certificates (121 KB) Melani Camilo, 11/02/2009 02:50 PM