mqDiff.py is a Python script designed to compare two MQSC files generated from the dmpmqcfg command in one-liner format. The script analyzes the differences between two IBM MQ Queue Manager dumps and generates a professional HTML report that highlights unique objects, properties, and mismatches.
- Compare MQSC Files: Identifies objects and properties that are unique to either the left or right MQSC file.
- Highlight Mismatches: Displays differences between matching objects with distinct colors for easy identification.
- Generate Professional HTML Report: Outputs a clean, professional-looking HTML report with clear distinctions between unique and mismatched items.
Ensure you have Python 3.6.8 installed on your system. Clone the repository and navigate to the directory:
git clone https://github.com/yourusername/mqsc-comparison-tool.git
cd mqsc-comparison-toolTo compare two MQSC files, use the following command:
./mqDiff.py -l LEFT-MQSC-FILE -r RIGHT-MQSC-FILEBy default, the script generates an HTML report named mqsc_comparison_report.html. You can specify a custom output filename with the -o or --out option:
./mqDiff.py -l LEFT-MQSC-FILE -r RIGHT-MQSC-FILE -o custom_output.html./mqDiff.py -l left_qmgr.mqsc -r right_qmgr.mqscThe output is a neatly formatted HTML file that displays the differences between the two MQSC files in three columns:
- Left Only: Items unique to the left MQSC file.
- Mismatched: Items present in both files but with differing properties, highlighted with distinct background colors.
- Right Only: Items unique to the right MQSC file.
- Golang JSON Output: Implement output conversion from Golang to JSON.
- Reference: json-to-go
- YAML Support: Explore writing output to YAML, which can be converted back to JSON.
| Date | Author | Comment |
|---|---|---|
| 2023-07-04 | rob@aztekmq.net | Initial Release |
