Parallel management tool pssh

Source: Internet
Author: User
Parallel management tool psshpssh is a simple tool for sending commands to multiple servers concurrently on the character interface for execution. Suitable for sending the same command (and observe the output) to a large number of servers in the cluster at a time. 1. install a to googlecode to find the latest installation package http: codegooglecom parallel management tool pssh is a simple character interface that concurrently sends commands to multiple servers for execution. Suitable for sending the same command (and observe the output) to a large number of servers in the cluster at a time. 1. install a. find the latest installation package in google code. http://code.google.com/p/parallel-ssh/downloads/listBash Code $ wget http://code.google.com/p/parallel-ssh/downloads/detail?name=pssh-2.3.1.tar.gz&can=2&q= Pssh is written in python, so download and unzip, install python installation module installation method Bash code $ tar-xf pssh-2.3.1.tar.gz $ cd pssh-2.3.1 # python setup. py install 2. for ease of use, if you do not need to enter the password during pssh, you need to generate the rsa key and copy it to the machine that requires remote management. Bash Code # key-gen always press enter to generate/root /. ssh/id_rsa.pub copy and add it to the authorized file Bash code # ssh-copy-id-I/root /. ssh/id_rsa.pub root@192.168.16.X 3. create a hosts.txt file and add the Bash Code [root @ localhost script] # cat hosts.txt 127.0.0.1 192.168.0.8 192.168.0.51 192.168.1.114 192.168.1.115 to the remotely managed machine. run the following command: java code [root @ localhost script] # pssh-I-h hosts.txt "uptime" [1] 10:49:19 [FAILURE] 127.0.0.1 22 pinned Ed error code of 255 [2] 10:49:19 [SUCCESS] 192.168.1.115 22 10:49:40 up 14 days, 10:49:19, 8 users, load average: 0.00, 0.00, 0.00 [3] 02:49:35 [SUCCESS] 192.168.1.114 22 up 14 days, 9 users, load average: 0.11, 0.04, 0.01 [4] 10:49:19 [SUCCESS] 192.168.0.8 22 02:39:21 up 4 days, 29 min, 6 users, load average: 0.00, 0.02, 0.03 [5] 10:49:19 [SUCCESS] 192.168.0.51 22 10:50:14 up 8 days, 38 min, 20 users, load average: 0.03, 0.06, 0.06
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.