[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: IPRange classes not working for me
From: |
Brendan Strejcek |
Subject: |
Re: IPRange classes not working for me |
Date: |
Sun, 1 Aug 2004 11:25:48 -0500 |
User-agent: |
Mutt/1.3.28i |
Donald Zoch wrote:
> I've tried the following also to indicate any 192.168.x.x ip
> address and that didn't seem to work either.
> tx = ( IPRange(192.168.0.0/16) )
This seems to work fine for me. Here is a simple example:
$ cat ~/bin/IPRange.cf
#!/usr/sbin/cfagent -qKf
classes: a = ( IPRange(128.135.0.0/16) ) b = ( IPRange(192.168.0.0/16) )
control: actionsequence = ( shellcommands ) a:: v = ( aa ) b:: v = ( bb )
shellcommands: a:: "/bin/echo a" b:: "/bin/echo b" any:: "/bin/echo ${v}"
$ ~/bin/IPRange.cf
cfengine::/bin/echo a: a
cfengine::/bin/echo aa: aa
$ cfagent -V | grep cfengine
GNU cfengine 2.1.7
$
What version are you using?