Multiplex::CMD is a Perl module which can be helpful for running some commands for many hosts.