Greetings,

Consider this policy:

body common control {

         bundlesequence => {
                 "main",
         };

         inputs => {
                 "cfengine_stdlib.cf",
         };
}

bundle agent main {

         methods:

         "any" usebundle => test;

}

bundle agent test {

         vars:

                 'clients' slist => { hostsseen( "2", "lastseen", "address" ) },
                         policy => 'free';

         classes:

                 'go' expression => isvariable( 'clients' );

         reports:

                 go::
                         "Hosts: $(clients)";
}

No hosts reported?

ettin:~/masterfiles# cf-agent -IKf ./hosts.cf 
R: Hosts: $(clients)

I know that hosts are checking in.  There is even a current lastseen db file:

ettin:~/masterfiles# ls -ltr /var/cfengine/cf_lastseen.tcdb
-rw-r--r-- 1 root root 530560 Apr 20 21:37 /var/cfengine/cf_lastseen.tcdb

Why does this policy no longer working since I changed to 3.3?

-- 
Neil Watson
Linux/UNIX Consultant
http://watson-wilson.ca
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to