Setup -- "live demo"

Example of quick installation on a single host:

enterprise$ ssh slogans
Password: xxxxxxx
Last login: Mon Feb 26 08:09:01 2007 from console
Have a lot of fun...

mark@slogans:~> tar zxf cfengine-2.2.0a3.tar.gz 
tar: cfengine-2.2.0a3/doc: time stamp 2007-02-26 10:10:35 is 78 s in the future
tar: cfengine-2.2.0a3/pub: time stamp 2007-02-26 10:10:26 is 69 s in the future
tar: cfengine-2.2.0a3/src: time stamp 2007-02-26 10:10:33 is 76 s in the future
tar: cfengine-2.2.0a3/contrib: time stamp 2007-02-26 10:10:33 is 76 s in the future
tar: cfengine-2.2.0a3/inputs: time stamp 2007-02-26 10:10:33 is 76 s in the future
tar: cfengine-2.2.0a3: time stamp 2007-02-26 10:10:33 is 76 s in the future


   Look's like the clock needs synchronizing!!



mark@slogans:~> cd cfengine-2.2.0a3/

mark@slogans:~/cfengine-2.2.0a3> ./configure;make
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
...
(snip)
...
checking Checking for GCC Specific compile flags... yes
checking for hostname... /bin/hostname
configure: creating ./config.status
config.status: creating pub/Makefile
config.status: creating src/Makefile
config.status: creating contrib/Makefile
config.status: creating inputs/Makefile
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating src/cflex.l
config.status: creating src/conf.h
config.status: executing depfiles commands
configure: WARNING: =====================================================
configure: WARNING: 
configure: WARNING: DFS users should use --enable-DCE
configure: WARNING: 
configure: WARNING: This version requires Berkeley db version 4.4 or
configure: WARNING: later from www.sleepycat.com - now owned by Oracle
configure: WARNING: This version requires OpenSSL 0.9.7 or later
configure: WARNING: from www.openssl.org
configure: WARNING: 
configure: WARNING: =====================================================
DONE: Configuration done. Run make/gmake to build cfengine.
Making all in pub
make[1]: Entering directory `/home/mark/cfengine-2.2.0a3/pub'
if gcc -DHAVE_CONFIG_H -I. -I. -I../src -I/usr/include/db4 -I/usr/include  -pthread  -pthread
 -g -O2 -I/usr/include/db4 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -Wreturn-type 
-Wmissing-prototypes -Wuninitialized -pthread -g -O2 -I/usr/include/db4 -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -MT getopt.o -MD -MP -MF ".deps/getopt.Tpo" -c -o getopt.o getopt.c; \
	then mv -f ".deps/getopt.Tpo" ".deps/getopt.Po"; else rm -f ".deps/getopt.Tpo"; 

exit 1; fi
...
(snip)
...
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/db4 -I/usr/include  -pthread  -g -O2 
-Wreturn-type -Wmissing-prototypes -Wuninitialized -pthread -g -O2 -I/usr/include/db4 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64   -pthread -g -O2 -I/usr/include/db4 
-D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -MT cfetoolgraph.o -MD -MP -MF ".deps/cfetoolgraph.Tpo" -c 
-o cfetoolgraph.o cfetoolgraph.c; \
	then mv -f ".deps/cfetoolgraph.Tpo" ".deps/cfetoolgraph.Po"; else rm -f 
".deps/cfetoolgraph.Tpo"; exit 1; fi
gcc -g -O2 -Wreturn-type -Wmissing-prototypes -Wuninitialized -pthread -g -O2 
-I/usr/include/db4 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64   -pthread -g -O2
 -I/usr/include/db4 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -L/usr/lib    -o 
cfetoolgraph  cfetoolgraph.o granules.o -L../pub -lpub  -ldb-4 -L/usr/lib -lcrypto 
-L../pub -lpub -lnss_nis -lpthread -lm 
make[2]: Leaving directory `/home/mark/cfengine-2.2.0a3/src'
make[1]: Leaving directory `/home/mark/cfengine-2.2.0a3/src'
Making all in contrib
make[1]: Entering directory `/home/mark/cfengine-2.2.0a3/contrib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/mark/cfengine-2.2.0a3/contrib'
Making all in inputs
make[1]: Entering directory `/home/mark/cfengine-2.2.0a3/inputs'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/mark/cfengine-2.2.0a3/inputs'
make[1]: Entering directory `/home/mark/cfengine-2.2.0a3'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/home/mark/cfengine-2.2.0a3'

