On Mon, Apr 11, 2011 at 05:32:17PM -0400, no-re...@cfengine.com wrote:
>Forum: Cfengine Help
>Subject: Re: detecting new IP address?
>Author: matter
>Link to topic: https://cfengine.com/forum/read.php?3,21380,21419#msg-21419
>
>One way is to keep a file locally, say perhaps dump the current interfaces 
>with getindices and sys.ipv4. Use editfiles to insert the IPs, then use a 
>tripwire hash on the file to detect changes. CFengine will not update the file 
>if the address are already in there, but will if there is a change. The change 
>will be picked up by the tripwire. Ugly and expensive, but it is one way to do 
>it.
>
>The first iteration will activate the tripwire, but after that, only a 
>new/change in IPs will be detected.


Hmm...that's clever and built in.  I've not worked with any of the
tripwire functions in cf3 as yet, but it may be time to start.

Thanks for all the replies.


-- 
Jesse Becker
NHGRI Linux support (Digicon Contractor)
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to