RE: Trouble with cf-execd

2010-03-15 Thread Bruce Carleton
Ah, that would do it. I thought they were existing classes, and I didn't check out cf-agent -v to see if they were really being set. Thanks, --Bruce -Original Message- From: Mark Burgess [mailto:mark.burg...@iu.hio.no] Sent: Monday, March 15, 2010 2:53 PM To: B

Re: Trouble with cf-execd

2010-03-15 Thread Mark Burgess
Bruce, the classes in your schedule are just made up ;-) Such classes do not exist, so they will never be matched. You could start by removing the schedule for a default of every five minutes. Bruce Carleton wrote: > I'm setting up a new cfengine infrastructure with cf3 and I think I'm > having

Re: tcpread help

2010-03-15 Thread Aleksey Tsalolikhin
Dear Neil, I ran into this a couple of days ago. The HTTP protocol requires a blank line at the end of the request. Here is an example using Cfengine 2 syntax: ReadTCP(www.google.com,80,"GET /cfengine_probe HTTP/1.0${n}${n}",1024) Best, -at On Sat, Mar 13, 2010 at 12:25 PM, Mark Burg

Trouble with cf-execd

2010-03-15 Thread Bruce Carleton
I'm setting up a new cfengine infrastructure with cf3 and I think I'm having some trouble getting cf-execd to run cf-agent. Here's my executor control body: body executor control { splaytime => "1"; mailto => "bruce.carle...@jasperwireless.com"; smtpserver => "localhost"; mailmaxlines => "30"; s

Re: Unable to lookup hostname message

2010-03-15 Thread Mark Burgess
Unlikely to be anything to do with Cfengine. It's a name service failure. nwat...@symcor.com wrote: > Has anyone seen this message from cf-agent? I'm seeing it randomly on > Community 3.0.4 hosts. > > Unable to lookup hostname (true) or cfengine service: Name or service not > known > > Sincer

RE: canonify promise_repaired

2010-03-15 Thread Ingersoll, Robert
I'm not sure if this is telling me it's unsupported, syntactically incorrect, or a bug? cf-agent -KI -b test -f ./test.cf !!! No bundlesequence in the common control body >> Using command line specified bundlesequence -> Rotating files /tmp/alert.log in 10 fifo Validation: Class item on rhs of

Re: canonify promise_repaired

2010-03-15 Thread NWatson
Does -I or -v show anything interesting? What version are you running? 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 are n

canonify promise_repaired

2010-03-15 Thread Ingersoll, Robert
Should this work? It seems the promise_repaired class never gets defined. "$(LogRotate)" action => ifelapsed("120"), classes => repaired("logrotate_$(this.promiser)"), rename => rotate("10"); body classes repaired(class) { promise_repaired => { canonify("$(

Unable to lookup hostname message

2010-03-15 Thread NWatson
Has anyone seen this message from cf-agent? I'm seeing it randomly on Community 3.0.4 hosts. Unable to lookup hostname (true) or cfengine service: Name or service not known Sincerely, -- Neil Watson 416-673-3465 CONFIDENTIALITY WARNING This communication, including any attachments, is for th

Re: process miscounting?

2010-03-15 Thread NWatson
Probably not related but it is worth noting that when cf-exec -F is run it overwrites cf-exec.pid so that the pid file no longer matched the cf-execd running the background. Sincerely, -- Neil Watson 416-673-3465 CONFIDENTIALITY WARNING This communication, including any attachments, is for th

Private classes - How do they work?

2010-03-15 Thread Lebel, Marco
Hello all, Assuming the following : body common control { bundlesequence => { "groups" }; } bundle agent groups { vars: "gid"int => 0; "server_list"int => 1; "group[avatar][$(gid)]" string => "500"; "group[avatar][$(server_list)]" strin

Cfengine Nova 1.1 released

2010-03-15 Thread Mark Burgess
Cfengine Nova 1.1 is the bi-annual upgrade of the Nova edition, containing new features and bug fixes for new and existing users. New in this release is native support for Windows platforms, including registry management and Windows service support. Nova 1.1 offers an updated semantic Knowledge Ma

upgrading cf binaries

2010-03-15 Thread NWatson
I seem to have a race problem I can't work my head around. Suppose I have multiple files promises to keep cf client files up to date: "/var/cfengine/bin/" copy_from classes => ucdefine( "cf_upgraded", "cffiles_failed" ); "/var/cfengin

Re: registryvalue

2010-03-15 Thread NWatson
help-cfengine-boun...@cfengine.org wrote on 2010-03-15 10:32:46: > No, Windows features are Nova (or above) only. OK. To me it is a bit unclear as to what features are Nova only. CONFIDENTIALITY WARNING This communication, including any attachments, is for the exclusive use of addressee and

Re: registryvalue

2010-03-15 Thread Eystein Måløy Stenberg
No, Windows features are Nova (or above) only. -- Regards, Eystein 2010/3/15 : > Greetings, > > Does the registryvalue function work in Community? > > Sincerely, > -- > Neil Watson > 416-673-3465 > > > > CONFIDENTIALITY WARNING > This communication, including any attachments, is for the exclusiv

Re: Howto escape double qoutes used in a string

2010-03-15 Thread Erlend Leganger
Just a variantion of Nakarin's answer - if you wanted the end result to become: access example "usm auth exact all none none" then the correct escaping would be "snmp2" string =>  "access example \"usm auth exact all none none\""; - Erlend On 15 March 2010 10:57, Nakarin Phooripoom wrote: > >

registryvalue

2010-03-15 Thread NWatson
Greetings, Does the registryvalue function work in Community? 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 are not the in

Re: Howto escape double qoutes used in a string

2010-03-15 Thread Nakarin Phooripoom
Simply add backslash (\) right in front of the inner quotation marks. "snmp2" string => "access example \"\" usm auth exact all none none"; Cheers, --Nakarin On Mar 15, 2010, at 10:47 AM, Patrick de Ruiter wrote: > Hi Guys, > > I'm currently strugling with the problem of escaping double quo

Howto escape double qoutes used in a string

2010-03-15 Thread Patrick de Ruiter
Hi Guys,   I'm currently strugling with the problem of  escaping double quotes in a string.      vars:   linux.!redhat_s_4::     "snmp1" string => "group example usm example";     "snmp2" string =>  "access example "" usm auth exact all none none"; # THIS IS THE CULPRIT     "s