dumpnet.host.diff - run userdefined commands and compare their old to their new output
dumpnet.host.diff [-s SESSIONID] [-d DUMPNET_CONFIG] [-C DIFF_CONFIG] HOST_CONFIG
dumpnet.host.diff runs the commands specified in the configuration file dumpnet.diff.conf placed in a host configuration directory. For each command it will call dumpnet.host.diff.cmd to do most of the job. dumpnet.host.diff gives you the ability to track runtime configuration changes. An error will be reported if a previously recorded run time configuration does not match the new one. The autoritive file is the last one not postfixed by ``_MODIFIED''. The commands can be run on the target host (default) or locally on the dumpnet host. Please see dumpnet.diff.conf(8) for details.
Run the commands for 192.168.1.10 configured in /usr/local/dumpnet/conf/192.168.1.10/dumpnet.HOST.conf with the default config file dumpnet.diff.conf - if you don't know what you want, you want something like this:
dumpnet.host.diff /usr/local/dumpnet/conf/192.168.1.10/dumpnet.HOST.conf
Run the commands for 192.168.1.11 configured in conf/192.168.1.11/dumpnet.HOST.conf with a config of conf/192.168.1.11/dumpnet.diff2.conf
dumpnet.host.diff -C conf/192.168.1.11/dumpnet.diff2.conf conf/192.168.1.11/dumpnet.HOST.conf
Run only the route command, that is configured in conf/192.168.1.11/dumpnet.diff.conf. Keep in mind that this way, none of the ``option'' and ``extends'' statements in dumpnet.diff.conf will make it to the STDIN of dumpnet.host.diff.
grep route conf/192.168.1.11/dumpnet.diff.conf | dumpnet.host.diff -C - conf/192.168.1.11/dumpnet.HOST.conf
dumpnet.host.diff will return a zero exit status if all calls to dumpnet.host.diff.cmd exit with 0. In any other case it will return 1.
$DUMPNET_HOME/conf/$host/dumpnet.diff.conf
dumpnet(8) dumpnet.host(8) dumpnet.host.diff.cmd(8) dumpnet.diff.conf(8)
Lukas Feiler <lukas.feiler@lukasfeiler.com>
dumpnet is published under the LGPL (GNU LESSER GENERAL PUBLIC LICENSE). Please see the LICENSE file contained in the installation tarball for details. The official web site is http://dumpnet.sourceforge.net.