Tuxas home page

Comparemmsc

What it is

This script provides some help when XML system configuration files need to be audited and compared with each other.

How it works

It takes an XML config file converts it to HTML, which then can be viewed with any browser. Comparemmsc currently understands just a few frequently used schemas. You are free to add your own ones. See xsl files in /usr/lib/comparemmsc.

Comparemmsc can be used to compare up to 3 parameter files, and highlights differences of the values in them. It also can walk through directory trees, and can compare up to 3 trees, as long as they are symmetrical.

The program does some XML syntax checking and complains if any file has bad syntax. Of course, it only works on files containing error free syntax.

For a list of available command line options, just execute this script as comparemmsc -?

This script can be run without any manual interaction, and thus can be bound into a web server cgi-bin interface if its gets its input by some script. (...which yet still has to be written. If you have a script for it, please let me know.)

Test run:
cd /usr/share/doc/comparemmsc/examples
comparemmsc example*.xml
comparemmsc sysA sysB is currently still buggy if similar schemas are used.

System prerequisites

Bash, xsltproc, tidy, konqueror.

Bugs

Many.

License

Comparemmsc is free software. It is under the GPL.

Download and Installation

Download the code from here.
Debian Sid or later: get the deb archive and dpkg -i it.
Knoppix (installed on harddisk): just as with Debian, apt-get install xsltproc tidy first.
MS-Windblows: install Linux, then proceed as above.
Other systems: get tar archive, untar it, cd comparemmsc*; make install.

Author

Stefan Katerkamp <skat@tuxas.net>


last update: Tue Dec 2 18:59:23 CET 2003