Now we need to be root to install:
mark@slogans:~/cfengine-2.2.0a3> su
Password: xxxxxxxx
slogans:/home/mark/cfengine-2.2.0a3 # make install
Making install in pub
make[1]: Entering directory `/home/mark/cfengine-2.2.0a3/pub'
make[2]: Entering directory `/home/mark/cfengine-2.2.0a3/pub'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/mark/cfengine-2.2.0a3/pub'
make[1]: Leaving directory `/home/mark/cfengine-2.2.0a3/pub'
Making install in src
make[1]: Entering directory `/home/mark/cfengine-2.2.0a3/src'
make[2]: Entering directory `/home/mark/cfengine-2.2.0a3/src'
test -z "/usr/local/sbin" || mkdir -p -- "/usr/local/sbin"
  /usr/bin/install -c 'cfagent' '/usr/local/sbin/cfagent'
  /usr/bin/install -c 'cfservd' '/usr/local/sbin/cfservd'
  /usr/bin/install -c 'cfrun' '/usr/local/sbin/cfrun'
  /usr/bin/install -c 'cfkey' '/usr/local/sbin/cfkey'
  /usr/bin/install -c 'cfenvd' '/usr/local/sbin/cfenvd'
  /usr/bin/install -c 'cfenvgraph' '/usr/local/sbin/cfenvgraph'
  /usr/bin/install -c 'cfexecd' '/usr/local/sbin/cfexecd'
  /usr/bin/install -c 'cfshow' '/usr/local/sbin/cfshow'
  /usr/bin/install -c 'cfetool' '/usr/local/sbin/cfetool'
  /usr/bin/install -c 'cfetoolgraph' '/usr/local/sbin/cfetoolgraph'
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/mark/cfengine-2.2.0a3/src'
make[1]: Leaving directory `/home/mark/cfengine-2.2.0a3/src'
Making install in contrib
make[1]: Entering directory `/home/mark/cfengine-2.2.0a3/contrib'
make[2]: Entering directory `/home/mark/cfengine-2.2.0a3/contrib'
test -z "/usr/local/sbin" || mkdir -p -- "/usr/local/sbin"
 /usr/bin/install -c 'cfdoc' '/usr/local/sbin/cfdoc'
test -z "/usr/local/share/cfengine" || mkdir -p -- "/usr/local/share/cfengine"
 /usr/bin/install -c 'cfengine.el' '/usr/local/share/cfengine/cfengine.el'
make[2]: Leaving directory `/home/mark/cfengine-2.2.0a3/contrib'
make[1]: Leaving directory `/home/mark/cfengine-2.2.0a3/contrib'
Making install in inputs
make[1]: Entering directory `/home/mark/cfengine-2.2.0a3/inputs'
make[2]: Entering directory `/home/mark/cfengine-2.2.0a3/inputs'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/cfengine" || mkdir -p -- "/usr/local/share/cfengine"
 /usr/bin/install -c 'cf.chflags.example' '/usr/local/share/cfengine/cf.chflags.example'
 /usr/bin/install -c 'cf.freebsd.example' '/usr/local/share/cfengine/cf.freebsd.example'
 /usr/bin/install -c 'cf.ftp.example' '/usr/local/share/cfengine/cf.ftp.example'
 /usr/bin/install -c 'cf.groups.example' '/usr/local/share/cfengine/cf.groups.example'
 /usr/bin/install -c 'cf.linux.example' '/usr/local/share/cfengine/cf.linux.example'
 /usr/bin/install -c 'cf.main.example' '/usr/local/share/cfengine/cf.main.example'
 /usr/bin/install -c 'cf.motd.example' '/usr/local/share/cfengine/cf.motd.example'
 /usr/bin/install -c 'cf.preconf.example' '/usr/local/share/cfengine/cf.preconf.example'
 /usr/bin/install -c 'cf.services.example' '/usr/local/share/cfengine/cf.services.example'
 /usr/bin/install -c 'cf.site.example' '/usr/local/share/cfengine/cf.site.example'
 /usr/bin/install -c 'cf.solaris.example' '/usr/local/share/cfengine/cf.solaris.example'
 /usr/bin/install -c 'cf.sun4.example' '/usr/local/share/cfengine/cf.sun4.example'
 /usr/bin/install -c 'cf.users.example' '/usr/local/share/cfengine/cf.users.example'
 /usr/bin/install -c 'cfservd.conf.example' '/usr/local/share/cfengine/cfservd.conf.example'
 /usr/bin/install -c 'cfagent.conf.example' '/usr/local/share/cfengine/cfagent.conf.example'
 /usr/bin/install -c 'cfagent.conf-advanced.example' '/usr/local/share/cfengine/cfagent.conf-advanced.example'
 /usr/bin/install -c 'update.conf.example' '/usr/local/share/cfengine/update.conf.example'
 /usr/bin/install -c 'cfrc.example' '/usr/local/share/cfengine/cfrc.example'
 /usr/bin/install -c 'cfrun.hosts.example' '/usr/local/share/cfengine/cfrun.hosts.example'
