|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to inquire the PIDs of the QUEUE consumers? |
« View previous topic :: View next topic » |
Author |
Message
|
gaojingyu |
Posted: Sun Jan 04, 2009 1:24 am Post subject: How to inquire the PIDs of the QUEUE consumers? |
|
|
Novice
Joined: 04 Jan 2009 Posts: 11
|
I'm working on a MQ Monitoring Tool with C language now.
What I have known is only the QUEUE NAME, is there any method that I can get the PIDs of all the consumers on this queue?
If using PCF command to inquire MQCA_APPL_ID, I should send the command to inquire process (The command is MQCMD_INQUIRE_PROCESS), but I don't know the required parameter ProcessName, any suggestion? |
|
Back to top |
|
 |
Vitor |
Posted: Sun Jan 04, 2009 3:02 am Post subject: Re: How to inquire the PIDs of the QUEUE consumers? |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
gaojingyu wrote: |
I'm working on a MQ Monitoring Tool with C language now. |
Why bother? Use the supplied facilities or a commercial tool. The disadvantages of a home grown solution have been discussed many times.
gaojingyu wrote: |
What I have known is only the QUEUE NAME, is there any method that I can get the PIDs of all the consumers on this queue? |
You can obtain the handles on the queue, and from those the process pids.
gaojingyu wrote: |
If using PCF command to inquire MQCA_APPL_ID, I should send the command to inquire process (The command is MQCMD_INQUIRE_PROCESS), but I don't know the required parameter ProcessName, any suggestion? |
I'm not certain I understand the question? All PCF commands are submitted in the same way. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun Jan 04, 2009 4:43 am Post subject: Re: How to inquire the PIDs of the QUEUE consumers? |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
gaojingyu wrote: |
I'm working on a MQ Monitoring Tool with C language now.
What I have known is only the QUEUE NAME, is there any method that I can get the PIDs of all the consumers on this queue?
If using PCF command to inquire MQCA_APPL_ID, I should send the command to inquire process (The command is MQCMD_INQUIRE_PROCESS), but I don't know the required parameter ProcessName, any suggestion? |
I seriously doubt that process has anything to do with it... I would rather look in the direction of queue status and connection.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|