Author |
Message
|
agokli |
Posted: Wed Apr 11, 2007 9:39 am Post subject: Accounting and Statistics & MQRFH Utility |
|
|
Novice
Joined: 04 Jan 2002 Posts: 12
|
I am not been able to make Accounting and Statistics facility work with V5 and V6 Brokers. I am using RFHUTIL to configure subscription and MQ Queue. I am sending data through Messageflow and can see in output quue. I do not see the statistical data in MQ Queue, statistics.out.
Following is the script:mqsichangeflowstats WBRK6_DEFAULT_BROKER -s -e CoordinatedRequestReplyExecutionGroup -j -c active -t none -n none -o xml
Following is the subscription:$SYS/Broker/WBRK6_DEFAULT_BROKER/StatisticsAccounting/Snapshot/#
I have been following documentation of Supportpack, IS11 as well article from IBM as follows:
(a) Start the RFHUTIL program if running on the same machine as the Message Broker. If the Message Broker is remote use the RFHUTILC program.
(b) Ensure that you have connectivity to the Message Broker queue manager by writing a message to an application queue and retrieving it using the Main tab of RFHUTIL. You don't need to specify any message data to write a message, just put values in the Queue Manager Name and Queue Name fields. Then select Write Q to write a message and Read Q to read the message. Resolve any connection problems between RFHUTIL and the Message Broker.
(c) With connectivity established, the next step is to issue the subscription. To do this, click the PubSub tab of RFHUTIL.
Click a request type of Subscribe.
(d) Enter the name of the topic that the accounting and statistics are published to. For example $SYS/Broker/VKB2BRK/StatisticsAccounting/Archive/ default/OrderRouting.
(e) Enter the name of the Message Broker queue manager in the Queue Manager to Connect to field.
(f) Enter the name of the queue that accounting and statistics messages are to be written to in the Publish Queue field.
(g) Click or enter any other values/choices that you want, such as retained for retained publications.
(h) Select the Process Request tab of RFHUTIL. Note: When using the RFHUTILC version of the program you may have to use the Close Q option on the Main tab in order to complete the sending of the message.
(i) Run the message flow and issue the mqsichangeflowstats commands to generate accounting and statistics information.
Wait for 30 seconds after issuing the second mqsichangeflowstats command.
(j) Click the Main tab of RFHUTIL.
(k) Enter a value for the Message Broker queue manager name in the Queue Manager Name field.
(l) Enter a value in the Queue Name field of the application queue that was named in the subscription request, the publish queue.
(m) Click the Read Q tab. The message will then be read from the queue.
(n) Click the Data tab on RFHUTIL. The Message Data area of the tool should contain the requested accounting and statistics information.
Initially the XML is unformatted. To format it click the XML button in the Data Format area of the window.
(o) You now have a formatted accounting and statistics XML message. If you want, you can save the data to a file for later analysis by using the Write File button on the Main tab of RFHUTIL.
This does not work. Does any one can provide correct instructions/tutorial?
Thanks in advance. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Apr 11, 2007 9:48 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
At what point does it not work? What is the result of it "not working"? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
agokli |
Posted: Wed Apr 11, 2007 10:28 am Post subject: Accounting and Statistics |
|
|
Novice
Joined: 04 Jan 2002 Posts: 12
|
Using RFHUTIL, I do not see any statistical data in subscribed queue. I can see the subscription in Toolkit. How can I debug and find out, where statistical data is sent. |
|
Back to top |
|
 |
migerrits |
Posted: Wed May 30, 2007 6:32 am Post subject: |
|
|
 Apprentice
Joined: 13 Dec 2002 Posts: 35 Location: Canada
|
I am also having the same problem with V5 running on Windows XP. Everything appears to have set up fine, with the subscription and mqsichangeflowstats command, but when I run a message through a flow I never get any messages in my subscriber queue.
I have tried restarting the broker, etc, but haven't had any luck.
-mike |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Wed May 30, 2007 6:43 am Post subject: Re: Accounting and Statistics & MQRFH Utility |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
Hi.
Can you test it with usertrace output ? Does it work with usertrace ? _________________ Marcin |
|
Back to top |
|
 |
migerrits |
Posted: Wed May 30, 2007 7:21 am Post subject: Re: Accounting and Statistics & MQRFH Utility |
|
|
 Apprentice
Joined: 13 Dec 2002 Posts: 35 Location: Canada
|
marcin.kasinski wrote: |
Can you test it with usertrace output ? Does it work with usertrace ? |
Yes.
I set User Trace to "Debug" and ran the mqsireadlog and mqsiformatlog commands and see the results of the message flow execution.
-mike |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Wed May 30, 2007 8:46 am Post subject: Re: Accounting and Statistics & MQRFH Utility |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
migerrits wrote: |
Yes.
I set User Trace to "Debug" and ran the mqsireadlog and mqsiformatlog commands and see the results of the message flow execution.
-mike |
You didn't have to set trace on flow.
When you set accounting and statistics output to usertrace statistic records are placed in usertrace file.
It is easier to test if accounting and statistics works with usertrace.
Can you find in your usertrace file this usertrace accounting and statistics records ? _________________ Marcin |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed May 30, 2007 3:07 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
and remember seing the subscription in the toolkit does not mean it is there.
To check the subscriptions on the broker (V6) run
Code: |
mqsibrowse MYBROKER -t BSUBSCRIPTIONS |
This will show you the subscriptions the broker knows of ...
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|