Exercise 12: Query BDII

From Gridkaschool
Revision as of 15:50, 23 August 2013 by Bertocco (talk | contribs) (Created page with "* Test that the BDII is operational ldapsearch -x -h <hostname> -p 2170 -b o=infosys * Test that the BDII is updating ldapsearch -x -h <hostname> -p 2170 -b o=infosys "*" …")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
  • Test that the BDII is operational
 ldapsearch -x -h <hostname> -p 2170 -b o=infosys
  • Test that the BDII is updating
 ldapsearch -x -h <hostname> -p 2170 -b o=infosys "*" modifyTimestamp
  • Test that the Glue 1.3 root entry is available
 ldapsearch -x -h <hostname> -p 2170 -b mds-vo-name=resource,o=grid
  • Test that the Glue 2.0 root entry is available
 ldapsearch -x -h <hostname> -p 2170 -b o=glue


  • Query local resource (the cream ce)
 ldapsearch -x -H ldap://<hostname>:2170 -b mds-vo-name=resource,o=grid
  • Query the site-BDII (publishing all resources of your site)
 ldapsearch -x -H ldap://gks-027.scc.kit.edu:2170 -b mds-vo-name=GridKASchool00,o=grid
  • Query a top BDII publishing a set of sites
 ldapsearch -x -H ldap://emitestbed53.cnaf.infn.it:2170 -b mds-vo-name=local,o=grid


  • Info scripts should be run as ldap user, who is a non-interactive user.

To be sure to do so:

 su ldap --shell /bin/bash --session-command '/usr/bin/whoami;

Call a script:

 su ldap --shell /bin/bash --session-command '/var/lib/bdii/gip/provider/glite-info-provider-service-cream-wrapper'