并行脚本执行pssh

来源:互联网 发布:淘宝怎么做淘口令 编辑:程序博客网 时间:2024/05/02 05:02

https://code.google.com/archive/p/parallel-ssh/downloads

下载,解压,安装如下

 python setup.py install
 pssh
 cat a.txt:

node1

node2

node3

node4

已配置好单向认证。
 pssh -h a.txt 'ls -al'
 pssh -h a.txt 'uptime'
 pssh -i -h a.txt 'uptime'
 pssh -i -h a.txt 'ls -al'

其他工具还有pdsh, mussh

原创粉丝点击