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 » identifying a message from log

Post new topic  Reply to topic
 identifying a message from log « View previous topic :: View next topic » 
Author Message
saikat89
PostPosted: Mon Sep 10, 2012 1:07 am    Post subject: identifying a message from log Reply with quote

Novice

Joined: 06 Sep 2012
Posts: 15

Hi all!


Application team wants to to confirm confirm whether a particular message has been passed/sent/received by a queue.Can I use dmpmqlog?Is there any other method?

Is there anything like TRN to identify a message?How to identify a message? Is their any idno present in log for messages passed through a queue manager
?


Regards,
saikat
Back to top
View user's profile Send private message
exerk
PostPosted: Mon Sep 10, 2012 1:11 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

If the application team want auditing the should include it within their code. Otherwise there are third-party applications that will do auditing for them (make sure the application team fund it) or there are offerings from one of the sponsors of this site which will allow recovery of messages from logs.

My advice is: don't let the shortcomings of the application team become a rod for your back, i.e. cause management-intensive tasks for you!
_________________
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
nathanw
PostPosted: Mon Sep 10, 2012 2:26 am    Post subject: Reply with quote

Knight

Joined: 14 Jul 2004
Posts: 550

exerk wrote:
If the application team want auditing the should include it within their code. Otherwise there are third-party applications that will do auditing for them (make sure the application team fund it) or there are offerings from one of the sponsors of this site which will allow recovery of messages from logs.

My advice is: don't let the shortcomings of the application team become a rod for your back, i.e. cause management-intensive tasks for you!


sounds to me like message affinity ie has a db create happened so they can carry out an update

but I also agree with exerk they know what has been processed alot easier than you
_________________
Who is General Failure and why is he reading my hard drive?

Artificial Intelligence stands no chance against Natural Stupidity.

Only the User Trace Speaks The Truth
Back to top
View user's profile Send private message MSN Messenger
saikat89
PostPosted: Mon Sep 10, 2012 5:31 am    Post subject: Reply with quote

Novice

Joined: 06 Sep 2012
Posts: 15

exerk wrote:
If the application team want auditing the should include it within their code. Otherwise there are third-party applications that will do auditing for them (make sure the application team fund it) or there are offerings from one of the sponsors of this site which will allow recovery of messages from logs.

My advice is: don't let the shortcomings of the application team become a rod for your back, i.e. cause management-intensive tasks for you!



Hi !
Thanks for your reply.

Few more doubts. Need your help.

1.So, dmpmqlog can't be used for this purpose?

2.Actually in our case, the application team states that a particular message has tansmitted status in our ServerA but it has not reached Server B.So, they want to confirm whether the message has come to MQ itself or not. Is there any way from MQ side?

3.What is TRN in a message? for e.g, TRN " SAA33572212"


Regards,
Saikat
Back to top
View user's profile Send private message
exerk
PostPosted: Mon Sep 10, 2012 6:10 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

saikat89 wrote:
1.So, dmpmqlog can't be used for this purpose?

Correct, it cannot be used for what you want.

saikat89 wrote:
2.Actually in our case, the application team states that a particular message has tansmitted status in our ServerA but it has not reached Server B. So, they want to confirm whether the message has come to MQ itself or not. Is there any way from MQ side?

You're now into the realms of COA and COD messages, and that's a route you really do not want to go down.

saikat89 wrote:
3.What is TRN in a message? for e.g, TRN " SAA33572212"

Presumably the unique transaction ID.
_________________
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
nathanw
PostPosted: Mon Sep 10, 2012 6:14 am    Post subject: Reply with quote

Knight

Joined: 14 Jul 2004
Posts: 550

saikat89 wrote:


2.Actually in our case, the application team states that a particular message has tansmitted status in our ServerA but it has not reached Server B.So, they want to confirm whether the message has come to MQ itself or not. Is there any way from MQ side?


Simple answer is that unless every message has been stored in a db or queue somewhere then no.

Simple logic here

If a message is received by MQ (and this should be checked) and it has not bee received by target app then

a) check target app is not losing / erroring message on read

b) check MQ logs for any error at same time of processing

MQ should not lose a message it may be on a DLQ or Failure queue somewhere.

The message may have been sent to the app but not received by MQ

check the apps error logs
_________________
Who is General Failure and why is he reading my hard drive?

Artificial Intelligence stands no chance against Natural Stupidity.

Only the User Trace Speaks The Truth
Back to top
View user's profile Send private message MSN Messenger
Vitor
PostPosted: Mon Sep 10, 2012 6:18 am    Post subject: Reply with quote

