Multiplex::CMD is a Perl module which can be helpful for running some commands for many hosts. WWW: http://search.cpan.org/dist/Multiplex-CMD/