make[2]: Leaving directory `/home/mark/cfengine-2.2.0a3/inputs'
make[1]: Leaving directory `/home/mark/cfengine-2.2.0a3/inputs'
make[1]: Entering directory `/home/mark/cfengine-2.2.0a3'
make[2]: Entering directory `/home/mark/cfengine-2.2.0a3'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/cfengine" || mkdir -p -- "/usr/local/share/cfengine"
 /usr/bin/install -c -m 644 'README' '/usr/local/share/cfengine/README'
 /usr/bin/install -c -m 644 'ChangeLog' '/usr/local/share/cfengine/ChangeLog'
 /usr/bin/install -c -m 644 'INSTALL' '/usr/local/share/cfengine/INSTALL'
 /usr/bin/install -c -m 644 'NEWS' '/usr/local/share/cfengine/NEWS'
make[2]: Leaving directory `/home/mark/cfengine-2.2.0a3'
make[1]: Leaving directory `/home/mark/cfengine-2.2.0a3'
Let's check compilation went well...
slogans:/home/mark/cfengine-2.2.0a3 # /usr/local/sbin/cfagent -v
Setting cfengine new port to 48148
Setting cfengine old port to 5308
Reference time set to Mon Feb 26 10:12:58 2007

GNU Configuration Engine - 
2.2.0a3
Free Software Foundation 1994-
Donated by Mark Burgess, Faculty of Engineering,
Oslo University College, Norway

------------------------------------------------------------------------

Host name is: slogans
Operating System Type is linux
Operating System Release is 2.6.18.2-34-default
Architecture = i686


Using internal soft-class linux for host linux

The time is now Mon Feb 26 10:12:58 2007


------------------------------------------------------------------------

Additional hard class defined as: 32_bit
Additional hard class defined as: linux_2_6_18_2_34_default
Additional hard class defined as: linux_i686
Additional hard class defined as: linux_i686_2_6_18_2_34_default
Additional hard class defined as: linux_i686_2_6_18_2_34_default__1_SMP_Mon_Nov_27_11_46_27_UTC_2006

GNU autoconf class from compile time: compiled_on_linux_gnu

Address given by nameserver: 128.39.89.232
Interface 1: lo
Interface 2: eth0
Trying to locate my IPv6 address
Found IPv6 address addr:
Found IPv6 address 2001:700:700:3:20f:1fff:fe92:2cd3
Found IPv6 address addr:
Found IPv6 address fe80::20f:1fff:fe92:2cd3
Found IPv6 address addr:
Looking for environment from cfenvd...

Unable to detect environment from cfenvd

cfengine:slogans: No preconfiguration file

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
 * (Changing context state to: update) *
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

Looking for an input file /var/cfengine/inputs/update.conf
(No file /var/cfengine/inputs/update.conf)
Finished with /var/cfengine/inputs/update.conf
Skipping update.conf (-F=0)

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
 * (Changing context state to: main) *
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

---------------------------------------------------------------------
Loading persistent classes
---------------------------------------------------------------------

---------------------------------------------------------------------
Loaded persistent memory
---------------------------------------------------------------------

Looking for environment from cfenvd...

Unable to detect environment from cfenvd

Looking for an input file /var/cfengine/inputs/cfagent.conf
(No file /var/cfengine/inputs/cfagent.conf)
Finished with /var/cfengine/inputs/cfagent.conf

Defined Classes = ( 128_39_89 128_39_89_232 2001_700_700_3_20f_1fff_fe92
_2cd3 32_bit Day26 February Hr10 Hr10_Q1 Min10_15 Min12 Monday Q1 SuSE 
Yr2007 addr_ any cfengine_2 cfengine_2_2 cfengine_2_2_0a3 compiled_on_linux_gnu
fe80__20f_1fff_fe92_2cd3 hio_no i686 ipv4_128 ipv4_128_39 ipv4_128_39_89 
ipv4_128_39_89_232 iu_hio_no linux linux_2_6_18_2_34_default linux_i686 
linux_i686_2_6_18_2_34_default linux_i686_2_6_18_2_34_default__1_SMP_
net_iface_eth0 net_iface_lo no slogans slogans_iu_hio_no suse suse_10 
suse_10_2 suse_n/a )

Negated Classes = ( )

Installable classes = ( no_default_route )

Global expiry time for locks: 120 minutes

Global anti-spam elapse time: 1 minutes

