ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexGeneral IBM MQ SupportHow to dump current MQ authorizations in a output file

Post new topicReply to topic
How to dump current MQ authorizations in a output file View previous topic :: View next topic
Author Message
alokjha
PostPosted: Wed Mar 29, 2017 11:19 pm Post subject: How to dump current MQ authorizations in a output file Reply with quote

Newbie

Joined: 12 Dec 2014
Posts: 9

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
View user's profile Send private message
exerk
PostPosted: Thu Mar 30, 2017 12:32 am Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 5619

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
View user's profile Send private message
alokjha
PostPosted: Thu Mar 30, 2017 1:42 am Post subject: Reply with quote

Newbie

Joined: 12 Dec 2014
Posts: 9

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
View user's profile Send private message
zpat
PostPosted: Thu Mar 30, 2017 1:52 am Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5410
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
View user's profile Send private message
fjb_saper
PostPosted: Thu Mar 30, 2017 1:53 am Post subject: Reply with quote

Grand Poobah

Joined: 18 Nov 2003
Posts: 19089
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
View user's profile Send private message Send e-mail
DeadPool
PostPosted: Thu Mar 30, 2017 3:24 am Post subject: Reply with quote

Apprentice

Joined: 27 May 2016
Posts: 29

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
View user's profile Send private message
exerk
PostPosted: Thu Mar 30, 2017 3:31 am Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 5619

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
View user's profile Send private message
DeadPool
PostPosted: Thu Mar 30, 2017 3:49 am Post subject: Reply with quote

Apprentice

Joined: 27 May 2016
Posts: 29

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
View user's profile Send private message
fjb_saper
PostPosted: Thu Mar 30, 2017 4:03 am Post subject: Reply with quote

Grand Poobah

Joined: 18 Nov 2003
Posts: 19089
Location: LI,NY

Which part of
Code:
amqoamd -s -m QMGRNAME
did you not understand?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Thu Mar 30, 2017 4:03 am Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17174

https://github.com/ibm-messaging/ms03.saveqmgr

Quote:
--saveSecurity | -z [file] : create 'security definitions (like amqoamd -s)' in file 'file'(only >=V6)
if not specified, defaults to \"qmgrname\".AUT


https://github.com/ibm-messaging/ms03.saveqmgr/blob/master/read.me
_________________
Read, Think, Try, Repeat


Last edited by mqjeff on Thu Mar 30, 2017 5:01 am; edited 1 time in total
Back to top
View user's profile Send private message
DeadPool
PostPosted: Thu Mar 30, 2017 4:10 am Post subject: Reply with quote

Apprentice

Joined: 27 May 2016
Posts: 29

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
View user's profile Send private message
gbaddeley
PostPosted: Thu Mar 30, 2017 3:30 pm Post subject: Reply with quote

Padawan

Joined: 25 Mar 2003
Posts: 1638
Location: Melbourne, Australia

mqjeff wrote:
https://github.com/ibm-messaging/ms03.saveqmgr
Quote:
--saveSecurity | -z [file] : create 'security definitions (like amqoamd -s)' in file 'file'(only >=V6) if not specified, defaults to \"qmgrname\".AUT

https://github.com/ibm-messaging/ms03.saveqmgr/blob/master/read.me

Yes, I prefer saveqmgr -z option rather than using the ancient amqoamd.
_________________
Glenn
Back to top
View user's profile Send private message
alokjha
PostPosted: Fri Apr 21, 2017 8:50 am Post subject: Reply with quote

Newbie

Joined: 12 Dec 2014
Posts: 9

Hi All,

Thanks a lot!

As its MQ V 7.0.1 so I need to install SupportPac MS03 first :

http://www-01.ibm.com/support/docview.wss?rs=171&q1=mA1J&uid=swg24000673&loc=en_US&cs=utf-8&lang=en

Then saveqmgr.exe -m <qmgr name> -o -f <output file path> command is required.

Note : From MQ V7.1 onwards, the command dmpmqcfg is available.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexGeneral IBM MQ SupportHow to dump current MQ authorizations in a output file
Jump to:



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.