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 » retrieving authorizations for multiple queue managers

Post new topic  Reply to topic
 retrieving authorizations for multiple queue managers « View previous topic :: View next topic » 
Author Message
mq_pm
PostPosted: Mon Dec 01, 2003 10:04 am    Post subject: retrieving authorizations for multiple queue managers Reply with quote

Centurion

Joined: 27 Aug 2003
Posts: 132

Hi,

I have a scenario like this:

I have 5 Queue managers. I want to know the authorizations given to all Queue managers in a single command for a particular group. is it possible??? I know the command for finding out for a single Queuemanager. but i need to find for all Queuemanagers in a single command.

and also can we find out authorizations of all the Queuemanagers for a particular user.

It is very urgent.

Thanks.
Back to top
View user's profile Send private message Send e-mail
JasonE
PostPosted: Mon Dec 01, 2003 11:17 am    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

I dont think thats possible in distributed MQ - The auth info is stored in queues and hence the parm to the amqoamd/dmpmqaut/dspmqaut commands is the qmgr to act on.

With a script you could parse the output of dspmq to work out the qmgrs and issue one command per qmgr, but its not easy

(eg on windows2k, assuming all logs in the same place:
for /d %i in (c:\mqm\log\*) do @amqoamd -m %~ni -s
)
Back to top
View user's profile Send private message
Michael Dag
PostPosted: Mon Jan 05, 2004 3:51 pm    Post subject: Reply with quote

Jedi Knight

Joined: 13 Jun 2002
Posts: 2607
Location: The Netherlands (Amsterdam)

Quote:
(eg on windows2k, assuming all logs in the same place:
for /d %i in (c:\mqm\log\*) do @amqoamd -m %~ni -s
)


some fidling on W2K resulted in:

Code:
for /F "usebackq tokens=1,2* delims=()" %i IN (`dspmq`) DO @amqoamd -m %j -s


extracts qmgrname from the dspmq command and then for each found qmgrname executes: amqoamd -m qmgrname -s ...

Thanks Jason for the hint!!!

Michael

PS and a version that works on Solaris/AIX:

Code:
#!/usr/bin/ksh
dspmq | cut -d '(' -f2,3 | cut -d ')' -f1 | while read line
do
  amqoamd -m $line -s
done
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » retrieving authorizations for multiple queue managers
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.