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.
- 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.
- Let´s create a file with the following format: env.<domain_name>.properties
- In my case, my domain is: humanresources, so the filename will be: env.humanresources.properties.
- And the content will be: domain=humanresources
- 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
- This is the content of the file:
host=device02.com
hostname=device02.com
port=5550
uid=admin
pwd=admin
- 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