how to get the index of a list

2010-04-29 Thread liuyidaojian
hi All, We have a partition based system, a list of machines from partition 0 to (n-1) We want to pass partition number to every agent, let them know which partition it is running. how can i achieve this? thanks, php 网易为中小企业免费提供企业邮箱(自主域名)___ Help-c

Hot to specify cfruncommand dynamically

2010-04-22 Thread liuyidaojian
hi All, Sometimes,I want to execute one-time promises for status checking etc. Seems it is not available in runagent control promises. I know it is probablly for security issue. But sometimes it is useful for me. hangping ___ Help-cfengine mailing list H

cf-serverd hang?

2010-04-18 Thread liuyidaojian
Client hangs for more than 10mins, and then it switches to the second policy server, anyone meets this before? Client log: cf3 No existing connection to 10.96.72.56 is established... cf3 Set cfengine port number to 5308 = 5308 cf3 Connect to 10.96.72.56 = 10.96.72.56 on port 5308 cf3 LastSaw host

How to deploy new conf(update.conf)

2010-03-19 Thread liuyidaojian
hi Guys, I am a newbee of cfengine, How do you deploy new conf files for policy servers, a) stop cf-serverd, deploy it and bring up cf-serverd b) Just override old one. For both methods, there is risk that currently some client is conneting to server and partly updated. So is there a way to let

Re: editing old school cron tables

2010-03-04 Thread liuyidaojian
If someone manually updated crontab or some other scripts updated crontab between "Editing the file" and “last step installing new crontab”, the crontab will be overwritten, something will definately lost. This is a race condition. However this will also happen when two guys manually editing cro

Re:Re: How to ensure cf-agent run as expected

2010-03-03 Thread liuyidaojian
Thanks Watson, Seems we can combine cf-runagent and cf-execd, just let cf-runagent ensure cf-execd in the crontab and this is cheap. Thanks, Ping. 在2010-03-03?22:55:05,nwat...@symcor.com?写道: >Use?edit?files?to?add?a?cf-execd?cron?entry.??There?are?examples?on?this? >list?and?in?online?document

How to ensure cf-agent run as expected

2010-03-03 Thread liuyidaojian
hi, I am a newbee to cfengine and just go through the refrence and tutorial. There are two ways to run cf-agent: a) install cf-execd in crontab on every agent machine. b) use cf-runagent to trigger. My question is how to ensure cf-agent there(in case someone remove the dir) and run as expect

is Cfengine working for heterogeneous cluster

2010-03-02 Thread liuyidaojian
hi All, We have many sub systerms, totally hundreds of machines. There are tens of different cron jobs running on these machines, is cfengine fit for managing different machines(promise is diff) in a central way? Maybe we can just divide them into homogenous groups? thanks, php ___