Author |
Message
|
jcv |
Posted: Fri Nov 07, 2008 10:19 am Post subject: ms03 switch to extract non defaults only |
|
|
 Chevalier
Joined: 07 May 2007 Posts: 411 Location: Zagreb
|
Hello,
is there a switch in ms03 to suppress output of object attributes which are set to default values for the required version? |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Nov 07, 2008 10:26 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
No.
There's been a similar requirement floated around to only output non-default objects.
The difficulty in either case is knowing what the default is. I would basically have to keep a record somewhere that could be compared against.
Both of these are more likely to show up in MS0S than in MS03. |
|
Back to top |
|
 |
jcv |
Posted: Fri Nov 07, 2008 10:32 am Post subject: |
|
|
 Chevalier
Joined: 07 May 2007 Posts: 411 Location: Zagreb
|
|
Back to top |
|
 |
mqjeff |
Posted: Fri Nov 07, 2008 10:43 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You may also consider the products offered by the MQSeries.net sponsor MQSystems. |
|
Back to top |
|
 |
Michael Dag |
Posted: Fri Nov 07, 2008 11:09 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
mqjeff, thanks for the opening
MQDocument besides many other options, has an option to report only differences against the defaults of the default objects. _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
jcv |
Posted: Mon Nov 10, 2008 9:11 am Post subject: |
|
|
 Chevalier
Joined: 07 May 2007 Posts: 411 Location: Zagreb
|
Thanks Michael. At the moment I'm not in a position to consider anything else but freeware. With respect to default objects, so far I'm satisfied with the option to suppress output of those which begin with "SYSTEM*" (getting back to ms03). |
|
Back to top |
|
 |
Michael Dag |
Posted: Mon Nov 10, 2008 10:12 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
jcv wrote: |
Thanks Michael. At the moment I'm not in a position to consider anything else but freeware. With respect to default objects, so far I'm satisfied with the option to suppress output of those which begin with "SYSTEM*" (getting back to ms03). |
in the end it's your own choice, but correct me if I am wrong...
leaving out the default objects from your ms03 output is exactly the opposite of what you want to achieve as I understand...
you want to know what is different compared to the defaults... if you leave out the defaults then it is impossible to compare any setting agains them...  _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
jcv |
Posted: Mon Nov 10, 2008 1:35 pm Post subject: |
|
|
 Chevalier
Joined: 07 May 2007 Posts: 411 Location: Zagreb
|
Michael Dag wrote: |
jcv wrote: |
Thanks Michael. At the moment I'm not in a position to consider anything else but freeware. With respect to default objects, so far I'm satisfied with the option to suppress output of those which begin with "SYSTEM*" (getting back to ms03). |
in the end it's your own choice, but correct me if I am wrong...
leaving out the default objects from your ms03 output is exactly the opposite of what you want to achieve as I understand...
you want to know what is different compared to the defaults... if you leave out the defaults then it is impossible to compare any setting agains them...  |
I find both options useful (existent and non-existent one). I have asked for the one I don't already have. I mentioned the other one that it suites me well for the purposes which mqjeff mentioned in the first case (similar but not the same requirement). |
|
Back to top |
|
 |
jcv |
Posted: Mon Nov 10, 2008 3:00 pm Post subject: |
|
|
 Chevalier
Joined: 07 May 2007 Posts: 411 Location: Zagreb
|
Maybe I wasn't clear enough here. Both options, existent, that is leaving out the default (system) objects (-s switch), and non existent, that is the desired leaving out the attributes of objects which are set to default values for the required version, are interesting for me to achieve the result, extraction of configuration information in the most possible compact way. I suppose people follow the policy to change things that are created by issuing standard procedures (crtmqm, mqsicreate*, ... and similar), by doing standard procedures, for example altering mcauser to nobody for default channels, etc, hence there are other ways of how to restore configuration than by saving default objects in mqsc script. And then again, they can always leave out -s switch if they want to, and use only the non-existent one, if they find it more convenient. I mean they cannot, but they would be able if it existed.
If I want to find out the default for a certain attribute for some version to be able to compare it with actual objects attributes (and I usually don't need that), I can always create new qmgr and display the default by using runmqsc. That is if I'm interested in original defaults and I'm not sure if I changed it in observed qmgr, otherwise I can display it from there.
I don't need it really to be exported to mqsc file in order to be able to compare it, if that's your point.
Hence, I'm thinking about having file which is useful both for displaying, and for restoring, at the same time. Does that make any sense for you? |
|
Back to top |
|
 |
jcv |
Posted: Mon Nov 10, 2008 11:19 pm Post subject: |
|
|
 Chevalier
Joined: 07 May 2007 Posts: 411 Location: Zagreb
|
Although, mqjeff's point and of those who were not satisfied enough with -s switch was, I believe, the distinction between default and system objects. First set is obtained by crtmqm exclusively, not by other standard scripts or procedures. |
|
Back to top |
|
 |
|