Bash script to send one GuineaPig++ onto the Grid
Before doing anything on the Grid be sure you have a valid proxy …
grid-proxy-init
To send Job onto the Grid you must give some Grid parameters:
lfc-mkdir /grid/ilc/TOTO
Ask the Grid User Support @ your lab. if you don’t know the anwser …
(or wget http://flc.web.lal.in2p3.fr/mdi/BBSIM/GPontoGrid/gp_grid_cfg.sh
also available here: http://dadoun.net/Informatique/Download/gp_grid_cfg.sh).
Change the file access control list: chmod +x gp_grid_cfg.sh.
Execute it on your User (grid) Interface (UI): ./gp_grid_cfg.sh .
It will create a launch_gp_grid.sh file with all the configuration variables you gave.
Now you can submit a GuineaPig++ job onto the grid, 3 arguments is needed:
(if the previous link don’t work try this one
the acc.dat you may need also this
file (.template) file to run
correctly the bash script)
With the acc.dat from above try like this:
./launch_gp_grid.sh acc.dat ILC LC-GENERAL
Here a typical echo from a LAL User Interface:
lx3/dadoun % ./launch_gp_grid.sh acc.dat ILC LC-GENERAL Selected Virtual Organisation name (from --vo option): ilc Connecting to host grid09.lal.in2p3.fr, port 7772 Logging to host grid09.lal.in2p3.fr, port 9002 ================================ edg-job-submit Success ===================================== The job has been successfully submitted to the Network Server. Use edg-job-status command to check job current status. Your job identifier (edg_jobId) is: - https://grid09.lal.in2p3.fr:9000/PbwVfqs2kEyzdg-t0Jj5SA The edg_jobId has been saved in the following file: /users/delphi/dadoun/Grid/GuineaPig++/GridGuineaPig++Package/out ============================================================================================= |
The GUID (Globally Unique Identifier, here https://grid09.lal.in2p3.fr:9000/PbwVfqs2kEyzdg-t0Jj5SA)
is save in the file out in your current directory
To have the status of your job:
lx3/dadoun % edg-job-status https://grid09.lal.in2p3.fr:9000/PbwVfqs2kEyzdg-t0Jj5SA ************************************************************* BOOKKEEPING INFORMATION: Status info for the Job : https://grid09.lal.in2p3.fr:9000/PbwVfqs2kEyzdg-t0Jj5SA Current Status: Done (Success) Exit code: 0 Status Reason: Job terminated successfully Destination: dgc-grid-44.brunel.ac.uk:2119/jobmanager-lcgpbs-ilc reached on: Tue Nov 28 11:58:53 2006 ************************************************************* |
Check your job is ok :
Current Status: Done (Success) Exit code: 0
Check the gp_tarball.tar.gz is on your SE folder:
lfc-ls lfn:YOUR_SE_FOLDER
To copy it locally:
lcg-lg –vo YOUR_VO lfn:YOUR_SE_FOLDER
it return the GUID
lcg-cp –vo YOUR_VO GUID file:`pwd`/gp_tarball.tar.gz
and tar xvfz gp_tarball.tar.gz …
That’s all !
Tags: guineapig lcg