Solved

CLI tool for cluster ssh

Posted on 2011-03-10
2
641 Views
Last Modified: 2012-05-11
Hello, I am looking for Command line interface alternative for cluster ssh (cssh).. usually cluster ssh opens the many windows in GUI.. I am looking for the alternative if it can be forked windows inside in the terminal itself. Please let me know if there is a alternatives available or any work around. Thanks!
0
Comment
Question by:beer9
2 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 35107050
Hi,

you could try "dsh", "pdsh" if available for your platform, or you could use a simple script to run the same command against a couple of servers contained in a list.

http://manpages.ubuntu.com/manpages/hardy/man1/dsh.1.html
http://linux.die.net/man/1/pdsh

A simple script

#!/bin/sh
while read server
  do
     echo "--- $server ---"
     ssh user@$server "$@"
  done < serverlist
exit

Of course you could refine the script (commandline options, "parallel" execution etc.)

wmp
0
 

Author Closing Comment

by:beer9
ID: 35154372
Thank you! :-)
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This Windows batch file is useful for organizing image files from a digital camera or other source, but can have many other uses.  It simply renames the file(s) to match their create date.  For example, if you took a picture today at 1:40pm and the …
Recently, an awarded photographer, Selina De Maeyer (http://www.selinademaeyer.com/), completed a photo shoot of a beautiful event (http://www.sintjacobantwerpen.be/verslag-en-fotoreportage-van-de-sacramentsprocessie-door-antwerpen#thumbnails) in An…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question