Author |
Message
|
czaszek |
Posted: Tue Nov 16, 2010 5:52 am Post subject: saveqmr on AIX and authorization data |
|
|
Apprentice
Joined: 30 May 2006 Posts: 36 Location: Poland
|
Hi
We need to dump MQ objects together with the authorization data (set using setmqauth).
If we try to do it using binding connection (the command is executed locally in the machine where qmr runs):
bash-3.00$ saveqmgrc.aix -m PMSG02 -f -s
SAVEQMGR V6.0.0
Compiled for Websphere MQ V6.0 on Jun 7 2005
With no client connection information specified.
MQCONNX failed for PMSG02, CC=2 RC=2058
(no idea why it tries to connect using MQCONNX instead of MQCONN)
if we specify IP and port
saveqmgrc.aix -mPMSG02 -f -s -a'pmsgs1(1415)'
it works fine, but ... we do not got any authorization information in our output file. (pmsgs1 it is an IP address of one local interfaces configured in /etc/hosts)
I have two questions:
1. Is it at all possible to generate authorization information using saveqmr
2. How to force saveqmr to connect using MQCONN without specifiying the IP/port (I guess this may answer question nr. 1).
Thanks in advance for help |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Nov 16, 2010 6:08 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You can't use saveqmgrC.aix to execute a bindings connection. You need to use saveqmgr.aix.
You shouldn't be using saveqmgr 6.0.0. Please download 6.1.3.1 and use that.
If you want to save authorizations, rather than AUTHINFO objects, you need to a) run against a version of MQ that supports this, b) instruct saveqmgr to do so using the correct command flag as documented. This is neither the -f flag nor the -s flag. |
|
Back to top |
|
 |
mqtablet |
Posted: Wed Nov 17, 2010 6:48 am Post subject: |
|
|
Acolyte
Joined: 09 Jun 2009 Posts: 71
|
|
Back to top |
|
 |
mqjeff |
Posted: Wed Nov 17, 2010 7:13 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Saveqmgr is perfectly fine for this.
The thread you linked to shows that the person trying to use saveqmgr didn't know how to say 'saveqmgr.exe', nor otherwise much about using windows command prompt programs.
I'm sure RepliQator.exe is a fine tool in it's own right, and I will be the first to admit that ms03 is not perfect. But MS03 has a significantly wider install base and a significantly longer history.
czaszek is having issues because he or she isn't running the right binary version of the program - saveqmgrC is bound against the client libraries. czaszek is also running a very old version of the program that may not support the -z flag. And finally, czaszek was not specifying the -z flag in the first place, nor being clear that the queue manager is capable of reporting authorities through PCF messages.
It's not terribly likely that using an entirely different tool will resolve much of that. |
|
Back to top |
|
 |
mqtablet |
Posted: Wed Nov 17, 2010 7:20 am Post subject: |
|
|
Acolyte
Joined: 09 Jun 2009 Posts: 71
|
hi Jeff,
are you the author of saveqmgr? just curious.. I thought it was jefflowrey in mqseries.net.
I like saveqmgr very much, as it can be used in background programs, schedule batch files to periodically back up queue maangers etc. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Nov 17, 2010 7:22 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
mqtablet wrote: |
hi Jeff,
are you the author of saveqmgr? |
No, I'm the maintainer. |
|
Back to top |
|
 |
mqtablet |
Posted: Wed Nov 17, 2010 7:33 am Post subject: |
|
|
Acolyte
Joined: 09 Jun 2009 Posts: 71
|
I've seen one id in mqseries.net as jefflowrey. are you the same person?
Do you own both the ids : mqjeff and jefflowrey? Again, just curious. |
|
Back to top |
|
 |
czaszek |
Posted: Tue Nov 30, 2010 1:02 am Post subject: |
|
|
Apprentice
Joined: 30 May 2006 Posts: 36 Location: Poland
|
Many thanks for help, now it works! |
|
Back to top |
|
 |
|