Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7...
-
Upload
astrid-corwell -
Category
Documents
-
view
216 -
download
0
Transcript of Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7...
![Page 1: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/1.jpg)
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Hands-on on Information System
Antonio Juan Rubio MonteroCIEMAT
10th EELA Tutorial.Madrid, May 7th-11th,2007.
![Page 2: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/2.jpg)
2
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
lcg-infosites
![Page 3: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/3.jpg)
3
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Exercise 1
Get CE information
$ lcg-infosites - -vo gilda ce
![Page 4: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/4.jpg)
4
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
$ 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
------------------------------------------------------------------------------------------
4 3 0 0 0 cn01.be.itu.edu.tr:2119/jobmanager-lcglsf-long
4 3 0 0 0 cn01.be.itu.edu.tr:2119/jobmanager-lcglsf-short
34 33 0 0 0 grid010.ct.infn.it:2119/jobmanager-lcgpbs-long
16 16 0 0 0 grid011f.cnaf.infn.it:2119/jobmanager-lcgpbs-long
1 1 0 0 0 grid006.cecalc.ula.ve:2119/jobmanager-lcgpbs-log
[..]
![Page 5: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/5.jpg)
5
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Exercise 2
Get SE information
$ lcg-infosites - -vo gilda se
![Page 6: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/6.jpg)
6
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
$ lcg-infosites --vo gilda se
**************************************************************These are the related data for gilda: (in terms of SE)**************************************************************
Avail Space(Kb) Used Space(Kb) Type SEs--------------------------------------------------------------------------------------143547680 2472756 disk cn02.be.itu.edu.tr168727984 118549624 disk grid009.ct.infn.it13908644 2819288 disk grid003.cecalc.ula.ve108741124 2442872 disk gildase.oact.inaf.it28211488 2948292 disk testbed005.cnaf.infn.it349001680 33028 disk gilda-se-01.pd.infn.it31724384 2819596 disk cna03.cna.unicamp.br387834656 629136 disk grid-se.bio.dist.unige.it
![Page 7: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/7.jpg)
7
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Exercise 3
Get information about installed software
$ lcg-infosites - -vo gilda tag
![Page 8: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/8.jpg)
8
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
$ lcg-infosites --vo gilda tag
*************************************************************************Information for gilda relative to their software tags included in each CE*************************************************************************
Name of the TAG: VO-gilda-GEANTName of the TAG: VO-gilda-GKS05Name of the CE:cn01.be.itu.edu.tr
Name of the TAG: VO-gilda-slc3_ia32_gcc323Name of the TAG: VO-gilda-CMKIN_5_1_1Name of the TAG: VO-gilda-GEANTName of the TAG: VO-gilda-GKS05Name of the CE:grid010.ct.infn.it
[..]
![Page 9: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/9.jpg)
9
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
lcg-infosites options
![Page 10: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/10.jpg)
10
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
lcg-info
![Page 11: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/11.jpg)
11
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
lcg-info
We can use this command to list which CE and SE satisfies a set of given conditions. We can also show values of a set of given attributes.
Information is taken from BDII especified in LCG_GFAL_INFOSYS variable.
Request sintax is: attr1 op1 valueN, ... attrN opN valueN
![Page 12: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/12.jpg)
12
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
lcg-info options
![Page 13: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/13.jpg)
13
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Exercise 5
Get supported attributed list
$ lcg-info --list-attrs
![Page 14: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/14.jpg)
14
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
$ lcg-info --list-attrsAttribute name Glue object class Glue attribute name
MaxTime GlueCE GlueCEPolicyMaxWallClockTimeCEStatus GlueCE GlueCEStateStatusTotalJobs GlueCE GlueCEStateTotalJobsCEVOs GlueCE GlueCEAccessControlBaseRuleTotalCPUs GlueCE GlueCEInfoTotalCPUsFreeCPUs GlueCE GlueCEStateFreeCPUsCE GlueCE GlueCEUniqueIDWaitingJobs GlueCE GlueCEStateWaitingJobsRunningJobs GlueCE GlueCEStateRunningJobsCloseCE GlueCESEBindGroup GlueCESEBindGroupCEUniqueIDCloseSE GlueCESEBindGroup GlueCESEBindGroupSEUniqueIDSEVOs GlueSA GlueSAAccessControlBaseRuleUsedSpace GlueSA GlueSAStateUsedSpaceAvailableSpace GlueSA GlueSAStateAvailableSpaceType GlueSE GlueSETypeSE GlueSE GlueSEUniqueIDProtocol GlueSEAccessProtocol GlueSEAccessProtocolTypeArchType GlueSL GlueSLArchitectureTypeProcessor GlueSubCluster GlueHostProcessorModelOS GlueSubCluster GlueHostOperatingSystemNameCluster GlueSubCluster GlueSubClusterUniqueIDTag GlueSubCluster GlueHostApplicationSoftwareRunTimeEnvironmentMemory GlueSubCluster GlueHostMainMemoryRAMSize
![Page 15: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/15.jpg)
15
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Exercise 6
Show all CEs on BDII satisfiying some given
conditions
$ lcg-info --list-ce --query 'TotalCPUs>=30,OS=SL*' --attrs 'RunningJobs,FreeCPUs‘
![Page 16: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/16.jpg)
16
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
$ 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[..]
![Page 17: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/17.jpg)
17
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
R-GMA
![Page 18: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/18.jpg)
18
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
To start R-GMA command line type:>rgma
On begin this message appears.
R-GMA – Command line (1)
![Page 19: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/19.jpg)
19
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Command history is managed with “up” and
“down” keys.
For quick access to a command type it’s
first characters and press “CTRL-R”
Use TAB key to complete the command
input.
Command input
![Page 20: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/20.jpg)
20
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
help Shows general help
help <command> Show specific help
exit or quitQuit RGMA command line.
Show tablesShow all table names of the schema. (Schema)
Describe <tablename>Show table structure information.
General commands
![Page 21: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/21.jpg)
21
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
To obtain data use SQL SELECT clause: rgma> SELECT * FROM GlueService
SELECT behaviour is according to the request type. There are three request types of SELECT:
LATEST. Return most recents rows for each primary key.HISTORY. Return all historic rows for each primaty key.CONTINUOUS Return rows as soon are being inserter.
Querying data (1)
![Page 22: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/22.jpg)
22
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
To change request type use SET QUERY :
rgma> SET QUERY LATEST or rgma> SET QUERY CONTINUOUS
To show current request type:
rgma> SHOW QUERY
Querying data (2)
![Page 23: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/23.jpg)
23
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
1. Show all schema tables: rgma>show tables
2. Show information about GlueSite table: rgma>describe GlueSite
3. Make a query about GlueSite table:rgma>set query latestrgma>show query rgma>select Name,Latitude,Longitude from GlueSite
Exercises
![Page 24: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/24.jpg)
24
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Rows max age can be configured. To limit latest or history rows age use SET MAXAGE
rgma> SET MAXAGE 2 minutesrgma> SET MAXAGE 120
To show row max age:rgma> SHOW MAXAGE
To unable max age: rgma> SET MAXAGE none
Row max age
![Page 25: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/25.jpg)
25
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Another property of requests is “timeout” We can use timeout to prevent network failure
or other situations In continuous type, timeout means how long
the request will continue returning new rows.
Default timeout it’s 1 minute.
rgma>SET TIMEOUT 3 minutes or rgma>SET TIMEOUT 180
To show current timeout rgma>SHOW TIMEOUT
Timeout property
![Page 26: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/26.jpg)
26
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
We can use SQL INSERT to add new data:
rgma>INSERT INTO userTable VALUES (’a’, ’b’, ’c’, ’d’)
Producer component inserts data on R-GMA. This component manages INSERT clause.
Data production and insertion (1)
![Page 27: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/27.jpg)
27
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
To show the current producer type:
rgma>show producer
To set the producer type:
rgma>set producer latest
Data production and insertion (2)
![Page 28: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/28.jpg)
28
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
1. Insert and select one row using a contiuous producer to support Continuous and historic querys.
rgma>set producer continuousrgma>insert into userTable values('cod','string',1.4,66)rgma>set query continuousrgma>set maxage 1 minutesrgma>set timeout 5 secondsrgma>select * from userTable
Exercise
![Page 29: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/29.jpg)
29
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
To set the secondary producer for consume from userTable table:rgma>SECONDARYPRODUCER userTable
Secondary producer can be set for latest or history request.rgma>SET SECONDARYPRODUCER latest
To show current secondary producer type: rgma>SHOW SECONDARYPRODUCER
Secondary producer
![Page 30: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/30.jpg)
30
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Insert and select data using a secondary producer supporting latest querys.
rgma>set secondaryproducer latestrgma>secondaryproducer userTablergma>show producers of userTablergma>set producer continuousrgma>insert into userTable values ('cod','string',5.2,44) rgma>set query latestrgma>select * from userTable
Exercise
![Page 31: Hands-on on Information System Antonio Juan Rubio Montero CIEMAT 10 th EELA Tutorial. Madrid, May 7 th -11 th,2007.](https://reader035.fdocuments.us/reader035/viewer/2022081518/551b9a32550346167e8b56e3/html5/thumbnails/31.jpg)
31
Edificio BroncePlaza Manuel Gómez Moreno s/n28020 Madrid. España
Tel.: 91 212 76 20 / 25Fax: 91 212 76 35www.red.es
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).
Para ver esta película, debedisponer de QuickTime™ y deun descompresor TIFF (LZW).