Extensions which should not be directories = ( )
Suspicious filenames to be warned about = ( )
cfengine:slogans::0: Warning: actionsequence is empty 
cfengine:slogans::0: Warning: perhaps cfagent.conf/update.conf have not yet been set up?
Accepted domain name: iu.hio.no

LogDirectory = /var/cfengine
cfengine:slogans: Couldn't find a private key (/var/cfengine/ppkeys/localhost.priv) - use cfkey to get one
cfengine:slogans: open: No such file or directory

Checksum database is /var/cfengine/checksum_digests.db
Default binary server seems to be slogans
Reference time set to Mon Feb 26 10:12:58 2007

---------------------------------------------------------------------
Alerts
---------------------------------------------------------------------



++++++++++++++++++++++++++++++++++++++++
Summary of objects involved
++++++++++++++++++++++++++++++++++++++++

    global
    update
    main

Now we need a policy: (quick'n'dirty)

slogans:/home/mark/cfengine-2.2.0a3 # cat /var/cfengine/inputs/cfagent.conf

control:

 actionsequence = ( editfiles shellcommands )

 cfengine_dir = ( /var/cfengine )

editfiles:

SuSE::

  { /var/spool/cron/tabs/root
 
  AutoCreate
  AppendIfNoSuchLine "0,15,30,45 * * * * ${cfengine}/bin/cfexecd -F"
  }


shellcommands:

 # Synch that clock!

 "/usr/sbin/ntpdate cube.iu.hio.no" 

slogans:/home/mark/cfengine-2.2.0a3 # cat /var/cfengine/inputs/update.conf


#
# Simplest version - separate this from main config
#

control:

  actionsequence = ( copy )

 install_dir  = ( /usr/local/sbin )
 cfengine_dir = ( /var/cfengine/bin )


copy:

  ${install_dir}/cfagent dest=${cfengine_dir}/cfagent

And we run the agent on this:
slogans:/home/mark/cfengine-2.2.0a3 # /usr/local/sbin/cfagent -v

Reference time set to Mon Feb 26 10:19:12 2007

GNU Configuration Engine - 
2.2.0a3
Free Software Foundation 1994-
Donated by Mark Burgess, Faculty of Engineering,
Oslo University College, Norway

------------------------------------------------------------------------

Host name is: slogans
Operating System Type is linux
Operating System Release is 2.6.18.2-34-default
Architecture = i686


Using internal soft-class linux for host linux

The time is now Mon Feb 26 10:19:12 2007


------------------------------------------------------------------------

Additional hard class defined as: 32_bit
Additional hard class defined as: linux_2_6_18_2_34_default
Additional hard class defined as: linux_i686
Additional hard class defined as: linux_i686_2_6_18_2_34_default
Additional hard class defined as: linux_i686_2_6_18_2_34_default__1_SMP_Mon_Nov_27_11_46_27_UTC_2006

GNU autoconf class from compile time: compiled_on_linux_gnu

Address given by nameserver: 128.39.89.232
Interface 1: lo
Interface 2: eth0
Trying to locate my IPv6 address
Found IPv6 address addr:
Found IPv6 address 2001:700:700:3:20f:1fff:fe92:2cd3
Found IPv6 address addr:
Found IPv6 address fe80::20f:1fff:fe92:2cd3
Found IPv6 address addr:
Looking for environment from cfenvd...

Unable to detect environment from cfenvd

cfengine:slogans: No preconfiguration file

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
 * (Changing context state to: update) *
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

Looking for an input file /var/cfengine/inputs/update.conf
Finished with update.conf

---------------------------------------------------------------------
Looking for remote method collaborations
---------------------------------------------------------------------


Finished with RPC

Accepted domain name: iu.hio.no

LogDirectory = /var/cfengine
cfengine:slogans: Couldn't find a private key (/var/cfengine/ppkeys/localhost.priv) - use cfkey to get one
cfengine:slogans: open: No such file or directory

Checksum database is /var/cfengine/checksum_digests.db
Default binary server seems to be slogans

*********************************************************************
 Update Sched: copy pass 1 @ Mon Feb 26 10:19:12 2007
*********************************************************************

Checking copy from localhost:/usr/local/sbin/cfagent to /var/cfengine/bin/cfagent
cfengine:slogans: /var/cfengine/bin/cfagent wasn't at destination (copying)
cfengine:slogans: Copying from localhost:/usr/local/sbin/cfagent
cfengine:slogans: Object /var/cfengine/bin/cfagent had permission 600, changed it to 755
Performance(Copy(localhost:/usr/local/sbin/cfagent > /var/cfengine/bin/cfagent)): time=0.00 secs, av=0.00 +/- 0.00
Saving the setuid log in /var/cfengine/cfagent.slogans.log
---------------------------------------------------------------------
Alerts
---------------------------------------------------------------------

