The R-GMA virtual database can be queried using the command rgma in a similar manner to the way the LDAP database can be queried by ldapsearch. Like ldapsearch, detailed information can be obtained, but it's not clear to me how often we would need such information.
To start, run rgma:-
rgmaIf you know what columns of which tables you want then a query is straightforward if you are familiar with SQL e.g. to see selected information of hosts at RAL:-
SELECT UniqueID,UpTime,FileCounterRegularOpen, ProcessorVendor FROM GlueHost where UniqueID like "%.rl.ac.uk"Note that unlike mysql, there is no need for a trailing semicolon as commands are terminated by pressing RETURN. Also, unlike mysql, a timeout has to be specified: it takes time for the Collector to query all the Producers. The current timeout can be examined:-
show timeoutand set
set timeout 1That will set it to 1 second - which is far too short!
set timeout 1 minutesmakes more sense. Also you can query for different types of information:-
show query set query historyrgma has a built-in help
help help <command>
There is a web interface at: @ http://lcgic01.gridpp.rl.ac.uk:8080/R-GMA/index.html
This is particularly useful if you don't know what tables you want to look at or what columns they contain as with this interface you can see a complete list of tables with descriptions.