Re: tcpread help

2010-03-16 Thread Aleksey Tsalolikhin
I meant to say, out of one of Mark's Cfengine 2 documents. On Tue, Mar 16, 2010 at 7:06 PM, Aleksey Tsalolikhin wrote: > Hi, Deb.  You are most welcome.  I copied it out of one of Mark's > Cfengine2, I imagine.  So thanks to Mark! > > Truly, > -at > > 2010/3/16 Deb Heller-Evans : >> Elegant! Than

Re: tcpread help

2010-03-16 Thread Aleksey Tsalolikhin
Hi, Deb. You are most welcome. I copied it out of one of Mark's Cfengine2, I imagine. So thanks to Mark! Truly, -at 2010/3/16 Deb Heller-Evans : > Elegant! Thanks for sharing! > > > Kind Regards, > deb ツ > > Deb Heller-Evans                1 Cyclotron Road > Computer Systems Engineer       Ber

Re: tcpread help

2010-03-16 Thread Deb Heller-Evans
Elegant! Thanks for sharing! Kind Regards, deb ツ Deb Heller-Evans1 Cyclotron Road Computer Systems Engineer Berkeley, CA 94720 ESnet http://www.es.net/ Desk: 510/495-2243 On Mon, 15 Mar 2010 14:26:24 -0700, Aleksey Tsalolikhin wrote: > Dear Neil, > > I ran into

cfservd rereading config file undefines OS classes

2010-03-16 Thread Michael Durket
When cfservd detects that its cfservd.conf file has been changed, it seems to undefine all the classes it defined in the first place before reprocessing the newly-changed configuration file. When it then goes to rebuild the classes, all the OS definitions (like 'redhat', etc) are not defined ag

RE: canonify promise_repaired

