help-cfengine
[Top][All Lists]
Advanced

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

RE: cfrun fixes and changes


From: Bas van der Vlies
Subject: RE: cfrun fixes and changes
Date: Wed, 06 Feb 2002 15:30:37 +0100 (MET)

This patch is ONLY for cfengine 1.6.X versions. I have just downloaded 2.0a16
and have noticed that the syntax has changed. Sorry for the confusion. I will
try to port it to 2.0 serie.

        Regards

On 06-Feb-2002 Bas van der Vlies wrote:
> This is for cfengine-1.6.3 (but 2.0a15 has the same cfrun.c file).
> 
> I have made the following changes to cfrun.c:
>   -) I got some output but not all the output of a client.
>      Fixed it. 
> 
>   -) When running cfrun it displays "connection to host <hostname>"
>      now it also display "connection <hostname> done". It was
>      "connection done..". Now we can easily check which hosts are
>      done.
> 
>   -) The last and most difficult one. For our beowulf cluster
>      we have an firewall and behind the firewall are all the
>      nodes with a private IP-range. I want to update the nodes
>      from a central host. I know i can do a two stage configuration.
>      First to the firewall and then from the firewall to the nodes.
> 
>      But we already use SNAT (Source Network Address Translation) and 
>      DNAT (Destination ...) for the nodes. With DNAT you can say that socket 
>      22000 on the firewall is routed to <node-name>:5308. DNAT gives
>      use the possibilty to update the nodes from a central server in one
>      step instead of two.
> 
>      I have made some changes to cfrun.c that can handle the optional
>      port command. If the port command is given cfrun uses this to
>      connect to the client instead of the default (5308) one.
> 
>      Here is an example (cfrun.hosts):
>              node1.sara.nl
>              node2.sara.nl port=22000 -DNis
>              node2.sara.nl port=22001
> 
>     This connect to:
>      1) node1 with standard port
>      2) node2 with port 22000 and extra options -DNis
>      2) node2 with port 22000
> 
> 
> This are the fixes/changes i have made to cfrun.c. It is tested on
> Debian Linux, IRIX and AIX.
> 
> The diff is just as big as the new cfrun.c. So the attachment is the
> new cfrun.c file instead of a diff.
> 
> --
> ********************************************************************
> *                                                                  *
> *  Bas van der Vlies                     e-mail: basv@sara.nl      *
> *  SARA - Academic Computing Services    phone:  +31 20 592 8012   *
> *  Kruislaan 415                         fax:    +31 20 6683167    *
> *  1098 SJ Amsterdam                     WWW:    www.sara.nl       *
> *                                                                  *
> ********************************************************************

--
********************************************************************
*                                                                  *
*  Bas van der Vlies                     e-mail: basv@sara.nl      *
*  SARA - Academic Computing Services    phone:  +31 20 592 8012   *
*  Kruislaan 415                         fax:    +31 20 6683167    *
*  1098 SJ Amsterdam                     WWW:    www.sara.nl       *
*                                                                  *
********************************************************************



reply via email to

[Prev in Thread] Current Thread [Next in Thread]