?
Solved

CLI tool for cluster ssh

Posted on 2011-03-10
2
Medium Priority
?
660 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 2000 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

762 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