http://blog.csdn.net/kumu_linux/article/details/8562320
pssh是一个python编写可以在多台服务器上执行命令的工具,同时支持拷贝文件,是同类工具中很出色的,类似pdsh,个人认为相对pdsh更为简便,使用必须在各个服务器上配置好密钥认证访问。
项目地址: https://code.google.com/p/parallel-ssh/
PSSH provides parallel versions of OpenSSH and related tools. Included are pssh, pscp, prsync, pnuke, and pslurp. The project includes psshlib which can be used within custom applications. The source code is written in Python and can be cloned from:
git clone http://code.google.com/p/parallel-ssh/
PSSH is supported on Python 2.4 and greater (including Python 3.1 and greater). It was originally written and maintained by Brent N. Chun. Due to his busy schedule, Brent handed over maintenance to Andrew McNabb in October 2009.
下载安装
下载
wget http://parallel-ssh.googlecode.com/files/pssh-2.3.1.tar.gz
本地下载 pssh-2.3.1.tar.gz
安装
1 2 3 |
|
参数命令介绍
pssh 在多个主机上并行地运行命令
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
其他命令
1 2 3 4 5 6 7 |
|
实例
pssh
1 2 3 4 5 |
|
pscp
1 2 3 4 5 |
|