Solved

Need to run multiple arbitrary commands on multiple arbitrary hosts from one central host

Posted on 2009-07-13
11
484 Views
Last Modified: 2013-12-27
I am looking for a package or perl programme which help me to run multiple arbitrary commands on multiple arbitrary hosts from one central host. However, i found something called as CSSH and PSSH but that doesn't seems to be working for Soalris 10 environment.

Hence, I would be greatful if anyone can help me to find out a reliable package which can be used in production environment and solve my purpose.
0
Comment
Question by:Subsun
  • 4
  • 2
  • 2
  • +1
11 Comments
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 100 total points
ID: 24838784
Hi,
there is 'dsh' (perl) -
http://dsh.sourceforge.net/
and 'dsh' (python) -
http://pydsh.sourceforge.net/
another version (don't know that one) -
http://www.netfort.gr.jp/~dancer/software/dsh.html.en
 
wmp
 
0
 
LVL 40

Author Comment

by:Subsun
ID: 24838846
Let me try, I will update you the status...
0
 
LVL 13

Assisted Solution

by:Rowley
Rowley earned 150 total points
ID: 24840506
Arbitrary commands to various different servers at different times? Manual or automatic arbitrary commands? For manual, how about puttycs?

http://www.millardsoftware.com/puttycs

Failing that, you could also look at rex (remote execution). If you want to keep things slightly more structured, I would shout about something like cfengine.

http://www.cfengine.org/

If none of these float your boat, then if you could be a bit more specific then maybe we could suggest something more suitable.
0
 
LVL 40

Author Comment

by:Subsun
ID: 24848089
Thanks alot to all of you for helping me out with this query.

I tried to install Dsh and while compilation it throws error saying "checking for open_dshconfig in -ldshconfig... no configure: error: dshconfig not found!!" even i installed the libdshconfig-0.20.9 seperately but again it gives same error message.

As I am using Solaris 10 Sparc environment. Is there any specific package for this kind of environment which support and secure.

Cfengine sounds good to me, but it is paid and how about its usage?
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 13

Assisted Solution

by:Rowley
Rowley earned 150 total points
ID: 24848374
Cfengine is free and v2 downloadable as a package from sunfreeware.com. The documentation is excellent and it shouldn't take much to get it up and running. There is community and paid support if you need it, and it uses ssl to do its thing.

Docs tutorials et al:

http://www.cfengine.org/document.php
0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 100 total points
ID: 24848520
How much functionality do you actually need?
Wouldn't a tiny script like this be sufficient?
#!/bin/ksh
HOSTS=/list/of/hostnames
for host in $(cat $HOSTS | grep -v "^#")
 do
  echo "----------------" $host "----------------"
  ssh $host "$@"
done
0
 
LVL 40

Author Comment

by:Subsun
ID: 24876593
My requirement is something i am looking for a software/application which enable me to run commands or copy files at at time on a group of solaris servers. I am aware of the script but that is not permanent solution or much effective in my environment.
However I tried to install the CSSH and PSSSH and DSH but all giving me error messages..
0
 
LVL 22

Accepted Solution

by:
cj_1969 earned 250 total points
ID: 24903506
Are you trying to do this from a Solaris workstation or do you have a Windows workstation that you can run this from?

Going back to the comment about PuTTY ...
this comes with a program called plink.  Using plink you can then create a script and execute a series of commands one each server.  Basically a batch file that executes the command against each server.
For copying files you could use scp (pscp on Windows) and again just script the copy process to run against each of the servers in question.

Do you have openSSH running on your server?  If not, then you will need to do this so that you can run the secure shells to connect to your servers to get this apps to work, as they are all secure connection programs.
0
 
LVL 40

Author Closing Comment

by:Subsun
ID: 31602780
The SSH port was blocked and in the configuration file of sshd_config it was blocked for root login.
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

If your app took Google’s lash recently, here are the 5 most likely reasons.
In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
The viewer will learn common shortcuts with easy ways to remember them. The viewer will then learn where to find all of the keyboard shortcuts, how to create/change them, and how to speed up their workflow.
The viewer will learn how to create multiple layers to apply various filters and how to delete areas from each layer’s filter.

705 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

21 Experts available now in Live!

Get 1:1 Help Now