Author |
Message
|
chris boehnke |
Posted: Sun May 20, 2007 7:47 am Post subject: Message ID in the Trace node at the input and output nodes |
|
|
 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 |
|
 |
marcin.kasinski |
Posted: Sun May 20, 2007 10:28 am Post subject: Re: Message ID in the Trace node at the input and output nod |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
Hi, I would set trace with :
_________________ Marcin |
|
Back to top |
|
 |
smdavies99 |
Posted: Sun May 20, 2007 10:38 am Post subject: This is one area where... |
|
|
 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 |
|
 |
chris boehnke |
Posted: Sun May 20, 2007 10:39 am Post subject: Re: Message ID in the Trace node at the input and output nod |
|
|
 Partisan
Joined: 25 Jul 2006 Posts: 369
|
|
Back to top |
|
 |
jefflowrey |
Posted: Sun May 20, 2007 11:03 am Post subject: Re: This is one area where... |
|
|
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 |
|
 |
chris boehnke |
Posted: Mon May 21, 2007 6:50 pm Post subject: Re: This is one area where... |
|
|
 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 |
|
 |
chris boehnke |
Posted: Mon May 21, 2007 7:10 pm Post subject: Re: This is one area where... |
|
|
 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 |
|
 |
vk |
Posted: Mon May 21, 2007 7:28 pm Post subject: |
|
|
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 |
|
 |
marcin.kasinski |
Posted: Tue May 22, 2007 5:14 am Post subject: Re: This is one area where... |
|
|
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 |
|
 |
chris boehnke |
Posted: Wed May 23, 2007 10:00 am Post subject: Re: This is one area where... |
|
|
 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 |
|
 |
madi |
Posted: Wed May 23, 2007 12:11 pm Post subject: |
|
|
 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 |
|
 |
|