Exercise 11: Query BDII: Difference between revisions

From Gridkaschool
Jump to navigationJump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
* 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)
* Query local resource (the cream ce)
ldapsearch -x -H ldap://gks-0-205.fzk.de:2170 -b mds-vo-name=resource,o=grid
ldapsearch -x -H ldap://<hostname>:2170 -b mds-vo-name=resource,o=grid


* Query the site-BDII (publishing all resources of your site)
* Query the site-BDII (publishing all resources of your site)
Line 8: Line 26:
ldapsearch -x -H ldap://emi-demo06.cnaf.infn.it:2170 -b mds-vo-name=local,o=grid
ldapsearch -x -H ldap://emi-demo06.cnaf.infn.it:2170 -b mds-vo-name=local,o=grid



* Query to obtain Glue2 format

ldapsearch -x -H ldap://gks-027.scc.kit.edu:2170 -b o=glue
* 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'

Latest revision as of 18:50, 24 August 2012

  • 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://emi-demo06.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'