2010-03-16 Thread Justin Lloyd
Scratch that theory. Given this test bundle: bundle agent test { vars: "mylist" slist => { "foo", "bar" }; classes: "$(mylist)" expression => regcmp(".*", "$(mylist)"); reports: foo:: "class foo is set"; bar:: "class bar is se

RE: canonify promise_repaired

2010-03-16 Thread Justin Lloyd
Neil, I've been trying to do something similar and have a ticket open. However, you're doing this in an agent bundle and I'm doing it in a common bundle, and I'm told that the common bundles do the expansion differently from agent bundles. Thus, moving my class creation into an agent bundle may

Re: canonify promise_repaired

2010-03-16 Thread NWatson
I'm half into a test case. If you like I'll complete tomorrow and post here. Sincerely, -- Neil Watson 416-673-3465 CONFIDENTIALITY WARNING This communication, including any attachments, is for the exclusive use of addressee and may contain proprietary and/or confidential information. If you

Re: canonify promise_repaired

2010-03-16 Thread Mark Burgess
I am seeing reports that something has changed wrt variable expansion. We'll look into this soon. nwat...@symcor.com wrote: > I wonder if the following is related. I'm seeing this message: > > R: WARNING: ^\s*dictionlist\s*=\s*/usr/share/dict/words\s* not found in > /etc/security/ > user >

RE: canonify promise_repaired

2010-03-16 Thread NWatson
I wonder if the following is related. I'm seeing this message: R: WARNING: ^\s*dictionlist\s*=\s*/usr/share/dict/words\s* not found in /etc/security/ user !! Class identifier contains illegal characters Promise (version not specified) belongs to bundle 'grepfile' in file '/var/cfengine/in puts

RE: auto define command promises to be executable but isn't

2010-03-16 Thread NWatson
I see the same results. [r...@unxxhd01 inputs]# cf-agent -If ./foo.cf -> Executing '/bin/ls -l /home/nwatson/bin/foo.sh' ...(timeout=-678,owner=-1,group=-1) Q: ".../bin/ls -l /hom": -rwxr--r-- 1 nwatson essi 34 Mar 16 15:29 /home/nwatson/bin/foo.sh I: Last 1 QUOTEed lines were generated by pr

RE: auto define command promises to be executable but isn't

2010-03-16 Thread Ingersoll, Robert
That works, too. Do you have any commands not root owned that work when running the agent as root? Thanks -Original Message- From: nwat...@symcor.com [mailto:nwat...@symcor.com] Sent: Tue 3/16/2010 3:20 PM To: Ingersoll, Robert Cc: help-cfengine@cfengine.org; help-cfengine-boun...@cfen

RE: auto define command promises to be executable but isn't

2010-03-16 Thread NWatson
What happens if you keep the mode at 544 and change the owner from bin to root? Sincerely, -- Neil Watson 416-673-3465 CONFIDENTIALITY WARNING This communication, including any attachments, is for the exclusive use of addressee and may contain proprietary and/or confidential information. If y

RE: auto define command promises to be executable but isn't

2010-03-16 Thread Ingersoll, Robert
The agent is running as root. The only difference for inetd I've noticed is that it's only executable by root whereas the other commands that work are executable by anyone. Specifying auto__etc_inetd_conf:: "/usr/sbin/inetd -c" contain => owner(root) body contain owner(owner) { ex

Re: auto define command promises to be executable but isn't

2010-03-16 Thread NWatson
inetd is set to mode 544 owner bin:bin. Is the agent running as a user that has enough rights? Have you tested with other seemingly executable files? I run a few commands on my lab host and I haven't see this error. Sincerely, -- Neil Watson 416-673-3465 CONFIDENTIALITY WARNING This commun

auto define command promises to be executable but isn't

2010-03-16 Thread Ingersoll, Robert
Is this a bug? maryann:/home/root/inputs# cf-agent -KI -b test -f ./inetd.cf |tee /tmp/cfagent.out !!! No bundlesequence in the common control body >> Using command line specified bundlesequence -> Copying from maryann.dcpds.cpms.osd.mil:/var/cfengine_master/master_files/etc/inetd.conf -> Ow

Re: using showstate

2010-03-16 Thread NWatson
cf-monitord has been running off and on for months. It was definitely running when I demonstrated that test. Sincerely, -- Neil Watson 416-673-3465 CONFIDENTIALITY WARNING This communication, including any attachments, is for the exclusive use of addressee and may contain proprietary and/or

Re: using showstate

2010-03-16 Thread Mark Burgess
Are you running cf-monitord ? I would guess not... nwat...@symcor.com wrote: > In community 3.0.4 should the following showstate variables be available? > body common control { > > bundlesequence => { "monitor" }; > > } > > ## > bundle agent monitor { > > reports: >

using showstate

2010-03-16 Thread NWatson
In community 3.0.4 should the following showstate variables be available? body common control { bundlesequence => { "monitor" }; } ## bundle agent monitor { reports: unxxhd01:: "Show state:", showstate => { "diskfree",

Re: Cfengine Nova 1.1 released

2010-03-16 Thread Erlend Leganger
On 16 March 2010 13:36, Mark Burgess wrote: > > Windows compatible binaries. No Cygwin. > > Great, I always thought requiring the Cygwin DLL was a hacky solution (even though I am an avid Cygwin user myself). Congratuations, this should make the solution more palatable to skeptic Windows centric

Re: Unable to lookup hostname message

2010-03-16 Thread NWatson
Mark Burgess wrote on 2010-03-15 17:07:58: > Unlikely to be anything to do with Cfengine. It's a name service failure. I'm not so sure that this point. It just started when I began using 3.0.4 and I've not seen any other DNS failures. No further evidence at this point so I ask that others

Re: canonify promise_repaired

2010-03-16 Thread Mark Burgess
Sorry to arrive late, here. I just tried your example and it seems to provoke a bug in two different ways. It might take a while to find the cause, so you could work around it for now like this bundle agent test { vars: "LogRotate" slist => { "alert",

RE: canonify promise_repaired

2010-03-16 Thread Ingersoll, Robert
I have tried every variation on this I can think of including moving the canonify to the classes promise (coredump) and I can't make this work. Any other suggestions on how to do this? This is with Community 3.0.4 -Original Message- From: help-cfengine-boun...@cfengine.org on behalf of

Re: Cfengine Nova 1.1 released

2010-03-16 Thread Mark Burgess
Windows compatible binaries. No Cygwin. nwat...@symcor.com wrote: > By 'native' support do you mean Windows compatible binaries or does Nova > still run through Cygwin? > > Sincerely, > -- > Neil Watson > 416-673-3465 > > > -

Re: Cfengine Nova 1.1 released

2010-03-16 Thread Nicolas Charles
Hi, Nova does not need Cygwin, it is native Windows binaries. I've been testing it, many thanks to the developers team, I find it is much more convenient with a lot of nice features (I love the translate path and the variables for each of Nova executable, and the services: type Thank you ! Nic

Re: Cfengine Nova 1.1 released

2010-03-16 Thread NWatson
By 'native' support do you mean Windows compatible binaries or does Nova still run through Cygwin? Sincerely, -- Neil Watson 416-673-3465 CONFIDENTIALITY WARNING This communication, including any attachments, is for the exclusive use of addressee and may contain proprietary and/or confidentia

Re: Hostname lookups failing

2010-03-16 Thread NWatson
help-cfengine-boun...@cfengine.org wrote on 2010-03-16 05:26:44: > cf3 Unable to lookup hostname (${phost}) or cfengine service: > Temporary failure in name resolution The variable is not being evalutated so I would start there. Sincerely, -- Neil Watson 416-673-3465 CONFIDENTIALITY WARNING

RE: canonify promise_repaired

2010-03-16 Thread Assarsson, Emil
Doh. You did the canonify already. I would have expected it to work too. Best regards, Emil Assarsson emil.assars...@sonyericsson.com Phone: +46 (0)10 8017422 From: Assarsson, Emil Sent: tisdag den 16 mars 2010 10:13 To: 'Ingersoll, Robert'; nwat...@symcor.com Cc: help-cfengine@cfengine.org; he

Re: Hostname lookups failing

2010-03-16 Thread Mark Burgess
Which promises did you add? Could there be some residual fall out from a mistake? I am assuming that you've restarted everything. Could it even be something bad in a cache? M Patrick de Ruiter wrote: > > Hi Mark, > > > > Thanks for the quick reply. > > > > For the record, I'm still

RE: Re: Hostname lookups failing

2010-03-16 Thread Patrick de Ruiter
   Hi Mark,   Thanks for the quick reply.   For the record, I'm still using 3.0.3, this because the company where I work for has a strict package only policy, so I have to wait until the packages for 3.0.4 becomes available.   I first noticed this problem while I was adding some promises,

Re: Hostname lookups failing

2010-03-16 Thread Mark Burgess
Has some other configuration changed? Was there some error in building, different libraries used, new packages installed etc? There should be no differences in this part of cfengine in 3.0.4 Patrick de Ruiter wrote: > Gent's, > > > > Since yesterday I receive a lot of errors when I run cf-ag

Hostname lookups failing

2010-03-16 Thread Patrick de Ruiter
Gent's,   Since yesterday I receive a lot of errors when I run cf-agent -K -v that it cant't resolve the hostname of the cfengine server.   Following is a snippet of cf-agent -K -v   cf3 Unable to lookup hostname (${phost}) or cfengine service: Temporary failure in name resolution cf3 Unab

RE: canonify promise_repaired

2010-03-16 Thread Assarsson, Emil
If you use $(this.promiser) you must make sure that the name of the promise is suitable as a classname. Take a look at this function: http://www.cfengine.org/manuals/cf3-reference.html#Function-canonify I guess there is some room for improvement of the documentation. Best regards, Emil Assarsso