Solved

CLI tool for cluster ssh

Posted on 2011-03-10
2
634 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Scripting Problem 9 41
Continuous Ping 10 110
UNiX Script filesystem space usage 19 60
need a quick help to fix the script logic 4 54
Over the years I've spent many an hour playing on hardened, DMZ'd servers, with only a sub-set of the usual GNU toy's to keep me company; frequently I've needed to save and send log or data extracts from these server back to my PC, or to others, and…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

760 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now