Download LCG-2 USER GUIDE
Transcript
GlueForeignKey: GlueClusterUniqueID=lxn1181.cern.ch GlueInformationServiceURL: ldap://lxn1181.cern.ch:2135/mds-vo-name=local,o=grid ... In order to restrict the search to a specific objectclass, a filter of the form ’objectclass=<name>’ can be used. By specifying a list of attribute names, the reply is limited to the value of those attributes for the corresponding objectclass, as is shown in the next example. A description of all objectclasses and their attributes to optimize the LDAP search command can be found in Appendix A. Example 7.12 (Getting information about the site name from the GRIS on a Computing Element) $ ldapsearch -x -h lxn1181.cern.ch -p 2135 -b ”mds-vo-name=local, o=grid” ’objectclass=SiteInfo’ siteName version: 2 # # filter: objectclass=SiteInfo # requesting: siteName # # lxn1181.cern.ch/siteinfo, local, grid dn: in=lxn1181.cern.ch/siteinfo,Mds-Vo-name=local,o=grid siteName: CERN-LCG2 # search result search: 2 result: 0 Success # numResponses: 2 # numEntries: 1 By adding the -LLL option we can avoid the comments and the version information in the reply. $ ldapsearch -LLL -x -h lxn1181.cern.ch -p 2135 -b ”mds-vo-name=local, o=grid” ’objectclass=SiteInfo’ siteName dn: in=lxn1181.cern.ch/siteinfo,Mds-Vo-name=local,o=grid siteName: CERN-LCG2 7.2. T HE SITE GIIS At each site, a site GIIS collects information about all resources present at a site (i.e. data from all GRISes of the site). For a list of all sites and all resources present, please refer to: CERN-LCG-GDEIS-454439 LCG-2 User Guide Page 69