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 » OAM authorities

Post new topic  Reply to topic
 OAM authorities « View previous topic :: View next topic » 
Author Message
mimi
PostPosted: Fri Jan 14, 2005 12:16 pm    Post subject: OAM authorities Reply with quote

Novice

Joined: 01 Oct 2004
Posts: 18

Hi,

I use the ms0i to backup the authorities for my queue manager, this support pack generate a script file contains a bunch of setmqaut. Now I would like to restore this, so I run the script file but I got lot of errors

AMQ7094: You specified an object type that is not valid, or more than one
object type.

Has anyone done this before, if so, please give me some ideas/hints on how to run this file.

Thanks,
Mimi
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Jan 14, 2005 12:25 pm    Post subject: Reply with quote

Grand High Poobah

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

Can you post part of the script and explain how you run it?

Thanks
F.J.
Back to top
View user's profile Send private message Send e-mail
mimi
PostPosted: Fri Jan 14, 2005 12:30 pm    Post subject: Reply with quote

Novice

Joined: 01 Oct 2004
Posts: 18

Here is part of the file

#!/bin/sh
# script to regenerate MQSeries OAM authorizations
# Queue Manager: TEST
# generated: Fri Jan 14 13:32:49 2005

echo script generated Fri Jan 14 13:32:49 2005
date
echo

echo setting webadmin authorities for qmgr self
/opt/mqm/bin/setmqaut -m TEST -t -n self -g webadmin \
-all +altusr +connect +inq +set +setall +setid +chg +crt +dlt +dsp

echo setting webadmin authorities for queue SYSTEM.DEFAULT.LOCAL.QUEUE
/opt/mqm/bin/setmqaut -m TEST -t -n SYSTEM.DEFAULT.LOCAL.QUEUE -g webadmin \
-all +browse +get +inq +passall +passid +put +set +setall +setid +chg +clr +dlt +dsp

echo setting webadmin authorities for queue SYSTEM.DEFAULT.MODEL.QUEUE
/opt/mqm/bin/setmqaut -m TEST -t -n SYSTEM.DEFAULT.MODEL.QUEUE -g webadmin \
-all +browse +get +inq +passall +passid +put +set +setall +setid +chg +clr +dlt +dsp

echo setting webadmin authorities for queue SYSTEM.DEFAULT.ALIAS.QUEUE
/opt/mqm/bin/setmqaut -m TEST -t -n SYSTEM.DEFAULT.ALIAS.QUEUE -g webadmin \
-all +browse +get +inq +passall +passid +put +set +setall +setid +chg +clr +dlt +dsp

echo setting webadmin authorities for queue SYSTEM.DEFAULT.REMOTE.QUEUE
/opt/mqm/bin/setmqaut -m TEST -t -n SYSTEM.DEFAULT.REMOTE.QUEUE -g webadmin \
-all +browse +get +inq +passall +passid +put +set +setall +setid +chg +clr +dlt +dsp

echo setting webadmin authorities for queue SYSTEM.DEFAULT.INITIATION.QUEUE
/opt/mqm/bin/setmqaut -m TEST -t -n SYSTEM.DEFAULT.INITIATION.QUEUE -g webadmin \
-all +browse +get +inq +passall +passid +put +set +setall +setid +chg +clr +dlt +dsp


Mimi
_________________
mimi
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Jan 14, 2005 12:42 pm    Post subject: Reply with quote

Grand High Poobah

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

Where your -n gives a queue name your -t does not specify an object type:

it should read like this:
echo setting webadmin authorities for queue SYSTEM.DEFAULT.LOCAL.QUEUE
/opt/mqm/bin/setmqaut -m TEST -t q -n SYSTEM.DEFAULT.LOCAL.QUEUE -g webadmin \
-all +browse +get +inq +passall +passid +put +set +setall +setid +chg +clr +dlt +dsp

Enjoy
Back to top
View user's profile Send private message Send e-mail
mimi
PostPosted: Fri Jan 14, 2005 12:54 pm    Post subject: Reply with quote

Novice

Joined: 01 Oct 2004
Posts: 18

I still got an error for at this line even though I put -t qmgr

echo setting webadmin authorities for qmgr self
/opt/mqm/bin/setmqaut -m TEST -t qmgr -n self -g webadmin \
-all +altusr +connect +inq +set +setall +setid +chg +crt +dlt +dsp

Any suggestions?

Thanks alot.
Mimi
_________________
mimi
Back to top
View user's profile Send private message
bbburson
PostPosted: Fri Jan 14, 2005 1:46 pm    Post subject: Reply with quote

Partisan

Joined: 06 Jan 2004
Posts: 378
Location: Nowhere near a queue manager

The -n parameter is not valid with "-t qmgr"; the sys admin book doesn't say this, but observed behavior of the setmqaut command bears it out.
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 » OAM authorities
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.