Run some shell command on multiple systems in parallel
This is the equivalent of the command shell in the Cloudmin web interface, but arguably more powerful. It can be used to run a command on one or several hosts managed by Cloudmin, and display the output from all of them. Systems are selected by the standard optons (--host
, --type
and so on), and the command to run follows the other parameters.
Example usage
cloudmin run-command --host xencentos.home "df -h" Filesystem Size Used Avail Use% Mounted on /dev/sda1 2.0G 1.2G 777M 60% / none 257M 0 257M 0% /dev/shm
When multiple systems are specified, the output from each is preceeded by the hostname.
./run-command.pl --host xencentos.home --host suntec.home uname xencentos.home: Linux suntec.home: SunOS
Command Line Help
cloudmin run-command [--all-hosts] | [--host name]* [--group name]* [--type real|kvm|gce|this]* [--os oscode]* [--owner name]* [--status status-code|"up"|"wm"|"bad"] [--host-on name] [--default-language] command arg ...