Apt-get install clusterssh




















If you want to run some commands to a specific XTerm window, you can simply switch focus to the Xterm window, and type the commands as you usually would. The following screenshot shows ClusterSSH in action, where there are five hosts in the cluster, and the console window in the upper left corner is where you are supposed to type the commands to run on all five hosts.

Please note that this article is published by Xmodulo. If you would like to use the whole or any part of this article, you need to cite this web page at Xmodulo. This is handy if you want to exclude a host or two for a one-off or particular reason. Having access to multiple machines at once, possibly as a privileged user, means mistakes come at a great cost. It can save a lot of time when doing tasks that need to be done on more than one machine, but like any power tool, it can cause a lot of damage if used haphazardly.

About Us. Sign in. Forgot your password? You can use the -a —action option to run a command upon log in. For example, run the who command to see if anyone else is logged in. You can find a full list of command line options by using the links in the resources section below. Because of the way Cluster SSH operates when something goes wrong, it usually goes horribly wrong. Remember you are running commands on multiple systems.

That means any mistake, mistype or fat finger is being propagated also. Extra special attention should be taken when editing configuration files.

Even if you believe the files are the same across all systems, a single comment or blank line can through the line numbers off. Be careful, double check your typing and configurations before committing. It is easy to get into trouble. Cluster SSH is an incredibly powerful tool for system administration. Even now as we move on to tools like Puppet and Ansible for configuration management, I still find uses for good ole cssh.

In this article we covered most everything you need to get started. We discussed installing and configuring Cluster SSH as well as some usage examples. If you have a comment, question or horror story we would love to hear it in the comments. This site uses Akismet to reduce spam. Learn how your comment data is processed. This is a bit random but a tool like Ansible does replace these kind of hodpge podge ssh clustering solutions.

Hello, Does cssh allow you to use a Private Key to connect to the target server instead of a password? You can specify it for ssh connection.

Cssh just uses regular ssh to connect. Username or Email Address. Remember Me. We are going to use the ClusterSSH command to resolve this situation. ClusterSSH allows you to run the same commands simultaneously on the server group cluster. This ensures that all servers are kept in sync. To ensure you have the latest version installed, you can download the ClusterSSH source file and compile it manually.

At the moment this article is written, the latest version of ClusterSSH is 3. The source can be downloaded from SourceForge sites. Unzip the source file 2. Go to the folder where the source file was extracted 3. ClusterSSH requires a Perl module. The solution to this error is to install the Tk. The easiest way to install it is to use CPAN.



0コメント

  • 1000 / 1000