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 Index » General IBM MQ Support » saveqmr on AIX and authorization data

Post new topic  Reply to topic
 saveqmr on AIX and authorization data « View previous topic :: View next topic » 
Author Message
czaszek
PostPosted: Tue Nov 16, 2010 5:52 am    Post subject: saveqmr on AIX and authorization data Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue Nov 16, 2010 6:08 am    Post subject: Reply with quote

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
View user's profile Send private message
mqtablet
PostPosted: Wed Nov 17, 2010 6:48 am    Post subject: Reply with quote

Acolyte

Joined: 09 Jun 2009
Posts: 71

https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14513873&#14513873

i am not sure if the 'RepliQator' tool works on AIX/Unix check it out but it works on windows
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Nov 17, 2010 7:13 am    Post subject: Reply with quote

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
View user's profile Send private message
mqtablet
PostPosted: Wed Nov 17, 2010 7:20 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Wed Nov 17, 2010 7:22 am    Post subject: Reply with quote

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
View user's profile Send private message
mqtablet
PostPosted: Wed Nov 17, 2010 7:33 am    Post subject: Reply with quote

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
View user's profile Send private message
czaszek
PostPosted: Tue Nov 30, 2010 1:02 am    Post subject: Reply with quote

Apprentice

Joined: 30 May 2006
Posts: 36
Location: Poland

Many thanks for help, now it works!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » saveqmr on AIX and authorization data
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.