QueryingBDII
What you will find on this page
Some useful commands, mainly based on ldapsearch, to extract meaningful information from BDII.
Some useful links to documentation
https://wiki.egi.eu/wiki/USG_Using_LDAP_Search
http://gridinfo.web.cern.ch/developers/resource-bdii
Useful commands
Get the list of top-bdii's
lcg-infosites --vo all bdii_top
Get the list of VOs supported by the CEs from a given country
Example for UK :
ldapsearch -x -h top-bdii.cern.ch -p 2170 -b o=grid "(&(objectclass=GlueCE)(GlueCEUniqueID=*.ac.uk*))" | grep "GlueCEAccessControlBaseRule: VO:" | sort | uniq | cut -d: -f3