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 » IBM MQ API Support » Suggestions for mapping MQ flows

Post new topic  Reply to topic
 Suggestions for mapping MQ flows « View previous topic :: View next topic » 
Author Message
richer_swe
PostPosted: Tue Sep 01, 2015 9:21 am    Post subject: Suggestions for mapping MQ flows Reply with quote

Newbie

Joined: 01 Sep 2015
Posts: 2

Sorry if this is in the wrong place, but since it is general and would use the APIs i guess it would be right?

Recently a need has arisen for creating software in our org, to create a graph of the WebSphere MQ and broker networking. This has fallen on me to investigate further.

The idea is to create a software that can use API calls in Java or C, to gain knowledge of how the queues are connected. Basically we want to enter a base input queue, then get the program to logically determine what other queues and flows are visited from start to endpoint and list these.

A bit of an odd requirement, so i need some help in first assessing if it is possible to build such a graph programtically and if so what approach you would recommend, as in what functionality in the APIs could possibly be used?

Another option that struck me was that it may also be possible to run MQSI-commands through Python and compile that to the desired information, but it could be a lot of stuff to sift through.

So, short version is:

I want to build a program that can map the full route taken for all input queues, including the other queues and broker flows associated with that input, and compile it to stats.

Is that possible at all, and do you see any suggested approaches?
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Sep 01, 2015 9:33 am    Post subject: Re: Suggestions for mapping MQ flows Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

richer_swe wrote:
Is that possible at all


Yes

richer_swe wrote:
and do you see any suggested approaches?


Buy this (or an equivalent solution, other vendors are available, I am not now nor have I ever been associated with this vendor, no liability express or implied is accepted for loss or damage resulting from this recommendation) and ask if it can be extended to cover broker flows. It's a perfectly serviceable wheel for your MQ requirement and there's no need to invent a new one.

You can certainly extract flow information from the broker CMP. I'd be more inclined to extract it from the source flows (ideally from their properties)
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue Sep 01, 2015 9:43 am    Post subject: Reply with quote

Jedi Council

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

The big problem I see in making an accurate map is that a Broker flow can successfully write to any valid queue (local, local via Alias or remote) on the Queue Manager dynamically.

i.e. the destination queue name can be changes programmatically.

That is the beauty of MQ & Broker the wiring isn't always fixed.

What happens if just as you are finished, someone comes along and deploys a new flow, deleted an old one and changes a third.
Back to square 1.

Would you care to tell us why you have been asked to do this? Does whoever asked you this understand anything about MQ and Broker? It sounds like they don't know very much at all. Please prove me wrong.
_________________
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
fjb_saper
PostPosted: Tue Sep 01, 2015 2:14 pm    Post subject: Reply with quote

Grand High Poobah

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

I would start with looking at the broker API.
The advantage is that you will be able to get other things as well like what port is being listened to and what URL...

Looking at the MQ pcf messages you can have a look at the queue status (handle) but I doubt if that will be precise enough for what you have in mind...

IIRC MO71 (from Paul Clarke, see http://www.mqgem.com) has a nice MQ Network graph...

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
richer_swe
PostPosted: Wed Sep 02, 2015 11:38 pm    Post subject: Reply with quote

Newbie

Joined: 01 Sep 2015
Posts: 2

Good to see that there are in fact options for doing something like this.

Just to be clear on what the purpose would be here:

The input will be a message flow and qm name. From this Point it is desired to list all of the queues used by this flow AND it's subflows within the broker. If possible also how they are connected to each other.

So basically a Picture of the paths a message can take given a spcific entry point.

I can now list the flows so some progress is being made. Right now working in C to get it off the ground a bit faster, but business desire is to switch to C# at a later stage...

As for the requestor, they are familiar with MQ and WMB, but it is stated that this util will be run at regular intervals to create a new map from time to time, so that even if a dev would change a flow or add one, this will reflect in the next run...

On top of this is the visualization framework, that will Crunch this data on cloud services (read: EC2) so data needs to be prepped and sent there. I tried this with just some base data on execution groups and flows and it works fine, so right now the problem lies in figuring out a base architecture for the above information gathering through the APIs.

Also, i spoke to some vendors as suggested above, and it seems that it might also be possible to purchase something off the shelf and customize it to this need.

Will have to weigh the costs on that however.

Any other specific suggestions of the architecture is welcome.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Sep 03, 2015 4:35 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

There's nothing specifically wrong with the architecture. At least IMHO. You will want to put some significant thought into your deployment strategy for this message flow.

There is also still the underlying point about dynamic queue names.
_________________
chmod -R ugo-wx /
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 » IBM MQ API Support » Suggestions for mapping MQ flows
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.