Author |
Message
|
alokjha |
Posted: Wed Mar 29, 2017 11:19 pm Post subject: How to dump current MQ authorizations in a output file |
|
|
Novice
Joined: 12 Dec 2014 Posts: 16 Location: India
|
Hi,
I am trying to dump mq configuration and authorizations in a output file and using following commands(examples) :
dmpmqcfg -m IIBQMGR -a > IIBQMGR.mqsc
dmpmqaut -m IIBQMGR > IIBQMGR.mqaut
For dmpmqcfg, I get output in a file.
But dmpmqaut is just displaying over screen and not writing down output in IIBQMGR.mqaut. Though IIBQMGR.mqaut is getting formed but empty(0 KB).
Importantly I am running above commands in Window server through cmd(path is C:\Program Files (x86)\IBM\WebSphere MQ\bin).
What needs to be modified in : dmpmqaut -m IIBQMGR > IIBQMGR.mqaut so that I could get output in a file.
Thanks
Alok Jha |
|
Back to top |
|
 |
exerk |
Posted: Thu Mar 30, 2017 12:32 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
You do not state what version of MQ you are using, but if it's one of the 'later' ones (V7.1 onwards) the authorities should be dumped at the end of the dmpmqcfg output as AUTHREC entries. _________________ 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 |
|
 |
alokjha |
Posted: Thu Mar 30, 2017 1:42 am Post subject: |
|
|
Novice
Joined: 12 Dec 2014 Posts: 16 Location: India
|
Hi,
Thanks
Yes, above command is working fine in MQ Version 7.5.0.2 and dmpmqcfg -m IIBQMGR -a > IIBQMGR.mqsc provide the authorities too
But I have to take dump from MQ Version 7.0.1. Seems saveqmgr will be required for this version.
Thanks
Alok Jha |
|
Back to top |
|
 |
zpat |
Posted: Thu Mar 30, 2017 1:52 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
I've not tried this but maybe
dmpmqaut -m IIBQMGR 2> IIBQMGR.mqaut
Might work? _________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Mar 30, 2017 1:53 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
alokjha wrote: |
Hi,
Thanks
Yes, above command is working fine in MQ Version 7.5.0.2 and dmpmqcfg -m IIBQMGR -a > IIBQMGR.mqsc provide the authorities too
But I have to take dump from MQ Version 7.0.1. Seems saveqmgr will be required for this version.
Thanks
Alok Jha |
Don't remember if saveqmgr will dump the authorizations. Used to use amqoamd -s for that...
Have you tried the client version of dmpmqcfg ?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
DeadPool |
Posted: Thu Mar 30, 2017 3:24 am Post subject: |
|
|
Apprentice
Joined: 27 May 2016 Posts: 30
|
yes it is easier if it is a file but if you run the command
dmpmqaut -m QMGRNAME
it shows all the details on the screen so why not just copy it into a file from there |
|
Back to top |
|
 |
exerk |
Posted: Thu Mar 30, 2017 3:31 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
DeadPool wrote: |
yes it is easier if it is a file but if you run the command
dmpmqaut -m QMGRNAME
it shows all the details on the screen so why not just copy it into a file from there |
Always better to try and scroll a screen, scrape the screen, and copy it into a file rather than run one command that outputs to a file  _________________ 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 |
|
 |
DeadPool |
Posted: Thu Mar 30, 2017 3:49 am Post subject: |
|
|
Apprentice
Joined: 27 May 2016 Posts: 30
|
exerk wrote: |
DeadPool wrote: |
yes it is easier if it is a file but if you run the command
dmpmqaut -m QMGRNAME
it shows all the details on the screen so why not just copy it into a file from there |
Always better to try and scroll a screen, scrape the screen, and copy it into a file rather than run one command that outputs to a file  |
am not saying it is the best solution but it may be one that works and the only way? let's see the outcome  |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Mar 30, 2017 4:03 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Which part of
Code: |
amqoamd -s -m QMGRNAME |
did you not understand?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Mar 30, 2017 4:03 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
DeadPool |
Posted: Thu Mar 30, 2017 4:10 am Post subject: |
|
|
Apprentice
Joined: 27 May 2016 Posts: 30
|
fjb_saper wrote: |
Which part of
Code: |
amqoamd -s -m QMGRNAME |
did you not understand?  |
actually you forgot the > file.name part |
|
Back to top |
|
 |
gbaddeley |
Posted: Thu Mar 30, 2017 3:30 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
Yes, I prefer saveqmgr -z option rather than using the ancient amqoamd. _________________ Glenn |
|
Back to top |
|
 |
alokjha |
Posted: Fri Apr 21, 2017 8:50 am Post subject: |
|
|
Novice
Joined: 12 Dec 2014 Posts: 16 Location: India
|
|
Back to top |
|
 |
|