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 » General IBM MQ Support » How to manage message in queue, queue manager

Post new topic  Reply to topic
 How to manage message in queue, queue manager « View previous topic :: View next topic » 
Author Message
Le_Quang_Hoa
PostPosted: Tue Sep 06, 2005 11:54 pm    Post subject: How to manage message in queue, queue manager Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
Nigelg
PostPosted: Wed Sep 07, 2005 12:19 am    Post subject: Reply with quote

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
View user's profile Send private message
sebastianhirt
PostPosted: Wed Sep 07, 2005 12:43 am    Post subject: Reply with quote

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
View user's profile Send private message
Mr Butcher
PostPosted: Wed Sep 07, 2005 1:07 am    Post subject: Reply with quote

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
View user's profile Send private message
hopsala
PostPosted: Wed Sep 07, 2005 9:26 am    Post subject: Reply with quote

Guardian

Joined: 24 Sep 2004
Posts: 960

Ugent --How to see a queue proces is flowing ?Thanks.
How can you keeping running total of msgs per Q for the day?

The Search Button hath spoken.
Back to top
View user's profile Send private message
Le_Quang_Hoa
PostPosted: Wed Sep 07, 2005 7:48 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
kevinf2349
PostPosted: Wed Sep 07, 2005 8:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Le_Quang_Hoa
PostPosted: Wed Sep 07, 2005 11:57 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
Mr Butcher
PostPosted: Thu Sep 08, 2005 1:37 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Thu Sep 08, 2005 3:59 am    Post subject: Reply with quote

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
View user's profile Send private message
Le_Quang_Hoa
PostPosted: Fri Sep 09, 2005 12:29 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
jefflowrey
PostPosted: Fri Sep 09, 2005 3:22 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » How to manage message in queue, queue manager
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.