Skip to content
/ mqDiff Public

Python tool to compare two MQSC files generated from dmpmqcfg.

License

Notifications You must be signed in to change notification settings

aztekmq/mqDiff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


MQSC File Comparison Tool

License: MIT

Overview

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.

Features

  • 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.

Installation

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-tool

Usage

To compare two MQSC files, use the following command:

./mqDiff.py -l LEFT-MQSC-FILE -r RIGHT-MQSC-FILE

Optional Output Filename

By 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

Example Command

./mqDiff.py -l left_qmgr.mqsc -r right_qmgr.mqsc

Output

The 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.

Sample Output

Sample Output

Future Enhancements

  • Golang JSON Output: Implement output conversion from Golang to JSON.
  • YAML Support: Explore writing output to YAML, which can be converted back to JSON.

Change History

Date Author Comment
2023-07-04 rob@aztekmq.net Initial Release

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

Python tool to compare two MQSC files generated from dmpmqcfg.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published