Author |
Message
|
shashivarungupta |
Posted: Thu Apr 09, 2009 2:18 am Post subject: mqsichangeflowstats and how to get stats data? |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
Hi Folk,
Following link I have used to get instructions to Monitor and/or get the Accounts and Stats about a flow under an Execution Group.
http://www.ibm.com/developerworks/websphere/library/techarticles/0406_dunn/0406_dunn.html
Created the broker, Config Mgr, User Name server, Deployed the mflow with in as EG.
I have used mqsichangeflowstats command to activate the accounting and stats on that flow.
mqsichangeflowstats samplebroker -a -e EG1 -f Mflow1 -c active -t basic -n basic -o xml
I have simple mflow. with one MQInput Node and Publication Node. In between them there a compute node with ESQL
Set OutputRoot = InputRoot;
At MQInput Node XML domain is used.
Could you please tell me where that stats info. will go and how will I fetch it?
Thanks |
|
Back to top |
|
 |
MQEnthu |
Posted: Thu Apr 09, 2009 2:36 am Post subject: |
|
|
 Partisan
Joined: 06 Oct 2008 Posts: 329 Location: India
|
|
Back to top |
|
 |
shashivarungupta |
Posted: Thu Apr 09, 2009 2:55 am Post subject: |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
Thanks
When I ran the mqsichangeflowstats command (as was given in my first post) we mention -o xml
Could you please tell me where that xml file go? Is there any specific location? I asked because we never mentioned the same in the command because there is no option/flag to do so in that command. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Apr 09, 2009 2:59 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
shashivarungupta wrote: |
Could you please tell me where that xml file go? |
If you tried reading the documentation, you'd notice the description of the mqsichangeflowstats command has this to say about the -o flag:
Quote: |
xml - the statistics reports are generated as XML documents and published by the broker running the message flow. |
It then goes on to helpfully mention the topic details.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
shashivarungupta |
Posted: Thu Apr 09, 2009 3:13 am Post subject: |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
Vitor wrote: |
shashivarungupta wrote: |
Could you please tell me where that xml file go? |
If you tried reading the documentation, you'd notice the description of the mqsichangeflowstats command has this to say about the -o flag:
Quote: |
xml - the statistics reports are generated as XML documents and published by the broker running the message flow. |
It then goes on to helpfully mention the topic details.  |
Got it !!
Will be back, if will face any issue.
Thanks  |
|
Back to top |
|
 |
shashivarungupta |
Posted: Fri Apr 10, 2009 12:22 am Post subject: |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
|
Back to top |
|
 |
MQEnthu |
Posted: Fri Apr 10, 2009 1:21 am Post subject: |
|
|
 Partisan
Joined: 06 Oct 2008 Posts: 329 Location: India
|
shashivarungupta wrote: |
In the first link, I am not able to understand how they gonnu publish and subscribe using the msg given. |
When enable the accounting statistics with XML output option, information will be published on the topic:
Code: |
$SYS/Broker/<brokerName>/StatisticsAccounting/<recordType>/<executionGroupLabel>/<messageFlowLabel> |
So you will have define subscription to this to be able to view the statistics report.. Thats what explained in that example..  _________________ -----------------------------------------------
It is good to remember the past,
but don't let past capture your future |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Apr 10, 2009 1:33 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
What you have in the first link is the published message (RFH + payload).
For the subscription see RFHUtil/RFHUtilc.
For the second link: as specified you do not need to code anything to get the statistics. However if you want a specific value in the accounting origin field you have to code it. The link shows you how to.
 _________________ MQ & Broker admin |
|
Back to top |
|
 |
shashivarungupta |
Posted: Fri Apr 10, 2009 1:58 am Post subject: |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
Vitor wrote: |
shashivarungupta wrote: |
Could you please tell me where that xml file go? |
Quote: |
xml - the statistics reports are generated as XML documents and published by the broker running the message flow. |
|
[My O.S. is Windows XP]
c:\>dspmqbrk -m QM1
shows the publish/subscribe is not active to the broker which is defined on the queue manager QM1.
Following statement is mentioned in the first link:
"The broker takes information about statistics and accounting from the operating system. On some operating systems, such as Windows®, UNIX®, and Linux®, rounding can occur because the system calls that are used to determine the processor times are not sufficiently granular. This rounding might affect the accuracy of the data."
When I deploy the msg flow (as instructed in the first link) and hit the mqsichangeflowstats (with -o xml) for that msg flow, would broker publish xml reports? |
|
Back to top |
|
 |
