Author |
Message
|
George Carey |
Posted: Thu Jun 02, 2011 3:05 pm Post subject: saveqmgr comparisons |
|
|
Knight
Joined: 29 Jan 2007 Posts: 500 Location: DC
|
Any nice way to compare the saveqmgr image outputs from two servers to see if they were built with the same objects ?
Using linux ... trying to avoid eye ball checking or writing a perl script, but diff and similar such commands don't get it.
Creation dates of course screw comparisons up but if these could be ignored some how, say by skipping all commmented lines.
It would be a nice add on function to saveqmgr ! Maybe a cmp_saveqmgr command or the like. _________________ "Truth is ... grasping the virtually unconditioned",
Bernard F. Lonergan S.J.
(from book titled "Insight" subtitled "A Study of Human Understanding") |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Jun 03, 2011 3:57 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
It's probably easier to use diff if you use -1 or --oneLine.
This usecase is what --oneLine and --twoLines was added for.
You might also look at some of the tools available from the forum sponsor MQSystems. There is some really nifty smart compares in ... I think... MQArchitect? |
|
Back to top |
|
 |
exerk |
Posted: Fri Jun 03, 2011 4:14 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
mqjeff wrote: |
There is some really nifty smart compares in ... I think... MQArchitect? |
MQDocument has mqdocdiff bundled with it. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
George Carey |
Posted: Fri Jun 03, 2011 8:09 am Post subject: options |
|
|
Knight
Joined: 29 Jan 2007 Posts: 500 Location: DC
|
I will look at these options.
Thanks,
GTC _________________ "Truth is ... grasping the virtually unconditioned",
Bernard F. Lonergan S.J.
(from book titled "Insight" subtitled "A Study of Human Understanding") |
|
Back to top |
|
 |
George Carey |
Posted: Fri Jun 03, 2011 12:18 pm Post subject: oneLine |
|
|
Knight
Joined: 29 Jan 2007 Posts: 500 Location: DC
|
Well oneLine ... appears to pinpoint an object difference, say in a define but still need to do a tedious eyeball check to see where the difference is.
Much to be desired in its use. I will check on this mqdocdiff utility. _________________ "Truth is ... grasping the virtually unconditioned",
Bernard F. Lonergan S.J.
(from book titled "Insight" subtitled "A Study of Human Understanding") |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Jun 03, 2011 9:39 pm Post subject: Re: oneLine |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
George Carey wrote: |
Well oneLine ... appears to pinpoint an object difference, say in a define but still need to do a tedious eyeball check to see where the difference is.
Much to be desired in its use. I will check on this mqdocdiff utility. |
I just store the scripts into SVN and don't use -1 or -2 switch.
The diff utility from SVN quite accurately pinpoints the changes.
If you want a more formalized way and more flexibility in applying changes all around, you should go for the MQSystems stuff. _________________ MQ & Broker admin |
|
Back to top |
|
 |
George Carey |
Posted: Sat Jun 04, 2011 12:56 pm Post subject: fldiff |
|
|
Knight
Joined: 29 Jan 2007 Posts: 500 Location: DC
|
Not looking for anything sexy at this point just a labor saver.
Haven't played with SVN diff ... I will have to look into it.
Do you have a usage reference, is it a Linux verson control utility like CVS?
Stumbled upon this freeware utility (fldiff) . Looks simple enough to use.
http://www.easysw.com/~mike/fldiff/
May give it a look at. _________________ "Truth is ... grasping the virtually unconditioned",
Bernard F. Lonergan S.J.
(from book titled "Insight" subtitled "A Study of Human Understanding") |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Jun 04, 2011 5:35 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
|
Back to top |
|
 |
mqjeff |
Posted: Sat Jun 04, 2011 6:53 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
There may also be existing options to your current diff that would help.
but I do encourage you to look at MQDocument. I know Michael has put hard work into making it smart. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Sun Jun 05, 2011 6:30 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
mqjeff wrote: |
but I do encourage you to look at MQDocument. I know Michael has put hard work into making it smart. |
We use it. I get an email every morning with MQDocument report showing what if anything got added, deleted or changed on each QM in my environment.
I suppose eventually once all the QMs are at MQ 7.0.1 I should start using Configuration Events to get real time notifications of changes, but until then and for the past several years this daily report has been great. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
George Carey |
Posted: Mon Jun 06, 2011 10:42 am Post subject: current environment |
|
|
Knight
Joined: 29 Jan 2007 Posts: 500 Location: DC
|
I would have gotten it already but my current environment is restrictive and would not allow third party software unless I can get access to the source as well ... which I doubt Michael Dag would be interested in doing.
So likely will check out SVN links from fjb_saper ... sounds like all I need.
Thanks all ...
But ... have half a mind to parse up a runmqsc output or saveqmgr output with a perl program into XML and create a simle XSLT template and have a browser display the XML with the style sheet as a niece coding exercise ... which would be the first tiny bit of what M. Dag is doing in Java ... but as everything, time for it is the dependency factor ... were I more a speedy coder(i.e. did coding more frequently) ... however, the task looks straight forward ... _________________ "Truth is ... grasping the virtually unconditioned",
Bernard F. Lonergan S.J.
(from book titled "Insight" subtitled "A Study of Human Understanding") |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Jun 06, 2011 11:47 am Post subject: Re: current environment |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
George Carey wrote: |
... however, the task looks straight forward ... |
Runmqsc output is not as straightforward as one might think.
If you are only trying to describe objects that can be DEFINE, it is not too bad.
But when you try and look at other things, it's trickier. |
|
Back to top |
|
 |
Michael Dag |
Posted: Wed Jun 15, 2011 7:11 am Post subject: Re: current environment |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
George Carey wrote: |
I would have gotten it already but my current environment is restrictive and would not allow third party software unless I can get access to the source as well ... which I doubt Michael Dag would be interested in doing.
|
If you absolutelt need source code access, that can be arranged... obviously at a differrent price
George Carey wrote: |
So likely will check out SVN links from fjb_saper ... sounds like all I need.
Thanks all ...
But ... have half a mind to parse up a runmqsc output or saveqmgr output with a perl program into XML and create a simle XSLT template and have a browser display the XML with the style sheet as a niece coding exercise ... which would be the first tiny bit of what M. Dag is doing in Java ... but as everything, time for it is the dependency factor ... were I more a speedy coder(i.e. did coding more frequently) ... however, the task looks straight forward ... |
you just described more or less how MQDocument is designed, parse anything that comes out of MQ includeing MAKEDEF, turn it into XML and use XSLT and some java tools to analyse/compare/merge data ...  _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
zpat |
Posted: Wed Jun 15, 2011 7:12 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
This is a job for a GUI, try examdiff. |
|
Back to top |
|
 |
|