DataPower

DataPower

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only

How I Setup the DataPower Configuration Manager (DCM) to My Environment

By Leandro Takeda posted Wed October 31, 2018 06:04 PM

  

Yo!

This is a tutorial to show you how I setup the DataPower Configuration Manager to my environment. If you are reading this, you should know what the DCM is (DataPower Configuration Manager), however, if not, the DCM is a solution created by IBM based on Ant to help you automate some process, deployments, etc. The solution can be found in the IBM Git Hub Account here: https://github.com/ibm-datapower/datapower-configuration-manager

Why I needed DCM?

I needed to use DCM because I had only 2 DataPowers in my environment but we needed to increase it to 4 and create a web service, export, and import on 4 devices would require lot of work and time, so I started looking for a solution to automate this and found the DCM. It worked perfectly to my needs, and it´s free. : )

First of all, use this link to setup:

https://github.com/ibm-datapower/datapower-configuration-manager/wiki/Quick-Start

I will not put the details on how to make the initial setup here, because is pretty simple and the link above is well explained.

  1. Now everything is setup, let´s start with setup a folder. I will use this one: /DataPower/Exports. I´m using Mac, by the way.
  2. Let´s create a file with the following format: env.<domain_name>.properties
  3. In my case, my domain is: humanresources, so the filename will be: env.humanresources.properties.
  4. And the content will be: domain=humanresources
  1. Now create a file for your device, in my case the device will be: device02, so the file needs to follow the format: device.<device>.properties, for my environment it will be: device.device02.properties
  2. This is the content of the file:
host=device02.com
hostname=device02.com
port=5550
uid=admin
pwd=admin
  1. So, now everything is setup, you just need to run the command and provide the Ant xml file, see example:
ant -f MyFile.ant.xml
-Ddevice=device02
-Denvironment=humanresources
-Dservice=Transversal_WSP
-Dimport.file=Transversal _WSP.zip import-changed save

 

See that Dservice is name of the Web Service that will be created on DataPower. As a good practice, I used the format above. Of course, the Dimport.file is the extracted Web Service in the .zip format. In this example I´m deploying on device 02 (-Ddevice) and on humanresources domain (-Denvironment).

 

Let me know if you have any question.

Thanks!

Leandro Takeda

0 comments
33 views

Permalink