Hi *,
Having just come up with this I thought I'd share it as an example of
what you can do with ldap if you really try - all one line despite any
mail wrapping ... you might even be able to work out what it does :)
(Not necessarily the most efficient way, but it works ...)
Stephen
ldapsearch -x -h lcg-bdii.cern.ch -p 2170 -b o=grid
'(&(objectclass=gluesubcluster)(Gluehostoperatingsystemname=scien*)(Glue
HostOperatingSystemRelease=4*))' | grep GlueChunkKey: | cut -d= -f2 |
xargs -n1 -i ldapsearch -x -h lcg-bdii.cern.ch -p 2170 -b o=grid
'(&(objectclass=gluece)(glueforeignkey=glueclusteruniqueid={}))'
GlueCEInfoHostName GlueCEInfoTotalCPUs | grep -A 1 GlueCEInfoHostName: |
grep : | cut -d: -f 2 | xargs -l2 echo | sort | uniq
|