Showing posts from September, 2012

PSSH : Parallel SSH to execute commands on a number of hosts

About PSSH
If we are managing a large number of servers , there are times when we need to execute the same command on all the servers. Sometimes need to copy a file to multiple hosts.  For these tasks we can login to each of the servers and execute the command or write a script to automatize the task. Logging  to each of the servers and executing a  command will take a long time and writing a script to automize the task will need a initial effort. In such cases , tools like pssh , pconsole , Clusterssh comes handy. In this post , we will see how to use pssh.

The pssh manual page says "pssh  is  a  program  for executing ssh in parallel on a number of hosts.  It provides features such as sending input to all of the processes, passing a password to ssh, saving output to files, and timing out.

Installing PSSH

Pssh is written using python. The installation steps are somewhat different from the traditional method of using the make the 'make' tool to compile a program and then i…