Archive

Posts Tagged ‘pssh’

pssh – Running command in parallel on multiple servers

When the number of server you are administrating is getting higher, you need to find a way to get the job done easier. This is when “pssh” come in handy. In this article, I will demonstrate by example, the utilization of the “pssh” tools. I will on purpose, not cover the “prsync” and the “pnuke” command, in an effort to keep this article interesting and not to lenghtly.

To begin with, we need to automate your ssh login session to your servers from one management server. This is require before using “pssh” to it full extend. If you do not know how to automate ssh login there is an excellent article available at “The Geek Stuff” site, that explain how to do it.

First, let’s install the package

# rpm -ivh pssh-1.2.2-1.i386.rpm
Preparing...                ########################################### [100%]
   1:pssh                   ########################################### [100%]
#

After installing the package, there are several parallel commands that are available to us. We have the ‘pssh’ that allow us to run the same command on multiple servers, the “pscp” to copy file(s) to multiple servers and finally “pslurp” used to get directories or files from multiples host and copy them to the local server.

Read more…

Categories: Tools