?
Solved

CLI tool for cluster ssh

Posted on 2011-03-10
2
Medium Priority
?
665 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 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

Background Still having to process all these year-end "csv" files received from all these sources (including Government entities), sometimes we have the need to examine the contents due to data error, etc... As a "Unix" shop, our only readily …
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
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…

840 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