Purging private classes from context update

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
 * (Changing context state to: main) *
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

---------------------------------------------------------------------
Loading persistent classes
---------------------------------------------------------------------

---------------------------------------------------------------------
Loaded persistent memory
---------------------------------------------------------------------

Looking for environment from cfenvd...

Unable to detect environment from cfenvd

Looking for an input file /var/cfengine/inputs/cfagent.conf
Finished with cfagent.conf


Defined Classes = ( 128_39_89 128_39_89_232 2001_700_700_3_20f_1fff_fe92_2cd3 32_bit Day26 
February Hr10 Hr10_Q2 Min15_20 Min19 Monday Q2 SuSE Yr2007 addr_ any cfengine_2 cfengine_2_2 
cfengine_2_2_0a3 compiled_on_linux_gnu fe80__20f_1fff_fe92_2cd3 hio_no i686 ipv4_128 
ipv4_128_39 ipv4_128_39_89 ipv4_128_39_89_232 iu_hio_no linux linux_2_6_18_2_34_default 
linux_i686 linux_i686_2_6_18_2_34_default linux_i686_2_6_18_2_34_default__1_SMP_Mon_Nov_
net_iface_eth0 net_iface_lo no slogans slogans_iu_hio_no suse suse_10 suse_10_2 suse_n/a )

Negated Classes = ( )

Installable classes = ( no_default_route )

Global expiry time for locks: 120 minutes

Global anti-spam elapse time: 1 minutes

Extensions which should not be directories = ( )
Suspicious filenames to be warned about = ( )
Accepted domain name: iu.hio.no

LogDirectory = /var/cfengine
cfengine:slogans: Couldn't find a private key (/var/cfengine/ppkeys/localhost.priv) - use cfkey to get one
cfengine:slogans: open: No such file or directory

Checksum database is /var/cfengine/checksum_digests.db
Default binary server seems to be slogans
Reference time set to Mon Feb 26 10:19:12 2007


*********************************************************************
 Main Tree Sched: editfiles pass 1 @ Mon Feb 26 10:19:12 2007
*********************************************************************

cfengine:slogans: Creating file /var/spool/cron/tabs/root, mode 600
Begin editing /var/spool/cron/tabs/root
Appending [0,15,30,45 * * * * ${cfengine}/bin/cfexecd -F]
End editing /var/spool/cron/tabs/root
.....................................................................
cfengine:slogans: Saving edit changes to file /var/spool/cron/tabs/root

*********************************************************************
 Main Tree Sched: shellcommands pass 1 @ Mon Feb 26 10:19:12 2007
*********************************************************************

cfengine:slogans: 
Executing script /usr/sbin/ntpdate cube.iu.hio.no...(timeout=0,uid=-1,gid=-1)
cfengine:slogans: Finished script /usr/sbin/ntpdate cube.iu.hio.no
Performance(Exec(/usr/sbin/ntpdate cube.iu.hio.no)): time=0.00 secs, av=0.00 +/- 0.00

---------------------------------------------------------------------
Alerts
---------------------------------------------------------------------



++++++++++++++++++++++++++++++++++++++++
Summary of objects involved
++++++++++++++++++++++++++++++++++++++++

    global
    update
    main

Check the result:

slogans:/home/mark/cfengine-2.2.0a3 # crontab -l
0,15,30,45 * * * * ${cfengine}/bin/cfexecd -F

Now let's add a copy from a remote host already running cfservd:

slogans:/home/mark/cfengine-2.2.0a3 # cat /var/cfengine/inputs/cfagent.conf

control:

 actionsequence = ( editfiles shellcommands copy )

 cfengine_dir = ( /var/cfengine )


copy:

 /etc/passwd dest=/tmp/passwd 
             server=cube.iu.hio.no
             trustkey=true

editfiles:

SuSE::

  { /var/spool/cron/tabs/root
 
  AutoCreate
  AppendIfNoSuchLine "0,15,30,45 * * * * ${cfengine}/bin/cfexecd -F"
  }


shellcommands:

 "/usr/sbin/ntpdate cube.iu.hio.no" 


Try this....



slogans:/home/mark/cfengine-2.2.0a3 # /usr/local/sbin/cfagent -v

Reference time set to Mon Feb 26 10:23:09 2007

GNU Configuration Engine - 
2.2.0a3
Free Software Foundation 1994-
Donated by Mark Burgess, Faculty of Engineering,
Oslo University College, Norway

------------------------------------------------------------------------

