Solved

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

Posted on 2009-07-13
11
509 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
[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
  • 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
Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

 
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
 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Today companies are subjected to more-and-more data, and it won't stop any time soon.  But there are obvious opportunities for reducing data, particularly data duplicated among companies.
A list of useful business intelligence software.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

695 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