put the script that queries the database in all the database server you have.
Then in one database server write a main script ,that calls the other scripts one by one .For this you can you "rsh" .
So you ll only run the mainscript in one of your server,and it ll automatically run the other scripts in other servers ,and you ll get the infos of all the databases..