Re: Re: Commands for communicating among nodes?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You might also want to have a look at com-dsh as part of comoonics-cs-py 
(python based version of pydsh to be got from  
http://download.atix.de/yum/comoonics/redhat-el5/productive/noarch/RPMS/comoonics-cs-py-0.1-56.noarch.rpm). 
It should automatically detect all "online" nodes in the cluster and then 
issue the command on all nodes. It also detects the node you are working on 
and will issue this command directly. See below for an example.

[root@generix3 ~]# cman_tool nodes
Node  Sts   Inc   Joined               Name
   2   M     12   2009-05-05 10:06:24  generix2.local
   3   M      4   2009-05-05 09:37:02  generix3.local
   4   M     32   2009-05-05 10:14:49  generix4.local
[root@generix3 ~]# com-dsh hostname
Host           | Output:
---------------+-------------------------------------------------------------------------------------------------------------------------------------------
localhost      | generix3
generix2.local | generix2
generix4.local | generix4
[root@generix3 ~]# rpm -qf $(which com-dsh)
comoonics-cs-py-0.1-56

Hope this helps
Marc.
On Saturday 04 July 2009 15:13:49 Juan Ramon Martin Blanco wrote:
> On Sat, Jul 4, 2009 at 12:19 PM, Brady Vass <brdvss@xxxxxxxxx> wrote:
> >  Hi,
> >
> >> I am trying to find out if there are any dedicated commands that allows
> >> for file copying or command execution among nodes in RHCS. i.e, these
> >> commands need to be exclusive with the RHCS s/w and the communication
> >> should be seamlessly without the need for password authentications.
> >>
> >> (PS: I dont want to use rsh/ssh genre of commands. Other HA solution
> >> comes with exclusive set of cluster commands. I am looking for something
> >> similar.)
> >
> > You can always use public key authentication with ssh and scp,
>
> communication will be seamless. You can also use dsh (or any parallel shell
> on top of ssh) to execute the same command on all the nodes at once.
>
> Greetings,
> Juanra
>
> > Thanks and regards,
> >
> >> Brady
> >
> > --
> > Linux-cluster mailing list
> > Linux-cluster@xxxxxxxxxx
> > https://www.redhat.com/mailman/listinfo/linux-cluster



-- 
Gruss / Regards,

Marc Grimme
Phone: +49-89 452 3538-14
http://www.atix.de/               http://www.open-sharedroot.org/

ATIX Informationstechnologie und Consulting AG | Einsteinstrasse 10 |
85716 Unterschleissheim | www.atix.de | www.open-sharedroot.org

Registergericht: Amtsgericht Muenchen, Registernummer: HRB 168930, USt.-Id.: 
DE209485962 | Vorstand: Marc Grimme, Mark Hlawatschek, Thomas Merz (Vors.) |
Vorsitzender des Aufsichtsrats: Dr. Martin Buss

--
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster

[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux