Most system administrators would want to execute a set of commands over a large number of client machines. With ClusterSSH (cssh), admins can set up cluster sets of hosts and log in to all of them once using SSH. Once you log in to the cssh terminal, all the commands that you type in your server window will be replicated across all the nodes. You can monitor this with the help of xterm and see what's going on. If you want to run a specific command on any of the connected machines via xterm, click on that window and only that host will run your commands now.
To install ClusterSSH, use the following command:
sudo apt-get install clusterssh
Next, you need to generate a global configuration file. The command is as follows:
sudo cssh -u > /etc/csshrc
Now, set up a system-wide cluster definition. To do this, change the /etc/clusters
file and add the servers, as follows:
servers server1 server2 server3
The preceding line will create a server group with server1
, server2
, and server3
as...