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 » WebSphere Message Broker (ACE) Support » Message ID in the Trace node at the input and output nodes

Post new topic  Reply to topic
 Message ID in the Trace node at the input and output nodes « View previous topic :: View next topic » 
Author Message
chris boehnke
PostPosted: Sun May 20, 2007 7:47 am    Post subject: Message ID in the Trace node at the input and output nodes Reply with quote

Partisan

Joined: 25 Jul 2006
Posts: 369

Hi,
I am using a trace node at the input and output nodes to record the message Id, date and timestamp of the message when it enters into the broker's input node and when it reaches the output node.

With the record of the trace nodes, we are going to analyze the time for the message flow to process the message(to see the performance of the flow).

Question: How to get the message Id in the trace node when the message enters into the input node?.

Thanks.
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Sun May 20, 2007 10:28 am    Post subject: Re: Message ID in the Trace node at the input and output nod Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

Hi, I would set trace with :


Code:
${Root.MQMD.MsgId}

_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
smdavies99
PostPosted: Sun May 20, 2007 10:38 am    Post subject: This is one area where... Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

The IBM product documentation leaves a little to be desired.
The documentation on the trace node is very scant in describing the sort of thing you can do with it. Hence, this question.

If there were more examples of using the various sources of data ( $Body, $Environment etc) and the properties therein it would really help people make real effective use of the features in the node.


_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
chris boehnke
PostPosted: Sun May 20, 2007 10:39 am    Post subject: Re: Message ID in the Trace node at the input and output nod Reply with quote

Partisan

Joined: 25 Jul 2006
Posts: 369

Thanks Marcin
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Sun May 20, 2007 11:03 am    Post subject: Re: This is one area where... Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

smdavies99 wrote:
The IBM product documentation leaves a little to be desired.
The documentation on the trace node is very scant in describing the sort of thing you can do with it. Hence, this question.

There's a feedback link at the bottom of almost every page in the Info Center. In my experience, this feedback link is taken seriously, and changes are made to improve the documentation.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
chris boehnke
PostPosted: Mon May 21, 2007 6:50 pm    Post subject: Re: This is one area where... Reply with quote

Partisan

Joined: 25 Jul 2006
Posts: 369

Hi,
I am recording the message information at the input and output by placing a Trace node(Date, timestamp and MsgId).

In my local environment I selected the File option in the trace node and i gave the file path as "C:\Program Files\IBM\MessageBrokersToolkit\6.0\Error_Trace.log.txt" and I am able to write the information to the file Error_Trace.log.txt which is a good thing.

Question: Now I want to set the file path onto a Unix Box where my TEST broker is running. I set the Trace node's file path as "/var/mqsi/Error_Trace.log.txt" but I dont see anything written to this file.

Do you guys know whether I am doing any mistake while defining the path on the Unix?.

Thanks.
Chris
Back to top
View user's profile Send private message
chris boehnke
PostPosted: Mon May 21, 2007 7:10 pm    Post subject: Re: This is one area where... Reply with quote

Partisan

Joined: 25 Jul 2006
Posts: 369

Hi,
I am recording the message information at the input and output by placing a Trace node(Date, timestamp and MsgId).

In my local environment I selected the File option in the trace node and i gave the file path as "C:\Program Files\IBM\MessageBrokersToolkit\6.0\Error_Trace.log.txt" and I am able to write the information to the file Error_Trace.log.txt which is a good thing.

Question: Now I want to set the file path onto a Unix Box where my TEST broker is running. I set the Trace node's file path as "/var/mqsi/Error_Trace.log.txt" but I dont see anything written to this file.

Do you guys know whether I am doing any mistake while defining the path on the Unix?.

Thanks.
Chris
Back to top
View user's profile Send private message
vk
PostPosted: Mon May 21, 2007 7:28 pm    Post subject: Reply with quote

Partisan

Joined: 20 Sep 2005
Posts: 302
Location: Houston

Is the message going successfully to the output queue?

Check whether the broker user ID has write permissions on the directory /var/mqsi and the file Error_Trace.log.txt. Also ensure that the /var/mqsi file system is not full. You can check this by issuing a df -k command.

Regards,
VK.
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Tue May 22, 2007 5:14 am    Post subject: Re: This is one area where... Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

chris boehnke wrote:
..
Question: Now I want to set the file path onto a Unix Box where my TEST broker is running. I set the Trace node's file path as "/var/mqsi/Error_Trace.log.txt" but I dont see anything written to this file.

Do you guys know whether I am doing any mistake while defining the path on the Unix?.

Thanks.
Chris


You can check system logs /var/adm/messages to find if it is problem with user permissions or another one.
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
chris boehnke
PostPosted: Wed May 23, 2007 10:00 am    Post subject: Re: This is one area where... Reply with quote

Partisan

Joined: 25 Jul 2006
Posts: 369

Hi guys,
I am recording the date and timestamp of a message by using a Trace Node with the statement:
Date is: ${EXTRACT(YEAR FROM CURRENT_DATE)}-${EXTRACT(MONTH FROM CURRENT_DATE)}-${EXTRACT (DAY FROM CURRENT_DATE)} Time is: ${EXTRACT(HOUR FROM CURRENT_TIMESTAMP)}:${EXTRACT(MINUTE FROM CURRENT_TIMESTAMP)}:${CAST(CAST((1000*EXTRACT(SECOND FROM CURRENT_TIME)) AS INTEGER) AS CHAR)}

The timestamp is recording as eg: 9:9:59799. Is there anyway to standardize the timestamp as 09:09:59799(hh:mm:sssss) inside a Trace Node?.
I know that we use 'funcPadNumber' function to achieve this in a Compute Node. I dont know how we can do it in a Trace Node. Can we somehow implement this function in a Trace Node or do we have some other option to achieve this?.

Thanks.
Back to top
View user's profile Send private message
madi
PostPosted: Wed May 23, 2007 12:11 pm    Post subject: Reply with quote

Chevalier

Joined: 17 Jan 2006
Posts: 475

i havent tried this in a trace node but try to cast the timestamp using the format option and u should see it in ur desired format

although not sure if cast will work in a trace

--madi
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 » WebSphere Message Broker (ACE) Support » Message ID in the Trace node at the input and output nodes
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.