Host name is: slogans
Operating System Type is linux
Operating System Release is 2.6.18.2-34-default
Architecture = i686


Using internal soft-class linux for host linux

The time is now Mon Feb 26 10:23:09 2007


------------------------------------------------------------------------

Additional hard class defined as: 32_bit
Additional hard class defined as: linux_2_6_18_2_34_default
Additional hard class defined as: linux_i686
Additional hard class defined as: linux_i686_2_6_18_2_34_default
Additional hard class defined as: linux_i686_2_6_18_2_34_default__1_SMP_Mon_Nov_27_11_46_27_UTC_2006

GNU autoconf class from compile time: compiled_on_linux_gnu

Address given by nameserver: 128.39.89.232
Interface 1: lo
Interface 2: eth0
Trying to locate my IPv6 address
Found IPv6 address addr:
Found IPv6 address 2001:700:700:3:20f:1fff:fe92:2cd3
Found IPv6 address addr:
Found IPv6 address fe80::20f:1fff:fe92:2cd3
Found IPv6 address addr:
Looking for environment from cfenvd...

Unable to detect environment from cfenvd

cfengine:slogans: No preconfiguration file

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
 * (Changing context state to: update) *
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

Looking for an input file /var/cfengine/inputs/update.conf
Finished with update.conf

---------------------------------------------------------------------
Looking for remote method collaborations
---------------------------------------------------------------------


Finished with RPC

Accepted domain name: iu.hio.no

LogDirectory = /var/cfengine
Loaded /var/cfengine/ppkeys/localhost.priv
Loaded /var/cfengine/ppkeys/localhost.pub
Checksum database is /var/cfengine/checksum_digests.db
Default binary server seems to be slogans

*********************************************************************
 Update Sched: copy pass 1 @ Mon Feb 26 10:23:09 2007
*********************************************************************

Checking copy from localhost:/usr/local/sbin/cfagent to /var/cfengine/bin/cfagent
cfengine:slogans: Nothing scheduled for [copy._usr_local_sbin_cfagent__
var_cfengine_bin_cfagent_localhost] (0/1 minutes elapsed)
Saving the setuid log in /var/cfengine/cfagent.slogans.log
---------------------------------------------------------------------
Alerts
---------------------------------------------------------------------

Purging private classes from context update

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
 * (Changing context state to: main) *
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

---------------------------------------------------------------------
Loading persistent classes
---------------------------------------------------------------------

---------------------------------------------------------------------
Loaded persistent memory
---------------------------------------------------------------------

Looking for environment from cfenvd...

Unable to detect environment from cfenvd

Looking for an input file /var/cfengine/inputs/cfagent.conf
Finished with cfagent.conf


Defined Classes = ( 128_39_89 128_39_89_232 2001_700_700_3_20f_1fff_fe92_2cd3 32_bit 
Day26 February Hr10 Hr10_Q2 Min20_25 Min23 Monday Q2 SuSE Yr2007 addr_ any cfengine_2 
cfengine_2_2 cfengine_2_2_0a3 compiled_on_linux_gnu fe80__20f_1fff_fe92_2cd3 hio_no i686 
ipv4_128 ipv4_128_39 ipv4_128_39_89 ipv4_128_39_89_232 iu_hio_no linux linux_2_6_18_2_34_default 
linux_i686 linux_i686_2_6_18_2_34_default linux_i686_2_6_18_2_34_default__1_SMP_Mon_Nov_
27_11_46_27_UTC_2006 lsb_compliant net_iface_eth0 net_iface_lo no slogans slogans_iu_hio_no 
suse suse_10 suse_10_2 suse_n/a )

Negated Classes = ( )

Installable classes = ( no_default_route )

Global expiry time for locks: 120 minutes

Global anti-spam elapse time: 1 minutes

Extensions which should not be directories = ( )
Suspicious filenames to be warned about = ( )
Accepted domain name: iu.hio.no

LogDirectory = /var/cfengine
Loaded /var/cfengine/ppkeys/localhost.priv
Loaded /var/cfengine/ppkeys/localhost.pub
Checksum database is /var/cfengine/checksum_digests.db
Default binary server seems to be slogans
Reference time set to Mon Feb 26 10:23:09 2007


*********************************************************************
 Main Tree Sched: editfiles pass 1 @ Mon Feb 26 10:23:09 2007
*********************************************************************

cfengine:slogans: Nothing scheduled for [editfile._var_spool_cron_tabs_root] (0/1 minutes elapsed)

*********************************************************************
 Main Tree Sched: shellcommands pass 1 @ Mon Feb 26 10:23:09 2007
*********************************************************************

