Re: CFEngine Help: Re: variable expansion

2012-10-03 Thread Abid Khwaja
On Oct 3, 2012, at 4:13 PM, no-re...@cfengine.com wrote: > Forum: CFEngine Help > Subject: Re: variable expansion > Author: weijianliao > Link to topic: https://cfengine.com/forum/read.php?3,27652,27654#msg-27654 > > How if you run with -vvv arguments to see if there is any useful messages? > I

Re: CFEngine Help: variable expansion

2012-10-03 Thread Abid Khwaja
On Oct 3, 2012, at 1:55 PM, no-re...@cfengine.com wrote: > > aix01 ~/.cfagent/inputs $ cf-agent -KI > -> Making a one-time restart promise for $(def.service) > > > In the second case, $(def.service) is not being expanded. Just tried this in 3.3.5 - it works properly. __

Re: fileexists() and regular expressions

2012-09-15 Thread Abid Khwaja
On Sep 16, 2012, at 5:21 AM, Aleksey Tsalolikhin wrote: > On Fri, Sep 14, 2012 at 4:37 AM, Abid Khwaja wrote: >> It would be good to find out the reasoning behind why fileexists() doesn’t >> allow regexs. > > I am happy to see Nakarin opened ticket 1160 to add regex s

Re: reporting on existence of files in a directory

2012-09-14 Thread Abid Khwaja
On Aug 28, 2012, at 8:50 PM, Aleksey Tsalolikhin wrote: > Try this, it's more native to CFEngine, though I still use an external > command to report the detected file. > > # Report all files in directory /tmp/. matching regex pattern \w.* > > bundle agent example > > { > files: > > "/t

Re: CFEngine Help: Re: reporting on existence of files in a directory

2012-08-27 Thread Abid Khwaja
Brilliant! Nakarin, that works perfectly - exactly as is. I went with the following though because I care only if files exist or not - one more condition I added to the requirements is that the command to check if files are in the directory should not execute on any node other than a Weblogic

Re: reporting on existence of files in a directory

2012-08-26 Thread Abid Khwaja
ts() function. You can use it to set a class > which you can link to a reports promise. > > Yours, > Aleksey > > On Aug 25, 2012 9:03 AM, "Abid Khwaja" wrote: > I’m running community 3.2.3. > > My goal is to notify a group of non-technical users whenever th

reporting on existence of files in a directory

2012-08-25 Thread Abid Khwaja
I’m running community 3.2.3. My goal is to notify a group of non-technical users whenever there are files in a particular directory - the normal state is that the directory should be empty. I’m currently doing this via the following: bundle agent main { files: “/apps/myApp_files/er

Re: CFEngine Help: Re: how does depth_search work?

2012-08-09 Thread Abid Khwaja
So it’s a known issue - thanks for confirming. On Aug 9, 2012, at 10:57 AM, no-re...@cfengine.com wrote: > Forum: CFEngine Help > Subject: Re: how does depth_search work? > Author: phnakarin > Link to topic: https://cfengine.com/forum/read.php?3,26947,26977#msg-26977 > > I planed to use depth_s

Re: how does depth_search work?

2012-08-09 Thread Abid Khwaja
On Aug 9, 2012, at 6:29 AM, Aleksey Tsalolikhin wrote: > Hi, Abid. I agree with Nakarin - this smells like a bug. What > happens using the latest stable version (3.3.5) ? > > Best, > Aleksey Hi Aleksey. With 3.3.5, the behavior is the same. Given this: body common control { bundlesequence

how does depth_search work?

2012-08-08 Thread Abid Khwaja
cf3.2.3 Given the following: "dir_wl10domain" string => "/apps/bea10/user_projects/domains”; "$(def.dir_wl10domain)" file_select => name_age(".*\.out00.*","60"), depth_search => recurse("3"), delete => tidy; body dep

Re: referencing a global variable

2012-08-07 Thread Abid Khwaja
On Aug 7, 2012, at 5:00 PM, Ted Zlatanov wrote: > Yes, correct, variables are always local to their bundle and must be named > with the full scope. Classes are not, so classes defined in common bundles > are global while classes defined in agent bundles are local and inaccessible > outside the

referencing a global variable

2012-08-07 Thread Abid Khwaja
cf3.2.3 with the following: bundle common def { vars: "dir_wl10domain" string => "/apps/bea10/user_projects/domains”; classes: "WL10Host"expression => fileexists("$(dir_wl10domain)”); } bundle agent main { files: WL10Host:: “$(def.dir_wl10domain)" fil

Re: the need for cf-serverd on CF3 clients

2012-04-30 Thread Abid Khwaja
On Apr 30, 2012, at 3:19 PM, Nick Anderson wrote: > As far as how to stop it from happening I suspect that cf-serverd is > being started during your update/failsafe. Look in your body executor > control. What is the exec_command? I suspect its something like > "$(sys.cf_twin) -f failsafe.cf && $(s

the need for cf-serverd on CF3 clients

2012-04-29 Thread Abid Khwaja
I have a client CF3 host (cfengine 3.2.3) that is running the policy below. When I run "cf-execd --no-fork”, I see that 2 additional processes are started: cf-monitord & cf-serverd. Shouldn’t cf-serverd only run the the CF3 master host? There is nothing in this policy that would tell the cli

Re: allowconnects matching clarification needed

2012-02-18 Thread Abid Khwaja
bid, > > The allowconnects, allowallconnects, admit, trustkeysfrom, and skipverify > attributes all accept both CIDR notation and regular expressions, and will do > the correct thing. > > --Diego > > > On Feb 17, 2012, at 6:32 AM, Abid Khwaja wrote: > >>

allowconnects matching clarification needed

2012-02-17 Thread Abid Khwaja
Today I begin the conversion of our CF2 environment to CF3. Some basic questions I would like clarification on please. In the below: allowconnects => { "127.0.0.1" , "::1", @(def.acl) }; Each of the 3 items within brackets are regex’s. But, at an examples CF3 code site, I see

Re: Security Tools and Root Access

2011-08-12 Thread Abid Khwaja
On Aug 13, 2011, at 5:48 AM, Aleksey Tsalolikhin wrote: > On Fri, Aug 12, 2011 at 5:47 PM, Tom Tucker wrote: >> >> 1) Are you aware of a wrapper, unique shell or simiar tool that could >> provide root level access at a read only level? > > There is no such thing in UNIX. If you have super-us

Re: Cfengine Help: Re: check for existence of files > 30 minutes old

2011-06-02 Thread Abid Khwaja
On May 31, 2011, at 4:25 PM, no-re...@cfengine.com wrote: > Forum: Cfengine Help > Subject: Re: check for existence of files > 30 minutes old > Author: neilhwatson > Link to topic: https://cfengine.com/forum/read.php?3,22276,22325#msg-22325 > > I assume that you are working witha legacy CF2 insta

check for existence of files > 30 minutes old

2011-05-30 Thread Abid Khwaja
I need some advice/help with this task - googling for the solution mostly points me to the docs which I’m not understanding completely. I’m trying to have cfengine (2.x) look in a specific directory tree and find all files that end in “part” that are greater than 30 minutes old - once found, I