Solved

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

Posted on 2009-07-13
11
486 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

In our personal lives, we have well-designed consumer apps to delight us and make even the most complex transactions simple. Many enterprise applications, however, are a bit behind the times. For an enterprise app to be successful in today's tech wo…
Skype is a P2P (Peer to Peer) instant messaging and VOIP (Voice over IP) service – as well as a whole lot more.
This video will demonstrate how to find the puppet warp tool from the edit menu and where to put the points to edit.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

920 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

14 Experts available now in Live!

Get 1:1 Help Now