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.

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to