Exercise 12: Query BDII
From Gridkaschool
Jump to navigationJump to search
- 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'