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 » IBM MQ API Support » Which authorization needed for RESET_Q_STATS

Post new topic  Reply to topic
 Which authorization needed for RESET_Q_STATS « View previous topic :: View next topic » 
Author Message
sfari
PostPosted: Thu Jan 15, 2009 6:40 am    Post subject: Which authorization needed for RESET_Q_STATS Reply with quote

Centurion

Joined: 15 Apr 2003
Posts: 144

Hi, could somebody please tell me which authorizations are needed for MQCMD_RESET_Q_STATS on Solaris?

I have set the rights below, as you see "all" for profile **, but even then executing the reset command returns MQRQ_CMD_NOT_AUTHORIZED!

profile: SYSTEM.ADMIN.COMMAND.QUEUE
object type: queue
entity: ipstats
entity type: group
authority: put
- - - - - - - -
profile: SYSTEM.MQSC.REPLY.QUEUE (this is the reply model)
object type: queue
entity: ipstats
entity type: group
authority: get dsp
- - - - - - - -
profile: self
object type: qmgr
entity: ipstats
entity type: group
authority: inq connect dsp setid
- - - - - - - -
profile: **
object type: queue
entity: ipstats
entity type: group
authority: allmqi dlt chg dsp clr

Thanks for any help
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Thu Jan 15, 2009 6:45 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

this command is only available on z/OS
_________________
Regards, Butcher
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Jan 15, 2009 8:29 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

No, I don't think so....
http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=/com.ibm.mq.csqzac.doc/pc13860_.htm
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Thu Jan 15, 2009 8:26 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Hi,

What version of WMQ server are you running?

Regards,
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
Mr Butcher
PostPosted: Thu Jan 15, 2009 8:53 pm    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

mhhhh strange.....

the WebSphere MQ Script (MQSC) Command Reference manuel reads that "reset qstats" is only valid on z/OS (i checked version 6 and 7 manuals).

but yes you are right i i also checked V6 and V7 infocenter, the PCF section (see link above) and the V7 PCF manual, this documentation reads that the PCF command MQCMD_RESET_Q_STATS is available on all plattforms.

does not really makes sense to me.........
_________________
Regards, Butcher
Back to top
View user's profile Send private message
sfari
PostPosted: Thu Jan 15, 2009 11:43 pm    Post subject: Reply with quote

Centurion

Joined: 15 Apr 2003
Posts: 144

Actually the command is available on Solaris as well. When I am using the user mqm for sending the command it is working without problems. The thing is that if possible I don't want to use mqm for this case.

I am running MQ Version 6.0.2.4.
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Fri Jan 16, 2009 12:22 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

check the system administration guide, "authorization for pcf commands", for version 6 this is from page 216 on.

reset queue statistics (page 219) requires display and change
_________________
Regards, Butcher
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Jan 16, 2009 3:51 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Yes. The PCF command is available on all platforms - has been since somewhere in the v5 timeframe. The MQSC command is not.

sfari said "MQCMD_RESET_Q_STATS", which is the PCF command, and not 'RESET QSTATS" which is the MQSC command.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Jan 16, 2009 4:07 am    Post subject: Reply with quote

Grand High Poobah

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

Mr Butcher wrote:
check the system administration guide, "authorization for pcf commands", for version 6 this is from page 216 on.

reset queue statistics (page 219) requires display and change

If I understand this right it would require that the sender of the pcf command has chg authorization for the queue he/she is trying to reset the stats for.

This is why this command should only be reserved for admin users as otherwise you have opened a security hole for any of your authorized users to change the queue set up (alter queue)... via pcf commands...

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
sfari
PostPosted: Fri Jan 16, 2009 7:13 am    Post subject: Reply with quote

Centurion

Joined: 15 Apr 2003
Posts: 144

Thanks for the answers. We could live with this kind of security whole since this user is configured as MCAUSER on a channel which is restricted for clients having a specific certificate (SSLPEER).

For my tests I defined the following profile for the user.

- - - - - - - -
profile: **
object type: queue
entity: ipstats
entity type: group
authority: allmqi dlt chg dsp clr

What can be the reason for still getting MQRQ_CMD_NOT_AUTHORIZED? If I configure mqm as MCAUSER on the above mentioned channel it works. What has mqm more?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Jan 16, 2009 1:59 pm    Post subject: Reply with quote

Grand High Poobah

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

sfari wrote:
Thanks for the answers. We could live with this kind of security whole since this user is configured as MCAUSER on a channel which is restricted for clients having a specific certificate (SSLPEER).

For my tests I defined the following profile for the user.

- - - - - - - -
profile: **
object type: queue
entity: ipstats
entity type: group
authority: allmqi dlt chg dsp clr

What can be the reason for still getting MQRQ_CMD_NOT_AUTHORIZED? If I configure mqm as MCAUSER on the above mentioned channel it works. What has mqm more?


Look it up in the manual. mqm has IIRC +all +alladmin
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Which authorization needed for RESET_Q_STATS
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.