2

I'm using a little application I wrote to enquire about the state of some queues on a QM. The enquiry itself is done using the PCFAgent/PCFMessageAgent java classes.

My question is: which (least) privileges must be granted to allow a certain MCA user to run monitoring PCF commands (in particular, MQCMD_INQUIRE_Q_STATUS and MQCMD_INQUIRE_Q)?

Note: by "monitoring" I mean that the commands should not alter the state of the queue manager in any appreciable way.

CAFxX
  • 28,060
  • 6
  • 41
  • 66
  • Letting the bounty expire? An answer from myself and Dale Lane are about as credible/official as it gets! – T.Rob Mar 01 '12 at 15:28
  • I was just waiting for the deadline. I would have awarded it afterwards anyway. Thanks! – CAFxX Mar 01 '12 at 17:39
  • Thanks! Feel free to post follow-up questions if any clarifications are needed. – T.Rob Mar 01 '12 at 20:29

1 Answers1

0

The program must be able to do the following:

  • Connect & inquire on the QMgr
  • Create a model queue using inquire, display and get authority against a suitable model queue (you'd generally define a dedicated one for this rather than using the default model queue)
  • Put PCF messages on the command queue with inquire, display and put authority
  • Inquire on the target queue with display authority

Dale Lane wrote a blog post a while back describing this for the general case of: Using WebSphere MQ Explorer as a read-only viewer. Since WMQ Explorer needs to display all objects of all object types it is a bit more permissive than you are asking for. However, the settings you need are a subset of the ones Dale provides and the post has a lot of good background on the configurations used. I could copy his setmqaut commands here but its worth reading the post.

Incidentally, if you have a v7.1 QMgr and a new WMQ Explorer (downloaded from SupportPac MS0T) there's a security wizard in WMQ Explorer that makes the same settings Dale recommends in his blog post.

Jean-Michel Garcia
  • 2,359
  • 2
  • 23
  • 44
T.Rob
  • 31,522
  • 9
  • 59
  • 103