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 » Time stamp of messages arrived/departaured on a Queue

Post new topic  Reply to topic
 Time stamp of messages arrived/departaured on a Queue « View previous topic :: View next topic » 
Author Message
bkRaju
PostPosted: Thu Jun 25, 2009 11:13 pm    Post subject: Time stamp of messages arrived/departaured on a Queue Reply with quote

Centurion

Joined: 19 Aug 2008
Posts: 106

Experts..

I have a query to find the property of the queue to check the in out statistics of message. It may be alias or any other queue, the statistics of the queue before and after firing the message has to be captured. So could anyone let me know the parameter which helps us in determining this.
Queue-->Qlocal/alias Queue/Remote Queue.

Thanks
Back to top
View user's profile Send private message
AkankshA
PostPosted: Thu Jun 25, 2009 11:18 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

why do u want this from MQ ?

have your putting/sending and receiving/getting application capture and print the timestamp for you...
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
bkRaju
PostPosted: Thu Jun 25, 2009 11:39 pm    Post subject: Reply with quote

Centurion

Joined: 19 Aug 2008
Posts: 106

Yes..I wanted to know it .

Time stamp of a last message reached and proceesd on a queue.

is there any way?
Back to top
View user's profile Send private message
AkankshA
PostPosted: Fri Jun 26, 2009 12:04 am    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

Quote:

Yes..I wanted to know it .



just bcoz i want, contact admin would not send another satellite in space...... i shd have justified reasons for the same...

pls share your rsns too... so that we can try to suggest ways out..

also, its quite tedious to capture it from queue alone... not just a matter of click n see.... [/quote]
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
Vitor
PostPosted: Fri Jun 26, 2009 12:15 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

bkRaju wrote:
Yes..I wanted to know it .


This is circular. Answering the question "why do you want to know this" with "because I want to know it" doesn't help. If you don't tell us your requirements, what you're trying to achieve, we're unable to offer alternatives if what you're actually asking isn't possible.

bkRaju wrote:
Time stamp of a last message reached and proceesd on a queue.


This isn't actually what you asked for in your original post. If you're trying to capture "in out statistics" as you originally stated (more formally called EnqCount & DeqCount) then performance events will capture these.

If you want the time stamp of the last message processed, then you'll need to build something. Having first determined if you mean the time stamp the message was processed or the time stamp of the message itself (which is the time it was put at the sender end, not picked up at the receiver). Note also that both alias and remote queues don't actually store messages themselves.

This goes back to elucidating your requirement as I said above.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bkRaju
PostPosted: Fri Jun 26, 2009 2:53 am    Post subject: Reply with quote

Centurion

Joined: 19 Aug 2008
Posts: 106

Requirement:monitoring queues like whther message is landed on queue or not, If landed what is the time when message put to the queue and what is the time message processed from queue.

even I need same on alias/remote queues as well.


Suggetions.
Back to top
View user's profile Send private message
exerk
PostPosted: Fri Jun 26, 2009 2:57 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

bkRaju wrote:
Requirement:monitoring queues like whther message is landed on queue or not, If landed what is the time when message put to the queue and what is the time message processed from queue...

even I need same on alias/remote queues as well.


Suggetions.


Sounds suspiciously like a COA/COD scenario to me...
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
AkankshA
PostPosted: Fri Jun 26, 2009 3:34 am    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

bkRaju wrote:
Requirement:monitoring queues like whther message is landed on queue or not, If landed what is the time when message put to the queue and what is the time message processed from queue.

even I need same on alias/remote queues as well.


Suggetions.


in case you want to trace for one particular msg then you can hv a look at last message sent time of channel.... provided, sendinga nd receiving application are connecting to MQ using different channels...
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
Vitor
PostPosted: Fri Jun 26, 2009 3:39 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

bkRaju wrote:
Requirement:monitoring queues like whther message is landed on queue or not


This is a bad requirement. Your site is paying a lot of money for WMQ, and one of the reasons this has been done is because WMQ offers assured delivery. Hence you don't need to monitor if the message has landed on the queue, you need to monitor if WMQ is working properly. This is a standard requirement, is described in the Monitoring manual and has been discussed here a lot.

bkRaju wrote:
If landed what is the time when message put to the queue and what is the time message processed from queue.


Do you actually want the time spent in transit of each individual message, or do you actually want the time messages spend sitting on a queue?

bkRaju wrote:
even I need same on alias/remote queues as well.


Why? What would this measure give you? Given that you're apparently monitoring the local queues?

bkRaju wrote:
Suggetions.


Clarify your requirements and read some discussions.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Jun 26, 2009 3:40 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

exerk wrote:
bkRaju wrote:
Requirement:monitoring queues like whther message is landed on queue or not, If landed what is the time when message put to the queue and what is the time message processed from queue...

even I need same on alias/remote queues as well.


Suggetions.


Sounds suspiciously like a COA/COD scenario to me...


With all the usual good reasons not to do it, and the problems COA/COD cause.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
dk27
PostPosted: Fri Jun 26, 2009 4:19 am    Post subject: Reply with quote

Acolyte

Joined: 28 Apr 2008
Posts: 51

I will give you a hint. Enable Queue Mon and Channel Mon in queue manager (V6.0 and above). This should help you in what ever you want to achieve. But yes this is not a correct way for monitoring bulk messages as advised in previous posts..
Back to top
View user's profile Send private message
sumit
PostPosted: Fri Jun 26, 2009 8:44 am    Post subject: Reply with quote

Partisan

Joined: 19 Jan 2006
Posts: 398

May be you can use some tool like Patrol.
May be you can write an exit considering all pros and cons of it.
And may be, you can modify the application putting/getting messages on a queue to record that time for you (an easier option).
_________________
Regards
Sumit
Back to top
View user's profile Send private message Yahoo Messenger
Sam Uppu
PostPosted: Fri Jun 26, 2009 10:31 am    Post subject: Reply with quote

Yatiri

Joined: 11 Nov 2008
Posts: 610

amqsmon sample may help you. It will tell you how many PUTs and how many GETs occured on this queue during a specified interval(default: 1800 second). It will not provide the information for each and every individual msg.

thanks.
Back to top
View user's profile Send private message
shashivarungupta
PostPosted: Fri Jun 26, 2009 11:47 am    Post subject: Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

bkRaju
Quote:
property of the queue to check the in out statistics of message.

Quote:
Time stamp of a last message reached and proceesd on a queue.


The two statements have different treatment.
For the first one you need to setup either script or if you are using broker then some esql code to capture the time of in and out for all the messages, by capturing mqmd parameters and its value from the message.

For the second one, you should know when the application is done with putting the messages and its not going to put anymore.. because for active applications, they'll send the messages all the times and queue depth will grow (and would be picked up by some target appl. ) so how you'll come to know this message is the last message. It could be possible for batch interfaces, which fire a set of messages to the queue and then you can capture last message time.

bkRaju
Quote:
Requirement:monitoring queues like whther message is landed on queue or not..

Why dont to check the input and output count on the queue , just for the sake that messages are being put and received by applications at both the ends.

I am agree with all other posters that the requirement definition must be clear and specific., so that.. to the point suggestions can be given by without flogging the dead horse.

You can use "IS02: WebSphere Message Broker Explorer Plug-in" for mq explorer, to get the accounting n stats details at broker level., you'll get time stamp of message in/out (if by any chance you are using broker 6.1)
_________________
*Life will beat you down, you need to decide to fight back or leave it.
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 » General IBM MQ Support » Time stamp of messages arrived/departaured on a Queue
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.