Vitor |
Posted: Fri Apr 10, 2009 2:09 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
shashivarungupta wrote: |
dspmqbrk -m QM1
shows the publish/subscribe is not active to the broker which is defined on the queue manager QM1. |
And what has this got to do with the software the mqsichangeflowstats is aimed at exactly?
shashivarungupta wrote: |
When I deploy the msg flow (as instructed in the first link) and hit the mqsichangeflowstats (with -o xml) for that msg flow, would broker publish xml reports? |
Why wouldn't it? Or more specifically why didn't it when you tried it? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
shashivarungupta |
Posted: Fri Apr 10, 2009 2:31 am Post subject: |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
Vitor wrote: |
shashivarungupta wrote: |
dspmqbrk -m QM1
shows the publish/subscribe is not active to the broker which is defined on the queue manager QM1. |
And what has this got to do with the software the mqsichangeflowstats is aimed at exactly?
shashivarungupta wrote: |
When I deploy the msg flow (as instructed in the first link) and hit the mqsichangeflowstats (with -o xml) for that msg flow, would broker publish xml reports? |
Why wouldn't it? Or more specifically why didn't it when you tried it? |
Suspected answer to the first question...
I thought as per the statements given below, pub/sub feature should be turned on for the broker on QM1:
mqsichangeflowstats:
* Turn on or off accounting and statistics snapshot publication, or archive record output.
* Specify that the command is applied to a specific flow message flow, or all flows in an execution group, or all execution groups belonging to a broker.
But I am not sure that I was thinking in the right way or not.
Please correct me. |
|
Back to top |
|
 |
shashivarungupta |
Posted: Mon Apr 13, 2009 12:38 am Post subject: |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
Vitor wrote: |
shashivarungupta wrote: |
When I deploy the msg flow (as instructed in the first link) and hit the mqsichangeflowstats (with -o xml) for that msg flow, would broker publish xml reports? |
Why wouldn't it? Or more specifically why didn't it when you tried it? |
I am stuck.
As I have said that I created a mflow with one MQInput Node (with queue Q1)
and 2 MQOutput Nodes (with queues Q2, Q3). MQOutput Nodes connected to the out and failure terminal of the MQInput Node.
Then I deployed that mflow, in "EG1", of Broker "SampleBroker".
I ran that mqsichangeflowstats command as well.
mqsichangeflowstats SampleBroker -a -e EG1 -f Mflow1 -c active -t basic -n basic -o xml
I have put messages using rfhutil, message goes from Q1 to Q2. (as its expected)
Now, I am not able to figure out where to get the a/c and stats data that broker might have published.
 |
|
Back to top |
|
 |
Vitor |
Posted: Mon Apr 13, 2009 12:46 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
shashivarungupta wrote: |
Now, I am not able to figure out where to get the a/c and stats data that broker might have published.
 |
Given that there is a well known concept called publish / subscribe, I would not have thought that it was a great leap to figure out, if the broker is performing one half of this, you have to perform the other.
Especially as it's mentioned in the example you quote, and has been explicitly mentioned further up this thread!
 _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
shashivarungupta |
Posted: Mon Apr 13, 2009 12:55 am Post subject: |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
Vitor wrote: |
shashivarungupta wrote: |
Now, I am not able to figure out where to get the a/c and stats data that broker might have published.
 |
Given that there is a well known concept called publish / subscribe, I would not have thought that it was a great leap to figure out, if the broker is performing one half of this, you have to perform the other.
Especially as it's mentioned in the example you quote, and has been explicitly mentioned further up this thread!
 |
I know.
But then the example that I quoted earlier does not tell from where and how to get that data. They just have given the subscription message.
http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=/com.ibm.etools.mft.doc/ac19060_.htm
I am not sure, are the queues other then SYSTEM.BROKER.CONTROL.QUEUE and SYSTEM.BROKER.DEFAULT.STREAM ? If yes then what are those?
 |
|
Back to top |
|
 |
Vitor |
Posted: Mon Apr 13, 2009 12:58 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
shashivarungupta wrote: |
But then the example that I quoted earlier does tell from where and how to get that data. |
Read up on pub/sub.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|