Presentation is loading. Please wait.

Presentation is loading. Please wait.

Hands-on on Information System

Similar presentations


Presentation on theme: "Hands-on on Information System"— Presentation transcript:

1 Hands-on on Information System
Carlos Fuentes RedIRIS Barcelona, 14th-16th Abril 2008

2 Querying the Information System
In order to query directly the IS elements two high level tools are provided: These tools should be enough for most common user needs and can be used to hide the complexity of raw LDAP queries. lcg-infosites lcg-info

3 This tool provides information related to Grid services:
lcg-infosites This tool provides information related to Grid services: lcg-infosites --vo <your_vo> option –-is <your_bdii> It’s mandatory to include the vo and the option The --is option specifies the BDII you want to query If not supplied, the BDII defined into the environment variable LCG_GFAL_INFOSYS will be used

4 lcg-infosites - options
ce Number of CPUs, running and waiting jobs and names of the CEs se SEs names together with the available and used space closeSE Names of the CEs where the user’s VO is allowed to run together with their corresponding closest SEs lfc Name of the lfc Catalog for the user’s VO tag Name of the tags relative to the software installed in site with the corresponding CE is Name of the BDII which the user wants query help Prints all the available options and exit all It groups all the features just described

5 Please set the environment variable:
Initial Step Please set the environment variable: export LCG_GFAL_INFOSYS=grid004.ct.infn.it:2170

6 Obtaining information about CE
Exercise 1 Obtaining information about CE

7 lcg-infosites --vo gilda ce
valor del bdii: mnto04.uniandes.edu.co:2170 *********************************************************************************************** #CPU Free Total Jobs Running Waiting ComputingElement grid004.iucc.ac.il:2119/jobmanager-lcgpbs-long cn01.be.itu.edu.tr:2119/jobmanager-lcglsf-long dgt01.ui.savba.sk:2119/jobmanager-lcgpbs-long grid004.iucc.ac.il:2119/jobmanager-lcgpbs-short cn01.be.itu.edu.tr:2119/jobmanager-lcglsf-short dgt01.ui.savba.sk:2119/jobmanager-lcgpbs-short grid010.ct.infn.it:2119/jobmanager-lcgpbs-long ....

8 Obtaining information about SE
Exercise 2 Obtaining information about SE

9 lcg-infosites - 2 lcg-infosites --vo gilda se
Avail Space(Kb) Used Space(Kb) Type SEs n.a grid005.iucc.ac.il n.a egee016.cnaf.infn.it n.a grid038.ct.infn.it n.a aliserv6.ct.infn.it n.a gilda02.lcca.usp.br n.a testbed005.cnaf.infn.it n.a gildase01.roma3.infn.it n.a trigrid-ce01.unime.it

10 Exercise 3 Listing the closeSE

11 lcg-infosites --vo gilda closeSE
valor del bdii: mnto04.uniandes.edu.co:2170 Name of the CE: grid010.ct.infn.it:2119/jobmanager-lcgpbs-long aliserv6.ct.infn.it grid038.ct.infn.it Name of the CE: grid011f.cnaf.infn.it:2119/jobmanager-lcgpbs-long testbed005.cnaf.infn.it egee016.cnaf.infn.it Name of the CE: gilda03.lcca.usp.br:2119/jobmanager-lcgpbs-long gilda02.lcca.usp.br Name of the CE: grid010.ct.infn.it:2119/jobmanager-lcgpbs-short

12 Obtaining information about software
Exercise 4 Obtaining information about software

13 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 CE:grid010.ct.infn.it ....

14 This tool allows the users to query, in a deeper way, the BDII
lcg-info This tool allows the users to query, in a deeper way, the BDII It requires the environment variable LCG_GFAL_INFOSYS to be set to the value of the BDII to be queried e.g. grid004.ct.infn.it:2170 Prints the list of the CEs or SEs satisfying a given query along with a list of specified attributes.

15 The query syntax is like this: attr1 op1 valueN, ... attrN opN valueN
lcg-info 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 A combination of attribute is supported The cuts are comma-separated and spaces are not allowed SINCE THE LATEST GLUE-SCHEMA UPDATE ONLY “=“ OPERATOR IS SUPPORTED!

16 lcg-info options --list-attrs
Prints a list of attributes that can be queried. --list-ce Lists the CEs which satisfy a query, or all the CEs if no query is given. --list-se Lists the SEs which satisfy a query, or all the SEs if no query is given. --query Restricts the output to the CEs (SEs) which satisfy the given query. --bdii Allows to specify a BDII in the form <hostname>:<port>. If not given, the value of the environmental variable LCG_GFAL_INFOSYS is used. If that is not defined, the command returns an error. --sed Print the output in a "sed-friendly" format. --attrs Specifies the attributes whose values should be printed. --vo Restricts the output to CEs or SEs where the given VO is authorized. Mandatory when VO-dependent attributes are queried upon.

17 List all the attributes
Exercise 1 List all the attributes

18 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

19 Listing tags of installed software
Exercise 2 Listing tags of installed software

20 lcg-info --list-ce --attrs Tag
- CE: gilda03.lcca.usp.br:2119/jobmanager-lcgpbs-infinite - Tag 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 LCG-2_6_0 GLITE-3_0_0 AFS CMS-1.1.0 ATLAS-6.0.4 GATE LHCb-1.1.1 IDL-5.4 CMSIM-125 ALICE ALIEN

21 Listing all the CEs with their FreeCPUs and TotalJobs attributes
Exercise 3 Listing all the CEs with their FreeCPUs and TotalJobs attributes

22 lcg-info --list-ce --attrs FreeCPUs,TotalJobs
- CE: gilda03.lcca.usp.br:2119/jobmanager-lcgpbs-infinite - FreeCPUs - TotalJobs - CE: gilda03.lcca.usp.br:2119/jobmanager-lcgpbs-long - CE: gilda03.lcca.usp.br:2119/jobmanager-lcgpbs-short - CE: gildace01.roma3.infn.it:2119/jobmanager-lcgpbs-infinite

23 Exercise 4 List FreeCPUs and TotalJobs attributes of all the CEs that have TotalCPUs=10

24 lcg-info --list-ce --attrs FreeCPUs,TotalJobs --query TotalCPUs=10
- CE: grid004.iucc.ac.il:2119/jobmanager-lcgpbs-infinite - FreeCPUs - TotalJobs - CE: grid004.iucc.ac.il:2119/jobmanager-lcgpbs-long - CE: grid004.iucc.ac.il:2119/jobmanager-lcgpbs-short

25 Questions …


Download ppt "Hands-on on Information System"

Similar presentations


Ads by Google