dumpnet.host.diff.cmd - run a command and compare its output to a previous one
dumpnet.host.diff.cmd [-L] [-s SESSIONID] [-d DUMPNET_CONFIG] HOST_CONFIG DIRNAME COMMAND
dumpnet.host.diff.cmd runs COMMAND and compares its output to a prievious one to track runtime configuration changes. It will call dumpnet.host.userdefined.cmd to do most of the job.
If you already have an entry for the command to run in a dumpnet.diff.conf file it is recommended to call dumpnet.host.diff and grep the specific line you need into it. Please see the EXAMPLES section in dumpnet.host.diff(8).
To run ``route -n'' on 192.168.1.10 and save the output in the subdirectory ``route''
dumpnet.host.diff.cmd conf/192.168.1.10/dumpnet.HOST.conf route 'route -n'
Do a remote port scan and save the output in the subdir ``nmap''
dumpnet.host.diff.cmd conf/192.168.1.10/dumpnet.HOST.conf nmap 'nmap $host'
dumpnet.host.diff.cmd will return a zero exit status if the call to dumpnet.host.userdefined.cmd exits with 0. In any other case it will return 1.
dumpnet(8) dumpnet.host(8) dumpnet.host.diff(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.