Author |
Message
|
Le_Quang_Hoa |
Posted: Tue Sep 06, 2005 11:54 pm Post subject: How to manage message in queue, queue manager |
|
|
 Apprentice
Joined: 14 May 2005 Posts: 29 Location: Viet nam
|
Dear all!
I want to manage information about Queue.
For ex:
I have queue named X
I want to view today:
How many messages incoming?
How many messages outcoming?
What is queue manager send this message??
and with Queue Manager MQA
how many message incoming today?
how many message outcoming today ??
...
Any body know what tool do this.
or If using API to write how I can do it??
Thanks _________________ Le Quang Hoa (Mr)
Email :hoa.lequang@gmail.com
YM: hoalq98
Ha noi City - Viet Nam |
|
Back to top |
|
 |
Nigelg |
Posted: Wed Sep 07, 2005 12:19 am Post subject: |
|
|
Grand Master
Joined: 02 Aug 2004 Posts: 1046
|
For queues, you can use the PCF command Reset Queue Statistics. You need to write a program to send the msg to the command server and read the responses.
I do not know of any such command for a qmgr. You could add up all the results for the individual queues. _________________ MQSeries.net helps those who help themselves.. |
|
Back to top |
|
 |
sebastianhirt |
Posted: Wed Sep 07, 2005 12:43 am Post subject: |
|
|
Yatiri
Joined: 07 Jun 2004 Posts: 620 Location: Germany
|
Depending on your design and requirements, channel statistics might help you as well |
|
Back to top |
|
 |
Mr Butcher |
Posted: Wed Sep 07, 2005 1:07 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
reset qstats may not be available, depending on your mq version and plattform.
the easiest way is to let the application collect the statistics, especially if you want to know data that is part of the message or the message header (sending queuemanager).
a channel exit may be an option that is collecting such values _________________ Regards, Butcher |
|
Back to top |
|
 |
hopsala |
Posted: Wed Sep 07, 2005 9:26 am Post subject: |
|
|
 Guardian
Joined: 24 Sep 2004 Posts: 960
|
|
Back to top |
|
 |
Le_Quang_Hoa |
Posted: Wed Sep 07, 2005 7:48 pm Post subject: |
|
|
 Apprentice
Joined: 14 May 2005 Posts: 29 Location: Viet nam
|
Thanks for answers!
I used version 5.3 service packed 9. and run it on Windown 2003 server.
I know we can using code to control information for messsage.
But One thing I don't know , How we can know a message live in TRansmission queue now, or channel.
Any body know what tools to do it
Quote: |
I want to manage information about Queue.
For ex:
I have queue named X
I want to view today:
How many messages incoming?
How many messages outcoming?
What is queue manager send this message??
and with Queue Manager MQA
how many message incoming today?
how many message outcoming today ??
|
_________________ Le Quang Hoa (Mr)
Email :hoa.lequang@gmail.com
YM: hoalq98
Ha noi City - Viet Nam |
|
Back to top |
|
 |
kevinf2349 |
Posted: Wed Sep 07, 2005 8:03 pm Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
Quote: |
How we can know a message live in TRansmission queue now, or channel.
|
Well....messages never 'live' in a channel so that one is pretty easy to deal with as there is no depth to monitor. However if you want to know how many messages have traversed across a channel then if you do a search on this site you will find some excellent 'how to's for just that'.
As for if there is a message in the transmission queue...that too is easy. A transmission queue is just a 'special' instance of a local queue, therefore the same display command can be used that you were given earlier in the thread.
Hope this is what you meant.
 |
|
Back to top |
|
 |
Le_Quang_Hoa |
Posted: Wed Sep 07, 2005 11:57 pm Post subject: |
|
|
 Apprentice
Joined: 14 May 2005 Posts: 29 Location: Viet nam
|
Yes
This is I meant.
But I still don't know the way to know
1. How many message in queue per day?
2. How many message going from this queue per day?
3. How many messages incoming this queue per day?
And 4 How many message outgoing from this queue take error ( not delivery)
thanks _________________ Le Quang Hoa (Mr)
Email :hoa.lequang@gmail.com
YM: hoalq98
Ha noi City - Viet Nam |
|
Back to top |
|
 |
Mr Butcher |
Posted: Thu Sep 08, 2005 1:37 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
buy a commercial message tracker and/or monitoring tool, or write your own. what you want to know can not be achieved with mq only. _________________ Regards, Butcher |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Sep 08, 2005 3:59 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Le_Quang_Hoa wrote: |
1. How many message in queue per day?
2. How many message going from this queue per day?
3. How many messages incoming this queue per day? |
Reset queue statistics, run at the "end" of the "day" will give you all of this. Run it more often, then you need to save the results and add them up.
Le_Quang_Hoa wrote: |
And 4 How many message outgoing from this queue take error ( not delivery) |
Depending on what you mean by "take error", this can be very hard to know.
If you mean, "cause an error inside the program that processes this queue", then it's easy. If you mean "cause an error, because of the business data being wrong, somewhere further downstream at any given point in time", then this is very hard.
I think you need to spend some good amount of time identifiying your business requirements for monitoring and managing. Then you will know what business VALUE you gain from those requirements, and thus you know how much you can SPEND to meet those requirements.
Then you can determine if you should buy a tool, write a tool, or do without. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Le_Quang_Hoa |
Posted: Fri Sep 09, 2005 12:29 am Post subject: |
|
|
 Apprentice
Joined: 14 May 2005 Posts: 29 Location: Viet nam
|
Thanks for your answers!
Mr Butcher wrote
Quote: |
buy a commercial message tracker and/or monitoring tool, or write your own
|
.
Do you know what tool can do it ??.
jefflowrey
Quote: |
Reset queue statistics
|
I used MQ version 5.3 have no command
RESET QLOCAL (TEST) STATIS... _________________ Le Quang Hoa (Mr)
Email :hoa.lequang@gmail.com
YM: hoalq98
Ha noi City - Viet Nam |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Sep 09, 2005 3:22 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You didn't look at the Scripts or PCF manual. The command is "RESET QUEUE STATISTICS".
There are many tools.
You are wasting your company's money if you don't do at least SOME of the analysis I mentioned.
Or if you aren't wasting it, you can't SHOW that you aren't wasting it. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|