Hello. I would appreciate any insight you might have regarding my readlink problem. I am puzzled by the sporadic nature of these errors since I have been using this format for months with no problems. Below is a sample of the logs messages seen and a condensed promise example.
Assuming I have a syntax error in my promise shouldn't I see this error consistently? Thank you in advance, Log Messages //////////////////////////////////////////////////////////////////////////////////////////////// Sep 12 08:29:01 cms7001a cf3[11267]: [ID 823470 user.error] Unable to read link /data/cms in filter Sep 12 08:29:01 cms7001a cf3[11267]: [ID 823470 user.error] !!! System error for readlink: "Invalid argument" ///////////////////////////////////////////////////////////////////////////////////////////////// bundle agent solaris_symlinks { classes: "cms_system_regex" expression => classmatch("^cms7..*"); vars: "masterfiles" string => "/var/cfengine/masterfiles"; "ps_servers" slist => { @(g.phost) }; files: # ******************************** sunos_5_10.cms_system_regex:: "/data/cms" file_select => check_symlink, delete => tidy; sunos_5_10.cms_system_regex:: "/data/cms" link_from => ln_s("/net/system/netapp_filer/cms"); } body file_select check_symlink { issymlinkto => { "/net/system/filerx" }; file_result => "leaf_name"; }
_______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine