Exercises - part 0 :
Default BDII




Check which is the default BDII on your user interface. To do so, run the following command:
echo $LCG_GFAL_INFOSYS

If your default BDII is not set, you can set it by using the following command:
export LCG_GFAL_INFOSYS lcg-bdii.cern.ch:2170

Exercises - part 1 :
lcg-infosites




A - Usage

1 - lcg-infosites --vo voname -[v] -f [site name] [option(s)] [-h| --help] [--is BDII]

2 - list of options: lcg-infosites -h


B - Using lcg-infosites

1 - Using the lcg-infosites command, display the information concerning the RB, CE, SE and LFC for the biomed VO

2 - Display the amount of RAM, the operating system and the processor model of the CEs

3 - Find which is the closest SE for each CE

4 - Display the information of the CE clrlcgce01.in2p3.fr for the VOs biomed and auvergrid.
What are the differences ? How can you explain theses differences ?



Exercises - part 2 :
lcg-info




A - Usage

1 - lcg-info --list-ce [--bdii bdii] [--vo vo] [--sed] [--debug] [--query query] [--attrs list]

2 - lcg-info --list-se [--bdii bdii] [--vo vo] [--sed] [--debug] [--query query] [--attrs list]

3 - lcg-info --list-service [--bdii bdii] [--vo vo] [--sed] [--debug] [--query query] [--attrs list]

4 - lcg-info --list-site [--bdii bdii] [--vo vo] [--sed] [--debug] [--query query] [--attrs list]

5 - lcg-info --list-attrs

5 - lcg-info --help


B - Using lcg-info

1 - Display the list of supported attributes of this command
2 - Run the following command and interpret the output:
lcg-info --list-se --query 'SEArch=disk' --attrs 'SEName,SEArch' --vo biomed

3 - Display the number of running jobs and free CPUs of all the CEs that have an Athlon CPU

4 - Display the list of close CEs for all the SEs of the biomed VO

Exercises - part 3 :
ldapsearch




A - Interrogating the GRIS on a CE

1 - Run the following command and interpret the output:
ldapsearch -x -h lcgbdii02.gridpp.rl.ac.uk -p 2170 -b o=grid '(&(objectclass=GlueSite) (GlueSiteName=ral*))' GlueSiteWeb GlueSiteLatitude GlueSiteLongitude

2 - With the help of the previous example, display the mail of the administrator, the description and the web site of the site called AUVERGRID


B - Interrogation the top level BDII

1 - Run the following command and interpret the output:
ldapsearch -x -LLL -H ldap://lxn1187.cern.ch:2170 -b "o=grid" 'objectclass=GlueCESEBind' GlueCESEBindCEUniqueID GlueCESEBindSEUniqueID

2 - With the help of the previous example, display the number of free CPUs of all the CEs