cfengine:slogans: Nothing scheduled for [shellcommand./usr/sbin/ntpdate cube.iu.hio.no] (0/1 minutes elapsed)

*********************************************************************
 Main Tree Sched: copy pass 1 @ Mon Feb 26 10:23:09 2007
*********************************************************************

Checking copy from cube.iu.hio.no:/etc/passwd to /tmp/passwd
Connect to cube.iu.hio.no = 2001:700:700:4:290:27ff:fe93:6723 on port 5308
cfengine:slogans: BAD: keys did not match
cfengine:slogans: Authentication dialogue with cube.iu.hio.no failed
cfengine:slogans: Unable to establish connection with cube.iu.hio.no (failover)
Saving the setuid log in /var/cfengine/cfagent.slogans.log

---------------------------------------------------------------------
Alerts
---------------------------------------------------------------------



++++++++++++++++++++++++++++++++++++++++
Summary of objects involved
++++++++++++++++++++++++++++++++++++++++

    global
    update
    main

We need to make a public key-pair:

slogans:/home/mark/cfengine-2.2.0a3 # /usr/local/sbin/cfkey
Making a key pair for cfengine, please wait, this could take a minute...
Writing private key to /var/cfengine/ppkeys/localhost.priv
Writing public key to /var/cfengine/ppkeys/localhost.pub

And try again:

slogans:/home/mark/cfengine-2.2.0a3 # /usr/local/sbin/cfagent -v
Setting cfengine new port to 48148
Setting cfengine old port to 5308
Reference time set to Mon Feb 26 11:05:26 2007

GNU Configuration Engine - 
2.2.0a3
Free Software Foundation 1994-
Donated by Mark Burgess, Faculty of Engineering,
Oslo University College, Norway

------------------------------------------------------------------------

Host name is: slogans
Operating System Type is linux
Operating System Release is 2.6.18.2-34-default
Architecture = i686


Using internal soft-class linux for host linux

The time is now Mon Feb 26 11:05:26 2007


------------------------------------------------------------------------

Additional hard class defined as: 32_bit
Additional hard class defined as: linux_2_6_18_2_34_default
Additional hard class defined as: linux_i686
Additional hard class defined as: linux_i686_2_6_18_2_34_default
Additional hard class defined as: linux_i686_2_6_18_2_34_default__1_SMP_Mon_Nov_27_11_46_27_UTC_2006

GNU autoconf class from compile time: compiled_on_linux_gnu

Address given by nameserver: 128.39.89.232
Interface 1: lo
Interface 2: eth0
Trying to locate my IPv6 address
Found IPv6 address addr:
Found IPv6 address 2001:700:700:3:20f:1fff:fe92:2cd3
Found IPv6 address addr:
Found IPv6 address fe80::20f:1fff:fe92:2cd3
Found IPv6 address addr:
Looking for environment from cfenvd...

Unable to detect environment from cfenvd

cfengine:slogans: No preconfiguration file

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
 * (Changing context state to: update) *
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

Looking for an input file /var/cfengine/inputs/update.conf
Finished with update.conf

---------------------------------------------------------------------
Looking for remote method collaborations
---------------------------------------------------------------------


Finished with RPC

Accepted domain name: iu.hio.no

LogDirectory = /var/cfengine
Loaded /var/cfengine/ppkeys/localhost.priv
Loaded /var/cfengine/ppkeys/localhost.pub
Checksum database is /var/cfengine/checksum_digests.db
Default binary server seems to be slogans

*********************************************************************
 Update Sched: copy pass 1 @ Mon Feb 26 11:05:26 2007
*********************************************************************

Checking copy from localhost:/usr/local/sbin/cfagent to /var/cfengine/bin/cfagent
Performance(Copy(localhost:/usr/local/sbin/cfagent > /var/cfengine/bin/cfagent)): time=0.00 secs, av=0.00 +/- 0.00
Saving the setuid log in /var/cfengine/cfagent.slogans.log
---------------------------------------------------------------------
Alerts
---------------------------------------------------------------------

Purging private classes from context update

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
 * (Changing context state to: main) *
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

---------------------------------------------------------------------
Loading persistent classes
---------------------------------------------------------------------

---------------------------------------------------------------------
Loaded persistent memory
---------------------------------------------------------------------

Looking for environment from cfenvd...

Unable to detect environment from cfenvd

Looking for an input file /var/cfengine/inputs/cfagent.conf
Finished with cfagent.conf


