Solved

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

Posted on 2009-07-13
11
491 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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Salesforce Campaign - 4,500 members 5 77
Bulk Reorder File Names 4 67
What kind of coding would i need for an mmorpg on console and pc 2 31
Veriface disable 2 10
I previously wrote an article addressing the use of UBCD4WIN and SARDU. All are great, but I have always been an advocate of SARDU. Recently it was suggested that I go back and take a look at Easy2Boot in comparison.
Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
Using Adobe Premiere Pro, the viewer will learn how to set up a sequence with proper settings, importing pictures, rendering, and exporting the finished product.
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.

816 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

8 Experts available now in Live!

Get 1:1 Help Now