Polysh 是一個交互式命令,能夠在一臺服務器上批量的對一批服務器進行處理,運行交互式命令。官方的簡介以下:python
Polysh is a tool to aggregate several remote shells into one. It is used to launch an interactive remote shell on many machines at once. It is written in Python and requires Python ≥ 2.4.
注: Polysh 是一個由幾個遠程腳本集合而成的工具,它被用於在許多服務器上運行一個交互式的遠程腳本,由 Python 編寫,最低要求爲 Python 2.4 。git
安裝命令以下:shell
wget wget http://guichaz.free.fr/polysh/files/polysh-0.4.tar.gz tar -zxvf polysh-0.4.tar.gz cd polysh-0.4 sudo python setup.py install
便可安裝成功,安裝成功後,在有以下命令:/usr/bin/polysh
服務器
下面是一個腳本示例:工具
polysh '101.50.44.4<1-5>'
而後其會要求你輸入下登陸的密碼,輸入登陸密碼後,你遠程還有其餘的命令須要交互式處理的,直接輸入那個命令,在進行處理便可。ui
Polysh的主頁code
有興趣研究源碼的能夠看執行以下命令把源碼DOWN下來:rem
git clone git://repo.or.cz/polysh.git
注:須要你安裝了gitget