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 » mqsichangeflowstats and how to get stats data?

Post new topic  Reply to topic Goto page Previous  1, 2
 mqsichangeflowstats and how to get stats data? « View previous topic :: View next topic » 
Author Message
shashivarungupta
PostPosted: Tue Apr 21, 2009 2:54 am    Post subject: a POC process Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

I came back... its POC that i am doing to get the stats in xml format on a simple flow. Following I do:

1.
As I have said earlier that I created a message flow(MFlow1) 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 respectively.
Then I deployed that MFlow1, in "EG1", of Broker "SampleBroker".
I ran that mqsichangeflowstats command as well.
2.
mqsichangeflowstats SampleBroker -a -e EG1 -f Mflow1 -c active -t basic -n basic -o xml
3. To check the stats are being generated, fired another command..
mqsireportflowstats SampleBroker -a -s -g -j
And it shows the correct and the expected result. That means broker is doing its job.

4. I used Rfhutil to subscribe messages for the topic "$SYS/Broker/SampleBroker/StatisticsAccounting/SnapShot/EG1/Mflow1"

In the PubSub Tab, I selected the sub radio button and given the above topic under Topic(s) section.
Given the Q4 under ReplyToQueue (this queue is local to QM1) in MQMD header tab.
Given the queue name "Q1" under PubSub tab.

[all the queues are defined and are local to QM1]

5. I do "Process Request" under pubSub tab of Rfhutil.

5. Then I put a test message on the queue Q1 which goes to Q2 (which is on the out terminal of MQInput Node)
6. Now there are 2 messages on Q2, one which I put as test message on Q1 and another the subscription message. Both goes to Q2.

7. I do not receive message(s) on Q4. (which i had given as ReplyToQueue). Why not? Where I am missing something?

Please suggest.
Back to top
View user's profile Send private message Send e-mail
shashivarungupta
PostPosted: Tue Apr 21, 2009 3:07 am    Post subject: Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

As broker will start publishing message (this is the first part of the pub sub scenario when broker publishes the stats after collecting it from O.S.).
Second half is being done by me.
So thats what have been trying to achieve.
Back to top
View user's profile Send private message Send e-mail
karounos
PostPosted: Wed May 20, 2009 11:42 am    Post subject: Reply with quote

Newbie

Joined: 30 Apr 2002
Posts: 1

The problem is probably in your # 4 below:

Using RFHUtil to subscribe to the topic, you only need to use the "Pub/Sub" tab with the following options(Note - you don't need to have a Reply to Queue on MQMD tab)

topic = $SYS/Broker/SampleBroker/StatisticsAccounting/SnapShot/EG1/MFlow1 (not sure if it is case sensative, but you had "Mflow1"

Queue Manager to connect to: QM1
Queue Name: SYSTEM.BROKER.CONTROL.QUEUE (this is prepopulated in my version of RFHUtil)
Subscription Queue Manager Name: QM1
Subscription Queue: Q1

I just did this myself and didn't need any other parameters set.

From your messages, it looks like you chose -a (archive) - when I tried this in the past, it took 1 hour before I received my first message as this may be the default. If you change to -s (snapshot) you would get a message every 20 seconds.

Hope this helps.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed May 20, 2009 12:49 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20763
Location: LI,NY

shashivarungupta wrote:
7. I do not receive message(s) on Q4. (which i had given as ReplyToQueue). Why not? Where I am missing something?

I am truly amazed. Where did you get the impression that the ReplyToQueue would be the Subscription destination?? The ReplyToQueue in a subscription message is used to notify the subscriber of the result of the subscription action.

The messages from the subscription are sent to the subscription destination as specified (or not => default) in the RFH header.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » mqsichangeflowstats and how to get stats data?
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.