Grand High Poobah

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

saikat89 wrote:
1.So, dmpmqlog can't be used for this purpose?


No. <plug>But a 3rd party commercial tool from this forum's sponsors can be so used </plug>

saikat89 wrote:
2.Actually in our case, the application team states that a particular message has tansmitted status in our ServerA but it has not reached Server B.So, they want to confirm whether the message has come to MQ itself or not. Is there any way from MQ side?


This "WMQ lost my message" is the most common claim made by developers. The first step to confirm this is to have the application team prove that the message actually reached WMQ by showing you the non-zero from the put / send.

After that it's a message hunt.

saikat89 wrote:
3.What is TRN in a message? for e.g, TRN " SAA33572212"


This is not a WMQ concept.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
saikat89
PostPosted: Mon Sep 10, 2012 7:03 am    Post subject: Reply with quote

Novice

Joined: 06 Sep 2012
Posts: 15

Quote:
After that it's a message hunt.



--How can I do it apart from using the third party tool?


Regards,
Saikat
Back to top
View user's profile Send private message
saikat89
PostPosted: Mon Sep 10, 2012 7:10 am    Post subject: Reply with quote

Novice

Joined: 06 Sep 2012
Posts: 15

Quote:
The message may have been sent to the app but not received by MQ



How can I prove it?

Regards,
Saikat
Back to top
View user's profile Send private message
exerk
PostPosted: Mon Sep 10, 2012 7:12 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

saikat89 wrote:
Quote:
After that it's a message hunt.



--How can I do it apart from using the third party tool?


Regards,
Saikat

Ensure the applications audit themselves...
_________________
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
exerk
PostPosted: Mon Sep 10, 2012 7:15 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

saikat89 wrote:
Quote:
The message may have been sent to the app but not received by MQ



How can I prove it?

Regards,
Saikat

When applications people tell me that WMQ has lost their message, generally my first response is: "...prove to me that your application got the message into WMQ in the first place...", and as they generally can't I ask them to provide funding for a tool that will audit, or expect them to change their code to provide that audit. I suggest that's a good line for you to take too.
_________________
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
nathanw
PostPosted: Mon Sep 10, 2012 7:21 am    Post subject: Reply with quote

Knight

Joined: 14 Jul 2004
Posts: 550

the app writes to a queue correct?

therefore put the queue into get inhibit mode so the message will stay there.

once in that mode tell them to send a message and if the number count goes up then it has arrived

oh and make sure that no other apps are writing to the queue at the same time

this will prove that the app is writing to the queue

if this is a success ie you see a message arrive then start from the other end ie the target app reading from the queue

you know there is a message on the queue so get them to read the queue and if it is read then you know the app is reading correctly

you can also say that the issue is not part of MQ but application

oh and dont forget to to get allow the queue to enable the target app to read
_________________
Who is General Failure and why is he reading my hard drive?

Artificial Intelligence stands no chance against Natural Stupidity.

Only the User Trace Speaks The Truth
Back to top
View user's profile Send private message MSN Messenger
saikat89
PostPosted: Mon Sep 10, 2012 8:03 am    Post subject: Reply with quote

Novice

Joined: 06 Sep 2012
Posts: 15

Quote:
Correct, it cannot be used for what you want.
---So, what for we dump the logcontents using this command?
Back to top
View user's profile Send private message
nathanw
PostPosted: Mon Sep 10, 2012 8:14 am    Post subject: Reply with quote

Knight

Joined: 14 Jul 2004
Posts: 550

ok re read the thread and look at what people have posted and then you will see for yourself

try doing some actions yourself
_________________
Who is General Failure and why is he reading my hard drive?

Artificial Intelligence stands no chance against Natural Stupidity.

Only the User Trace Speaks The Truth
Back to top
View user's profile Send private message MSN Messenger
Vitor
PostPosted: Mon Sep 10, 2012 8:16 am    Post subject: Reply with quote

Grand High Poobah

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

saikat89 wrote:
Quote:
Correct, it cannot be used for what you want.
---So, what for we dump the logcontents using this command?


Typically you use it when IBM Support asks for it.

One key issue for your use case is this:

Quote:
Do not dump the log while the queue manager is running, and do not start the queue manager while dmpmqlog is running


Even assuming this command did want you want it to do, it's not feasible to shut down the queue manager every time the application people lose a message. It's inconvienient in Development, disruptive in QA and represents a loss of service with cost implications in Production.

Do you really want to tell your management you want to shut down an otherwise working and productive production queue manager to play hunt the message?
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » identifying a message from log
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.