Author |
Message
|
cronydude |
Posted: Mon Jan 23, 2017 11:26 am Post subject: MQ configuration automation |
|
|
 Voyager
Joined: 11 Nov 2001 Posts: 85 Location: US
|
Wondering if someone out there knows a tool that could help in automating MQ configuration? We are using Bladelogic for MQ installation and initial queue manager creation but also looking for a way to automate creation and porting application specific configuration between environments - such as queues, channels, topics/subs etc. Any pointers at tools (such as Tufin for network rules) that could help with this is highly appreciated.
TIA
Crony _________________ Regs,
crony
IBM Certified Specialist - MQSeries |
|
Back to top |
|
 |
Vitor |
Posted: Mon Jan 23, 2017 11:41 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
We use Bladelogic for installs and have the scripts for MQ objects as part of the application. Both application and scripts are applied by UrbanCode; I'm sure other equivalent tools could be substituted. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Jan 23, 2017 12:01 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
There are really three parts to building an MQ environment - Installing the software (and accepting the license) using some kind fo shell script
- creating a queue manager and doing any qmgr level config using some kind fo shell script
- configuring application/mq network level objects (queues, channels, etc.) using either an MQSC script file or an application that speaks PCF.
Any or all of these steps can be automated by really any tool. Some tools might make it easier to do steps 1&2 without needing to write shell scripts. And step 3 is usually as simple as "runmqsc .... <script file>"
It sounds like you've got step 1 & 2 working in Bladelogic? Then step 3 is as easy as finding something that will push a file to a server and execute runmqsc. You could also mount a remote file system instead of pushing a file.... _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
cronydude |
Posted: Wed Jan 25, 2017 1:05 pm Post subject: |
|
|
 Voyager
Joined: 11 Nov 2001 Posts: 85 Location: US
|
Vitor wrote: |
Both application and scripts are applied by UrbanCode; I'm sure other equivalent tools could be substituted. |
Thank you Vitor.
So do you wrap mqsc scripts in shell scripts and use UrbanCode to execute them on remote servers? Basic search shows UC is agent based and it will need a dedicated server. _________________ Regs,
crony
IBM Certified Specialist - MQSeries |
|
Back to top |
|
 |
cronydude |
Posted: Wed Jan 25, 2017 1:22 pm Post subject: |
|
|
 Voyager
Joined: 11 Nov 2001 Posts: 85 Location: US
|
mqjeff wrote: |
And step 3 is usually as simple as "runmqsc .... <script file>"
It sounds like you've got step 1 & 2 working in Bladelogic? Then step 3 is as easy as finding something that will push a file to a server and execute runmqsc. You could also mount a remote file system instead of pushing a file.... |
Thank you Jeff.
We have been doing the same - once we have identified the MQ needs, we do either "runmqsc ... < script file" OR use your (Thank You!) supportpac ms0s to run mqsc commands from explorer OR wrap mqsc scripts in shell scripts and then execute them on target servers through various mechanisms. My management wants to take this to the next level - in their mind - offer a self service where someone would be able to select QMs from the list, identify the objects they need on each QM (channels, queues etc) and somehow magically these would be created on the respective QMs with out the need of scripting and pushing them to servers. In other words, something that would actually automate the requirements gathering itself, which would then create the objects via mqsc or pcf.
Anything that comes to your mind around this ? Thanks again. _________________ Regs,
crony
IBM Certified Specialist - MQSeries |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jan 25, 2017 1:47 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
cronydude wrote: |
So do you wrap mqsc scripts in shell scripts and use UrbanCode to execute them on remote servers? |
Yes. There's a UC component that's built into the UC workflow that opens a shell and pushes the mqsc data through runmqsc.
cronydude wrote: |
Basic search shows UC is agent based and it will need a dedicated server. |
It does but we get the ROI because it's running all of our application based deployment (bar files, ear files, jar files, WAS Admin work, etc.). Worth the cost of a server. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Jan 25, 2017 1:47 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
MS0S uses PCF escape messages - it just dumps raw mqsc into a single pcf message. Well, except for zOS where it uses the zOS equivalent...
You could take that as the easy way to assemble a set of mqsc strings for the objects selected, and then run relevant mqsc through a pcf escape message to the right qmgrs...
MS0S source is available at https://github.com/ibm-messaging/mq-mqsc-editor-plugin
Anyone who wants to contribute...  _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
|