INFSO-RI-508833 Enabling Grids for E-sciencE www.eu-egee.org GILDA Praticals GILDA Tutors INFN Catania 4th EGEE Conference Pisa 23.October.2005.

Slides:



Advertisements
Similar presentations
Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.
Advertisements

EGEE-II INFSO-RI Enabling Grids for E-sciencE EGEE Tutorial Getting started with GILDA.
Hands-on on Information System Antonio Fuentes Bermejo Oviedo, 20 de Noviembre de 2006.
GLite authentication and authorization Discipline: Grid Computing, 07/08-2 Practical classes Inês Dutra, DCC/FCUP.
Hands-on on Information System Antonio Fuentes Bermejo Oviedo, 20 de Noviembre de 2006.
INFSO-RI Enabling Grids for E-sciencE Practicals on VOMS and MyProxy Emidio Giorgio INFN Retreat between GILDA and ESR VO, Bratislava,
The Information service Alessandro Costa INAF Catania Corso di Calcolo Parallelo Grid Computing Catania - ITALY September 2006.
Fourth EELA Tutorial for Managers and Users E-infrastructure shared between Europe and Latin America Hands-on on Information System (R-GMA)
INFSO-RI Enabling Grids for E-sciencE Information System : a detailed overview Giuseppe La Rocca INFN – Catania ICTP/INFM-Democritos.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America Luciano Díaz ICN-UNAM Based on Domenico.
EGEE-II INFSO-RI Enabling Grids for E-sciencE EGEE Middleware: gLite Information Systems (IS) EGEE Tutorial 23 rd APAN Meeting,
INFSO-RI Enabling Grids for E-sciencE Information System Valeria Ardizzone INFN Singapore, 1st South East Asia Forum -- EGEE tutorial.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America Information System (IS) Valeria Ardizzone.
INFSO-RI Enabling Grids for E-sciencE GILDA Praticals GILDA Tutors INFN Catania ICTP/INFM-Democritos Workshop on Porting Scientific.
EGEE-II INFSO-RI Enabling Grids for E-sciencE EGEE and gLite are registered trademarks Information System on gLite middleware Vincent.
E-science grid facility for Europe and Latin America E2GRIS1 Raúl Priego Martínez – CETA-CIEMAT (Spain)‏ Itacuruça (Brazil), 2-15 November.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America MyProxy server installation Emidio Giorgio.
LCG Information and Monitoring System Jason Shih WLCG T2 Asia Workshop Dec 2, 2006: TIFR.
E-infrastructure shared between Europe and Latin America Security Hands-on Christian Grunfeld, UNLP 8th EELA Tutorial, La Plata, 11/12-12/12,2006.
INFSO-RI Enabling Grids for E-sciencE GILDA Practicals : Security systems GILDA Tutors Singapore, 1st South East Asia Forum -- EGEE.
E-infrastructure shared between Europe and Latin America FP6−2004−Infrastructures−6-SSA Hands-on on security Pedro Rausch IF - UFRJ.
Jan 31, 2006 SEE-GRID Nis Training Session Hands-on V: Standard Grid Usage Dušan Vudragović SCL and ATLAS group Institute of Physics, Belgrade.
INFSO-RI Enabling Grids for E-sciencE BDII installation & configuration Giuseppe Platania INFN Catania EMBRACE Tutorial Clermont-Ferrand,
gLite Information System UNIANDES OOD Team Daniel Alberto Burbano Sefair, Michael Angel.
Hands-on security Angelines Alberto Morillas Ciemat.
EGEE is a project funded by the European Union under contract IST Grid proxy and MyProxy Roberto Barbera Univ. of Catania and INFN SEE-GRID.
4th EELA TUTORIAL - USERS AND SYSTEM ADMINISTRATORS E-infrastructure shared between Europe and Latin America Security Hands-on Vanessa.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America Practicals on Security Miguel Cárdenas Montes.
E-infrastructure shared between Europe and Latin America Security Hands-on Alexandre Duarte CERN Fifth EELA Tutorial Santiago, 06/09-07/09,2006.
EGEE-II INFSO-RI Enabling Grids for E-sciencE MyProxy - a brief introduction.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America Practicals on Security – Infosys -- WMS.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America Moisés Hernández Duarte UNAM FES Cuautitlán.
EGEE-II INFSO-RI Enabling Grids for E-sciencE Practical: The Information Systems.
INFSO-RI Enabling Grids for E-sciencE GILDA Praticals Giuseppe La Rocca INFN – Catania gLite Tutorial at the EGEE User Forum CERN.
INFSO-RI Enabling Grids for E-sciencE - II SLCS, VASH, and LCAS/LCMAPS Plugins All-Hands Meeting Helsinki Placi Flury, SWITCH 19.
INFSO-RI Enabling Grids for E-sciencE VOMS & MyProxy interaction Emidio Giorgio INFN NA4 Generic Applications Meeting 10 January.
Enabling Grids for E-sciencE Sofia, 17 March 2009 INFSO-RI Introduction to Grid Computing, EGEE and Bulgarian Grid Initiatives –
EGEE-II INFSO-RI Enabling Grids for E-sciencE Practical using R-GMA.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America R-GMA Practicals Claudio Cherubino INFN.
LCG Information and Monitoring System Jason Shih ASGC Grid Administrator Tutorial March 15-16, Academia Sinica.
Hands-on security Carlos Fuentes RedIRIS Madrid,26 – 30 de Octubre de 2008.
Hands on Security, Authentication and Authorization Virginia Martín-Rubio Pascual RedIRIS/Red.es Curso Grid y e-Ciencia.
EGI-InSPIRE RI Grid Training for Power Users EGI-InSPIRE N G I A E G I S Grid Training for Power Users Institute of Physics Belgrade.
Tutorial on "GRID Computing“ EMBnet Conference 2008 CNR - ITB Authenticated Grid access with robot certificates Giuseppe LA ROCCA INFN.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) 马兰馨 IHEP, CAS Hands on gLite Security.
Enabling Grids for E-sciencE gLite security pratical tutorial Dario Russo INFN Catania Catania,
INFSO-RI Enabling Grids for E-sciencE GILDA t-Infrastructure Antonio Fuentes Bermejo
First South Africa Grid Training June 2008, Catania (Italy) GILDA t-Infrastructure Valeria Ardizzone INFN Catania.
EGEE-III INFSO-RI Enabling Grids for E-sciencE EGEE and gLite are registered trademarks BDII Server Installation & Configuration.
EGEE is a project funded by the European Union under contract IST Job Submission Giuseppe La Rocca EGEE NA4 Generic Applications INFN Catania.
EGEE is a project funded by the European Union under contract IST Grid proxy and MyProxy Giuseppe La Rocca EGEE NA4 Generic Applications GENIUS/GILDA.
INFSO-RI Enabling Grids for E-sciencE Information System Giuseppe La Rocca Valeria Ardizzone INFN Catania 4th EGEE Conference Pisa.
Practicals on gLite Information Systems
gLite Information System
R-GMA Command Line Tool
The Information System
Information System: Hands On
Hands-on on R-GMA Tony Calanducci INFN Catania
MyProxy Server Installation
Practicals on VOMS and MyProxy
gLite 1.4. Data Mangement Exercises
lcg-infosites documentation (v2.1, LCG2.3.1) 10/03/05
Practicals on R-GMA Valeria Ardizzone INFN
Practicals on gLite Information System
Hands-on on Information System
gLite Information System Practicals
Certificates Usage and Simple Job Submission
Certificates Usage and Simple Job Submission
Certificates Usage and Simple Job Submission
Hands-on on the gLite Information System
Presentation transcript:

