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 » How to inquire the PIDs of the QUEUE consumers?

Post new topic  Reply to topic
 How to inquire the PIDs of the QUEUE consumers? « View previous topic :: View next topic » 
Author Message
gaojingyu
PostPosted: Sun Jan 04, 2009 1:24 am    Post subject: How to inquire the PIDs of the QUEUE consumers? Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Sun Jan 04, 2009 3:02 am    Post subject: Re: How to inquire the PIDs of the QUEUE consumers? Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Sun Jan 04, 2009 4:43 am    Post subject: Re: How to inquire the PIDs of the QUEUE consumers? Reply with quote

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
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 » How to inquire the PIDs of the QUEUE consumers?
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.