Managing Systems and Workgroups: A Guide for HP-UX System Administrators

Configuring a System
Using Distributed Systems Administration Utilities
Chapter 3 183
Check for white space within the configuration files. As a general
rule, using white space can improve readability. One common issue is
omitted whitespace within parentheses. For example, functions
should have no space between the function name and leading
parenthesis but the function itself requires leading and trailing
whitespace within the enclosing parentheses. For example, the
following shows the use of required leading and trailing whitespace.
control:
my_variable = ( ExecResult(/bin/ls -l) )
In the example above, cfengine is reporting a syntax error on line
39 of the update.conf. It is possible that the error is a whitespace
error from line 38 in the file.
5. Unable to connect to a cfengine client or master.
# cfrun
cfrun(0): .......... [ Hailing host1 ] ..........
cfrun(0): .......... [ Hailing host2 ] ..........
cfrun:host2: Couldn’t open a socket
cfrun:host2: socket: Connection refused
Check that the cfservd daemon on host2 is configured and running.
Use /sbin/init.d/cfservd start to start cfservd if it is not
running.
6. “Can’t stat” messages
When running using either cfrun or cfagent you might get “can’t
stat”errors. For example:
host1: Can’t stat
/var/opt/dsau/cfengine_master/master_files/etc/test in copy
Check your master file repository, and ensure that the file in
question is available and has the right permissions.
7. “Couldn’t open a socket ”or “unable to establish connection:”errors
cfagent and cfrun can display errors such as: