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 » setmqaut command issue

Post new topic  Reply to topic
 setmqaut command issue « View previous topic :: View next topic » 
Author Message
ghoshly
PostPosted: Tue May 25, 2021 1:34 pm    Post subject: setmqaut command issue Reply with quote

Partisan

Joined: 10 Jan 2008
Posts: 325

Created new queue manager in MQ 9.2 and facing issue with setmqaut command. Please help to identify the reason for the failure.

Code:

[mqm@WGAZUS-ESBXXXX errors]$ setmqaut -m NFSQM01 -t queue -n * -p tghosh +all
AMQ7097E: You gave an authorization specification that is not valid.
[mqm@WGAZUS-ESBXXXX errors]$ setmqaut -m NFSQM01 -t topic -n * -p tghosh +all
AMQ7097E: You gave an authorization specification that is not valid.


Tried below options as well, but still failed.

Code:

[mqm@WGAZUS-ESBXXXX errors]$ setmqaut -m NFSQM01 -t queue -n * -p tghosh +allmqi
AMQ7097E: You gave an authorization specification that is not valid.
[mqm@WGAZUS-ESBXXXX errors]$ setmqaut -m NFSQM01 -t queue -n * -p tghosh +alladm
AMQ7097E: You gave an authorization specification that is not valid.



Below command was successful..
Quote:
setmqaut -m NFSQM01 -t qmgr -p tghosh +all
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Tue May 25, 2021 3:27 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2492
Location: Melbourne, Australia

* is probably being expanded by your shell into a list of files in your current directory. Try putting it in quotes "*". Some shells allow * to be preceded by \, as an alternative to using quotes.
_________________
Glenn
Back to top
View user's profile Send private message
hughson
PostPosted: Tue May 25, 2021 6:32 pm    Post subject: Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1914
Location: Bay of Plenty, New Zealand


_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
exerk
PostPosted: Wed May 26, 2021 5:16 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

And better to use SET AUTHREC too...
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
ghoshly
PostPosted: Wed May 26, 2021 5:37 am    Post subject: Thank you...resolved. Reply with quote

Partisan

Joined: 10 Jan 2008
Posts: 325

Thanks all for your response. I was only puzzled by the error message on authorization specification. "*" works here. I'll try to learn about AUTHREC.

on your experience and knowledge.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Wed May 26, 2021 2:38 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2492
Location: Melbourne, Australia

Note that * in a MQ authorization profile only matches object names that have one qualifier, ie. do not contain any periods "."
Use "**" to match everything.

https://www.ibm.com/docs/en/ibm-mq/9.1?topic=windows-using-oam-generic-profiles-unix-linux

To use some authorities on queues, you will also need to set authorities on the qmgr object.
_________________
Glenn
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 » setmqaut command issue
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.