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 » amqoamd - small doubt

Post new topic  Reply to topic
 amqoamd - small doubt « View previous topic :: View next topic » 
Author Message
veeruk
PostPosted: Thu Apr 13, 2006 11:29 am    Post subject: amqoamd - small doubt Reply with quote

Acolyte

Joined: 13 Mar 2006
Posts: 73

When used the command
amqoamd -s -m QMgr1 > QMgr1.txt
to save the authorizations, I got the output file with all the authorization defined in it. After re-creating the required objects using saveqmgr SP and before re-creating those authorizations to the new queue manager objects, I should change the queue manager name in the new output file to the new queue manager name, RIGHT? i.e instead of QMgr1 to Qmgr2 (say new queue manager)?
Thank you,
Back to top
View user's profile Send private message
GMcCarthy
PostPosted: Thu Apr 13, 2006 11:34 am    Post subject: Reply with quote

Centurion

Joined: 06 Nov 2001
Posts: 113
Location: Melville NY

Make sure the outputs from amqoamd and saveqmgr reflect the new definitions...including qmgr.


I've always had problems when I defined the authorizations after the object definitions. ESPECIALLY generic ones.


Try doing the authorizations first.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
veeruk
PostPosted: Thu Apr 13, 2006 11:38 am    Post subject: Reply with quote

Acolyte

Joined: 13 Mar 2006
Posts: 73

But since I’ll be creating the authorizations for the objects that are already in place, how can I authorize when there are no objects (i.e before re-creating the objects in new queue manager)??
Back to top
View user's profile Send private message
GMcCarthy
PostPosted: Thu Apr 13, 2006 11:50 am    Post subject: Reply with quote

Centurion

Joined: 06 Nov 2001
Posts: 113
Location: Melville NY

Yes...before you create the new objects.

I believe that generic authorizations need to be defined before the objects are created or you would have to authorize each object explicitly.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
veeruk
PostPosted: Thu Apr 13, 2006 11:59 am    Post subject: Reply with quote

Acolyte

Joined: 13 Mar 2006
Posts: 73

Can you please be more specific?
Let me explain my scenario:
In production : QMgr1
Need to create a QMgr2 in a diff box.
Say I run the commands on QMgr1:
./saveqmgr.exe –m QMgr1 –f & amqoamd -s -m QMgr1 > QMgr1.txt
I create the new QMgr2 in other box using "crtmqm -ll QMgr2".
Now do you mean to import QMgr1.txt before importing the object definition files?
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Thu Apr 13, 2006 3:20 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

GMcCarthy wrote:
I believe that generic authorizations need to be defined before the objects are created or you would have to authorize each object explicitly.

Nah, before or after makes no diff.

Code:
setmqaut -m GINA -t q -n peter*.** -p KRAMER +put

will allow KRAMER put access for any queues that start with peter, whether those queues already exist, or if you create them in the future. We rely on this behaviour heavily and us it all the time.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
GMcCarthy
PostPosted: Thu Apr 13, 2006 3:46 pm    Post subject: Reply with quote

Centurion

Joined: 06 Nov 2001
Posts: 113
Location: Melville NY

We had a problem with this. It had something to do with generic vs explicit. When a queue is created MQ does an explicit setmqaut on behalf of himself. I'll look at my notes to find more info. Thanks!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
veeruk
PostPosted: Thu Apr 13, 2006 4:36 pm    Post subject: Reply with quote

Acolyte

Joined: 13 Mar 2006
Posts: 73

But I should replace the queue manager name from the output file of amqoamd with the new queue manager name right? And then import the file into new queue manager?
Back to top
View user's profile Send private message
GMcCarthy
PostPosted: Thu Apr 13, 2006 4:51 pm    Post subject: Reply with quote

Centurion

Joined: 06 Nov 2001
Posts: 113
Location: Melville NY

Definately, as well as the output generated from saveqmgr
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
GMcCarthy
PostPosted: Fri Apr 14, 2006 3:15 am    Post subject: Reply with quote

Centurion

Joined: 06 Nov 2001
Posts: 113
Location: Melville NY

PeterPotkay wrote:
GMcCarthy wrote:
I believe that generic authorizations need to be defined before the objects are created or you would have to authorize each object explicitly.

Nah, before or after makes no diff.


Peter....

From the SAG

"Using generic profiles in the setmqaut command enables you to set a generic authority for all future objects created that fit that profile"

And since we had issues...I took this to mean that they needed to be defined before the queue(s) that matched that profile were created.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
fjb_saper
PostPosted: Fri Apr 14, 2006 3:35 am    Post subject: Reply with quote

Grand High Poobah

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

Are you sure you did not have any other problem interfering?

Like Peter I have set the authorizations and it worked on existing as well as future queues. In fact we do build our qmgrs and change the scheme a little between dev and prod. In one instance we forgot to add the authorizations.

At the first attempt in prod we got the call. It took us 3 mins to fix. Just ran the authorizations script we had prepared... (and do not forget to add a refresh security just in case... we have it at the end of the authorization script.)

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
GMcCarthy
PostPosted: Fri Apr 14, 2006 3:42 am    Post subject: Reply with quote

Centurion

Joined: 06 Nov 2001
Posts: 113
Location: Melville NY

Are they generic?

Since we had the problem (many moons ago), I've always done the generic authorizations first and haven't had issues.

I will play with this.

Thanks!


PS...what do you think IBM means by future then?
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
PeterPotkay
PostPosted: Fri Apr 14, 2006 4:30 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

GMcCarthy wrote:
PS...what do you think IBM means by future then?

It means just that!!! It does NOT say it will not also apply them to existing objects.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
GMcCarthy
PostPosted: Fri Apr 14, 2006 4:35 am    Post subject: Reply with quote

Centurion

Joined: 06 Nov 2001
Posts: 113
Location: Melville NY

Interestingly....IBM changed the wording for the V6 Documentation...

OAM generic profiles enable you to set the authority a user has to many objects at once, rather than having to issue separate setmqaut commands against each individual object when it is created. Using generic profiles in the setmqaut command enables you to set a generic authority for all objects that fit that profile.

Wonder why?
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » amqoamd - small doubt
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.