Defined Classes = ( 128_39_89 128_39_89_232 2001_700_700_3_20f_1fff_fe92_2cd3 32_bit Day26 
February Hr11 Hr11_Q1 Min05 Min05_10 Monday Q1 SuSE Yr2007 addr_ any cfengine_2 cfengine_2_2 
cfengine_2_2_0a3 compiled_on_linux_gnu fe80__20f_1fff_fe92_2cd3 hio_no i686 ipv4_128 ipv4_128_39 
ipv4_128_39_89 ipv4_128_39_89_232 iu_hio_no linux linux_2_6_18_2_34_default linux_i686 
linux_i686_2_6_18_2_34_default linux_i686_2_6_18_2_34_default__1_SMP_Mon_Nov_27_11_46_27_UTC_2006
 lsb_compliant net_iface_eth0 net_iface_lo no slogans slogans_iu_hio_no suse suse_10 suse_10_2 
suse_n/a )

Negated Classes = ( )

Installable classes = ( no_default_route )

Global expiry time for locks: 120 minutes

Global anti-spam elapse time: 1 minutes

Extensions which should not be directories = ( )
Suspicious filenames to be warned about = ( )
Accepted domain name: iu.hio.no

LogDirectory = /var/cfengine
Loaded /var/cfengine/ppkeys/localhost.priv
Loaded /var/cfengine/ppkeys/localhost.pub
Checksum database is /var/cfengine/checksum_digests.db
Default binary server seems to be slogans
Reference time set to Mon Feb 26 11:05:26 2007


*********************************************************************
 Main Tree Sched: editfiles pass 1 @ Mon Feb 26 11:05:26 2007
*********************************************************************

Begin editing /var/spool/cron/tabs/root
End editing /var/spool/cron/tabs/root
.....................................................................

*********************************************************************
 Main Tree Sched: shellcommands pass 1 @ Mon Feb 26 11:05:26 2007
*********************************************************************

cfengine:slogans: 
Executing script /usr/sbin/ntpdate cube.iu.hio.no...(timeout=0,uid=-1,gid=-1)
cfengine:slogans: Finished script /usr/sbin/ntpdate cube.iu.hio.no
Performance(Exec(/usr/sbin/ntpdate cube.iu.hio.no)): time=0.00 secs, av=0.00 +/- 0.00

*********************************************************************
 Main Tree Sched: copy pass 1 @ Mon Feb 26 11:05:26 2007
*********************************************************************

Checking copy from cube.iu.hio.no:/etc/passwd to /tmp/passwd

Connect to cube.iu.hio.no = 2001:700:700:4:290:27ff:fe93:6723 on port 5308
cfengine:slogans: Trusting server identity and willing to accept key from cube.iu.hio.no=2001:700:700:4:290:27ff:fe93:6723
Saving public key /var/cfengine/ppkeys/root-2001:700:700:4:290:27ff:fe93:6723.pub
cfengine:slogans: /tmp/passwd wasn't at destination (copying)
cfengine:slogans: Copying from cube.iu.hio.no:/etc/passwd
cfengine:slogans: Object /tmp/passwd had permission 600, changed it to 644
Performance(Copy(cube.iu.hio.no:/etc/passwd > /tmp/passwd)): time=0.00 secs, av=0.00 +/- 0.00

Saving the setuid log in /var/cfengine/cfagent.slogans.log

---------------------------------------------------------------------
Alerts
---------------------------------------------------------------------



++++++++++++++++++++++++++++++++++++++++
Summary of objects involved
++++++++++++++++++++++++++++++++++++++++

    global
    update
    main

And check the results:
slogans:/home/mark/cfengine-2.2.0a3 # more /tmp/passwd 
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/bin/sh
man:x:6:12:man:/var/cache/man:/bin/sh
lp:x:7:7:lp:/var/spool/lpd:/bin/sh
mail:x:8:8:mail:/var/mail:/bin/sh
...
The internal instrumentation can be read with cfshow, first connection history:
slogans:/home/mark/cfengine-2.2.0a3 # cfshow --last-seen

IP +            cube.iu.hio.no   ...:fe93:6723  @ [Mon Feb 26 11:05] not seen for (0.06) hrs, Av 0.11 +/- 0.27 hrs
And then timing:
slogans:/home/mark/cfengine-2.2.0a3 # /usr/local/sbin/cfshow --performance
(0.000 mins @ Mon Feb 26 11:05) Av 0.000 +/- 0.000 for Copy(cube.iu.hio.no:/etc/passwd > /tmp/passwd) 
(0.000 mins @ Mon Feb 26 11:05) Av 0.000 +/- 0.000 for Copy(localhost:/usr/local/sbin/cfagent > /var/cfengine/bin/cfagent) 
(0.000 mins @ Mon Feb 26 11:05) Av 0.000 +/- 0.000 for Exec(/usr/sbin/ntpdate cube.iu.hio.no)