INFSO-RI Enabling Grids for E-sciencE GILDA Praticals GILDA Tutors INFN Catania 4th EGEE Conference Pisa 23.October.2005

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October How access the GILDA User Interface Login : where XX=01,..,30 Passwd : GridPISXX XX=01,..,30 PEM PASSPHRASE : PISA

INFSO-RI Enabling Grids for E-sciencE Practicals on VOMS and MyProxy Emidio Giorgio INFN Pisa, EGEE 4th Conference Training Day,

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Outline VOMS proxy creation MyProxy Usage

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Preliminary :.globus directory.globus directory contains your personal public / private keys ls –l $HOME/.globus Pay attention to permissions !

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October VOMS proxy creation voms-proxy-init --voms gildav Your identity: /C=IT/O=GILDA/OU=Personal Certificate/L=INFN/CN=Emidio Enter GRID pass phrase for this identity: [insert your certificate passphrase] Creating temporary proxy Done /C=IT/O=INFN/OU=Host/L=CNAF/CN=cert-voms- 01.cnaf.infn.it /C=IT/O=INFN/CN=INFN Certification Authority Creating proxy Done Your proxy is valid until Mon Jun 13 09:06:

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October voms-proxy-init : options Principal options -voms  command syntax is :/ /group for group specify (default none)  command syntax is :/ /Role= for Role choice (default none) -valid x:y, create a proxy valid for x hours and y minutes -vomslife x, create a proxy with AC valid for x hours (max 24 h) -cert Non-standard location of user certificate -key Non-standard location of user key -out Non-standard location of new proxy cert -userconf Non-standard location for user-defined voms server addresses Default location for voms server address file is /opt/glite/etc/vomses or ~/.glite/vomses. Syntax “vo-nickname" “voms server FQDN" “port“ \ “voms server certificate subject" “vo name“ These parameters are usually provided by VO manager

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Verify your credentials voms-proxy-info Principal options : -all prints all proxy options -file specifies a different location of proxy file Exercise : create a voms proxy specifying your group membership (by default all of you belong to generic- users group)

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Verify obtained credentials voms-proxy-info --all subject : /C=IT/O=GILDA/OU=Personal Certificate/L=INFN/CN=Emidio issuer : /C=IT/O=GILDA/OU=Personal Certificate/L=INFN/CN=Emidio identity : /C=IT/O=GILDA/OU=Personal Certificate/L=INFN/CN=Emidio type : proxy strength : 512 bits path : /tmp/x509up_u513 timeleft : 20:59:53 VO : gildav subject : /C=IT/O=GILDA/OU=Personal Certificate/L=INFN/CN=Emidio issuer : /C=IT/O=INFN/OU=Host/L=CNAF/CN=cert-voms- 01.cnaf.infn.it attribute : /gildav/Role=NULL/Capability=NULL timeleft : 20:58:28

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Long term proxy : MyProxy myproxy server: –myproxy-init  Allows to create and store a long term proxy certificate: –myproxy-info  Get information about stored long living proxy –myproxy-get-delegation  Get a new proxy from the MyProxy server –myproxy-destroy –Check out the myproxy-xxx -- help option A dedicated service on the RB can renew automatically the proxy –contacting the myproxy server File Transfer Services in gLite validates user request contacting myproxy server

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October myproxy-init myproxy-init -s grid001.ct.infn.it Your identity: /C=IT/O=GILDA/OU=Personal Certificate/L=INFN/CN=Emidio Enter GRID pass phrase for this identity: Creating proxy Done Proxy Verify OK Your proxy is valid until: Sun Jun 19 21:18: Enter MyProxy pass phrase: Verifying password - Enter MyProxy pass phrase: A proxy valid for 168 hours (7.0 days) for user giorgio now exists on grid001.ct.infn.it. Principal options -c hours specifies lifetime of the stored credential -t hours specifies the maximum lifetime of credentials when retrieved -s specifies the myproxy server where to store credentials -d stores credential with the distinguished name in proxy, instead of user name (mandatory for some data management services and proxy renewal) For proxy renewal it’s also mandatory –n (no passphrase). You’ve to specify also subject of principals that can renew a delegation (-R subject, -A for any principal)

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October myproxy-info Useful to retrieve info on stored credentials If credentials have been initialized with –d switch, you have also to specify it there myproxy-info -s grid001.ct.infn.it username: giorgio owner: /C=IT/O=GILDA/OU=Personal Certificate/L=INFN/CN=Emidio timeleft: 167:55:34 (7.0 days)

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October myproxy-get-delegation This command is used to retrieve a delegation from a long lived proxy stored on myproxy server It is independent by the machine ! You don’t need to have your certificate on board If credentials have been initialized with –d switch, you have to specify it also in myproxy-get-delegation request myproxy-get-delegation -s grid001.ct.infn.it Enter MyProxy pass phrase: A proxy has been received for user giorgio in /tmp/x509up_u513

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October myproxy-destroy Delete, if existing, the long lived credentials on the specified myproxy server [glite-tutor] /home/giorgio > myproxy-destroy -s grid001.ct.infn.it Default MyProxy credential for user giorgio was successfully removed.

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Exercise Create a myproxy on the server grid001.ct.infn.it Visualize information on that Create a myproxy with –d option Which differences you note ? Destroy both

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Questions…

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Explore the GILDA Testbed Giuseppe La Rocca

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October How to query the IS? In order to query directly the IS elements two higher level tools are presented. lcg-infositeslcg-info These tools should be enough for most common user needs and will usually avoid the necessary of raw LDAP queries.

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October lcg-infosites The lcg-infosites command can be used as an easy way to retrieve information on Grid resources for the most use cases. USAGE: lcg-infosites --vo options -v --is

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October lcg-infosites options

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Exercise 1 Obtaining information about CE

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Obtaining information about CE $ lcg-infosites --vo gilda ce These are the related data for gilda: (in terms of queues and CPUs) **************************************************************** #CPU Free Total Jobs Running Waiting ComputingElement cn01.be.itu.edu.tr:2119/jobmanager-lcglsf-long cn01.be.itu.edu.tr:2119/jobmanager-lcglsf-short grid010.ct.infn.it:2119/jobmanager-lcgpbs-long grid011f.cnaf.infn.it:2119/jobmanager-lcgpbs-long grid006.cecalc.ula.ve:2119/jobmanager-lcgpbs-log [..] $ lcg-infosites --vo gilda ce **************************************************************** These are the related data for gilda: (in terms of queues and CPUs) **************************************************************** #CPU Free Total Jobs Running Waiting ComputingElement cn01.be.itu.edu.tr:2119/jobmanager-lcglsf-long cn01.be.itu.edu.tr:2119/jobmanager-lcglsf-short grid010.ct.infn.it:2119/jobmanager-lcgpbs-long grid011f.cnaf.infn.it:2119/jobmanager-lcgpbs-long grid006.cecalc.ula.ve:2119/jobmanager-lcgpbs-log [..]

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Exercise 2 Obtaining information about SE

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Obtaining information about SE $ lcg-infosites --vo gilda se ************************************************************** These are the related data for gilda: (in terms of SE) ************************************************************** Avail Space(Kb) Used Space(Kb) Type SEs disk cn02.be.itu.edu.tr disk grid009.ct.infn.it disk grid003.cecalc.ula.ve disk gildase.oact.inaf.it disk testbed005.cnaf.infn.it disk gilda-se-01.pd.infn.it disk cna03.cna.unicamp.br disk grid-se.bio.dist.unige.it

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Exercise 3 Listing the closeSE

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Listing the close Storage Elements $ lcg-infosites --vo gilda closeSE Name of the CE: cn01.be.itu.edu.tr:2119/jobmanager-lcglsf-long Name of the close SE: cn02.be.itu.edu.tr Name of the CE: cn01.be.itu.edu.tr:2119/jobmanager-lcglsf-short Name of the close SE: cn02.be.itu.edu.tr Name of the CE: grid010.ct.infn.it:2119/jobmanager-lcgpbs-long Name of the close SE: grid009.ct.infn.it Name of the CE: grid011f.cnaf.infn.it:2119/jobmanager-lcgpbs-long Name of the close SE: testbed005.cnaf.infn.it

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Exercise 4 Listing tag of installed software

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Listing tags of installed software $ lcg-infosites --vo gilda tag ************************************************************************** Information for gilda relative to their software tags included in each CE ************************************************************************** Name of the TAG: VO-gilda-GEANT Name of the TAG: VO-gilda-GKS05 Name of the CE:cn01.be.itu.edu.tr Name of the TAG: VO-gilda-slc3_ia32_gcc323 Name of the TAG: VO-gilda-CMKIN_5_1_1 Name of the TAG: VO-gilda-GEANT Name of the TAG: VO-gilda-GKS05 Name of the CE:grid010.ct.infn.it [..]

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October lcg-info intro This command can be used to list either CEs or the SEs that satisfy a given set of conditions, and to print the values of a given set of attributes. The information is taken from the BDII specified by the LCG_GFAL_INFOSYS environment variable. The query syntax is like this: attr1 op1 valueN,... attrN opN valueN where attrN is an attribute name op is =, >= or <=, and the cuts are ANDed. The cuts are comma-separated and spaces are not allowed.

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October USAGE lcg-info --list-ce [--bdii bdii] [--vo vo] [--sed] [--query query] [--attrs list] lcg-info --list-se [--bdii bdii] [--vo vo] [--sed] [--query query] [--attrs list] lcg-info --list-attrs lcg-info --help lcg-info usage

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October lcg-info options

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Exercise 5 Get the list of supported attributes

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Get the list of supported attributes $ lcg-info --list-attrs Attribute name Glue object class Glue attribute name MaxTime GlueCE GlueCEPolicyMaxWallClockTime CEStatus GlueCE GlueCEStateStatus TotalJobs GlueCE GlueCEStateTotalJobs CEVOs GlueCE GlueCEAccessControlBaseRule TotalCPUs GlueCE GlueCEInfoTotalCPUs FreeCPUs GlueCE GlueCEStateFreeCPUs CE GlueCE GlueCEUniqueID WaitingJobs GlueCE GlueCEStateWaitingJobs RunningJobs GlueCE GlueCEStateRunningJobs CloseCE GlueCESEBindGroup GlueCESEBindGroupCEUniqueID CloseSE GlueCESEBindGroup GlueCESEBindGroupSEUniqueID SEVOs GlueSA GlueSAAccessControlBaseRule UsedSpace GlueSA GlueSAStateUsedSpace AvailableSpace GlueSA GlueSAStateAvailableSpace Type GlueSE GlueSEType SE GlueSE GlueSEUniqueID Protocol GlueSEAccessProtocol GlueSEAccessProtocolType ArchType GlueSL GlueSLArchitectureType Processor GlueSubCluster GlueHostProcessorModel OS GlueSubCluster GlueHostOperatingSystemName Cluster GlueSubCluster GlueSubClusterUniqueID Tag GlueSubCluster GlueHostApplicationSoftwareRunTimeEnvironment Memory GlueSubCluster GlueHostMainMemoryRAMSize

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Exercise 6 List all the CE(s) in the BDII satisfying given conditions

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October lcg-info examples $ lcg-info --list-ce --query 'TotalCPUs>=30,OS=SL*' --attrs 'RunningJobs,FreeCPUs‘ - CE: grid010.ct.infn.it:2119/jobmanager-lcgpbs-long - RunningJobs 0 - FreeCPUs 33 - CE: grid010.ct.infn.it:2119/jobmanager-lcgpbs-short - RunningJobs 0 - FreeCPUs 33 - CE: grid010.ct.infn.it:2119/jobmanager-lcgpbs-infinite - RunningJobs 1 - FreeCPUs 33 - CE: skurut1.cesnet.cz:2119/jobmanager-lcgpbs-long - RunningJobs 0 - FreeCPUs 26 [..] List all the CE(s) in the BDII satisfying given conditions

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Exercise 7 List all the CE(s) in the BDII satisfying given condition FreeCPU >=30

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October $ lcg-info --list-ce --query 'FreeCPUs >= 30‘--attrs ‘FreeCPUs’ - CE: grid010.ct.infn.it:2119/jobmanager-lcgpbs-long - FreeCPUs 33 - CE: grid010.ct.infn.it:2119/jobmanager-lcgpbs-short - FreeCPUs 33 - CE: grid010.ct.infn.it:2119/jobmanager-lcgpbs-infinite - FreeCPUs 33 [..] List all the CE(s) which satisfying the condition FreeCPU >=30 lcg-info examples (cont.)

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Exercise 8 Print all the tags published by a specific CE

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Print all the tags published by a specific query $ lcg-info --list-ce --query 'CE=*grid010.ct.infn.it:2119*‘ --attrs ‘Tag’ PBS INFN CATANIA LCG-2 LCG-2_1_0 LCG-2_1_1 LCG-2_2_0 LCG-2_3_0 LCG-2_3_1 LCG-2_4_0 R-GMA AFS CMS ATLAS GATE LHCb IDL-5.4 CMSIM-125 ALICE ALIEN POVRAY-3.5 DEMTOOLS-1.0 CMKIN-VALID CMKIN CMSIM-VALID CSOUND-4.13 MPICH VIRGO-1.0 CMS-OSCAR LHCb_dbase_common-v3r1 GEANT4-6 VLC EGEODE-1.0 RASTER3D SCILAB-2.6 G MAGIC-6.19 CODESA3D-1.0 VO-gilda-slc3_ia32_gcc323 VO-gilda-CMKIN_5_1_1 VO-gilda-GEANT VO-gilda-GKS05

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Exercise 9 List the CEs with a particular Software

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October $ lcg-info –vo gilda --list-ce --query ‘Tag=*MPICH*’ --attrs ‘CE’ - CE: cn01.be.itu.edu.tr:2119/jobmanager-lcglsf-long - CE cn01.be.itu.edu.tr:2119/jobmanager-lcglsf-long - CE: cn01.be.itu.edu.tr:2119/jobmanager-lcglsf-short - CE cn01.be.itu.edu.tr:2119/jobmanager-lcglsf-short - CE: grid010.ct.infn.it:2119/jobmanager-lcgpbs-long - CE grid010.ct.infn.it:2119/jobmanager-lcgpbs-long - CE: grid011f.cnaf.infn.it:2119/jobmanager-lcgpbs-long - CE grid011f.cnaf.infn.it:2119/jobmanager-lcgpbs-long - CE: ced-ce0.datagrid.cnr.it:2119/jobmanager-lcgpbs-long - CE ced-ce0.datagrid.cnr.it:2119/jobmanager-lcgpbs-long [..] List the CEs with a particular SW

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Exercise 10 List the SEs satisfying given query

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October List the SEs satisfying given query $ lcg-info –vo gilda --list-se --query ‘AvailableSpace>=100000’ --attrs ‘CloseCE’ - SE: cn02.be.itu.edu.tr - CloseCE cn01.be.itu.edu.tr:2119/jobmanager-lcglsf-long cn01.be.itu.edu.tr:2119/jobmanager-lcglsf-short cn01.be.itu.edu.tr:2119/jobmanager-lcglsf-infinite - SE: grid009.ct.infn.it - CloseCE grid010.ct.infn.it:2119/jobmanager-lcgpbs-long grid010.ct.infn.it:2119/jobmanager-lcgpbs-short grid010.ct.infn.it:2119/jobmanager-lcgpbs-infinite - SE: ced-se0.datagrid.cnr.it - CloseCE ced-ce0.datagrid.cnr.it:2119/jobmanager-lcgpbs-long ced-ce0.datagrid.cnr.it:2119/jobmanager-lcgpbs-short ced-ce0.datagrid.cnr.it:2119/jobmanager-lcgpbs-infinite - SE: grid003.cecalc.ula.ve - CloseCE grid006.cecalc.ula.ve:2119/jobmanager-lcgpbs-cert grid006.cecalc.ula.ve:2119/jobmanager-lcgpbs-long grid006.cecalc.ula.ve:2119/jobmanager-lcgpbs-short grid006.cecalc.ula.ve:2119/jobmanager-lcgpbs-infinite [..]

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Exercise 11 View user Credits

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October $ dgas-check-balance User: Giuseppe La Rocca : Subject: /C=IT/O=GILDA/OU=Personal Certificate/L=INFN Catania/CN=Giuseppe La Assigned credits (0=infinite): 0 Booked credits: 0 Used credits: 451 Used wall clock time (sec): 1187 Used CPU time (sec): 264 Accounted jobs: 22

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Exercise 12 View CE Price

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Usage: dgas-check-ce-price :2119/jobmanager-lcgpbs- Example: dgas-check-ce-price grid010.ct.infn.it:2119/jobmanager-lcgpbs-short Price Authority queried at: Thu Oct 20 18:43:39 CEST 2005 Computing Element: grid010.ct.infn.it:2119/jobmanager-lcgpbs- short Price (credits for 100 CPU secs): 170

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Questions…

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October R-GMA Practical Valeria Ardizzone

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October To Start the R-GMA command line tool run the following command: >rgma On startup you should receive the following message: R-GMA Command Line Tool (1)

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Commands are entered by typing at the rgma> prompt and hitting ‘enter’ to execute the command. A history of the commands executed can be accessed using the Up and Down arrow keys. To search a command from history use CTRL-R and type the first few letters of the command to recall. Command autocompletion is supported (use Tab when you have partly entered a command). Entering Command

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October General Commands help Display general help information. help Display help for a specific command. exit or quit Exit from R-GMA command line interface. Show tables Display the name of all tables existing in the Schema Describe Show all information about the structure of a table

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Querying Data (1) Querying data uses the standard SQL SELECT statement, e.g.: rgma> SELECT * FROM GlueService The behaviour of SELECT varies according to the type of query being executed. In R-GMA there are three basic types of query: LATEST Queries only the most recent tuple for each primary key HISTORY Queries all historical tuples for each primary key CONTINUOUS Queries returns tuples continuously as they are inserted.

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October The type of query can be changed using the SET QUERY command as follow: rgma> SET QUERY LATEST or rgma> SET QUERY CONTINUOUS The current query type can be displayed using rgma> SHOW QUERY Querying Data (2)

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Exercises 1.Display all the table of the Schema rgma>show tables 2.Display information about GlueSite table rgma>describe GlueSite 3.Basic select query on the table named GlueSite rgma>set query latest rgma>show query rgma>select Name,Latitude,Longitude from GlueSite

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Maximum AGE of tuples The maximum age of tuples to return can also be controlled. To limit the age of latest or historical tuples use the SET MAXAGE command. The following are equivalent: rgma> SET MAXAGE 2 minutes rgma> SET MAXAGE 120 The current maximum tuple age can be displayed using rgma> SHOW MAXAGE To disable the maximum age, set it to none: rgma> SET MAXAGE none

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Query Timeout The final property affecting queries is timeout. –For a latest or history query the timeout exists to prevent a problem (e.g. network failure) from stopping the query from completing. –For a continuous query, timeout indicates how long the query will continue to return new tuples. Default timeout is 1 minute and it can be changed using rgma>SET TIMEOUT 3 minutes or SET TIMEOUT 180 The current timeout can be displayed using rgma>SHOW TIMEOUT

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Producer & Inserting Data The SQL INSERT statement may be used to add data to the system: rgma> INSERT INTO userTable VALUES (’a’, ’b’, ’c’, ’d’) In R-GMA, data is inserted into the system using a Producer component which handles the INSERT statement. Using the command line tool you may work with one producer at a time. The current producer type can be displayed using: rgma>show producer The producer type can be set using: rgma>set producer latest

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Exercises 1.Insert and Select using Primary Producer to support Continuos + History query rgma>set producer continuous rgma>insert into userTable values('cod','string',1.4,66) rgma>set query continuous rgma>set maxage 1 minutes rgma>set timeout 5 seconds rgma>select * from userTable

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Secondary Producer To instruct the secondary producer to consume from table MyTable: rgma> SECONDARYPRODUCER userTable Like the producer, the secondary producer may be configured to answer latest and/or history queries: rgma> SET SECONDARYPRODUCER latest (By default the secondary producer can answer both latest and history queries. ) The current secondary producer type can be displayed using: rgma> SHOW SECONDARYPRODUCER

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October Exercises 2.Insert and Select using the Secondary Producer to support the latest query. rgma>set secondaryproducer latest rgma>secondaryproducer userTable rgma>show producers of userTable rgma>set producer continuous rgma>insert into userTable values ('cod','string',5.2,44) rgma>set query latest rgma>select * from userTable

Enabling Grids for E-sciencE INFSO-RI th EGEE Conference - Pisa, October THE END