Exporting and importing your application on IBM Workload Deployer
cjhaveri 120000E1JP Comment (1) Visits (6031)
Exporting a pattern out of IBM Workload Deployer (IWD) is a very easy and useful task to perform. This blog entry explains how to export and import your pattern out of a VAP (virtual application pattern) design pattern, and VSP (virtual systems pattern).
Exporting a VAP Pattern out of IWD
A VAP can be easily exported out of IWD using the admin interface. The steps below can be followed to easily export your pattern.
1. Go to your Pattern Definition page
2. Click on Export application on the top right corner as show in the screenshot. below:
Figure 1: Pattern definition page with Export link highlighted.
3. You will be promoted to download a zip file (perhaps with a cryptic name); go ahead and download it.
4. Open up the ZIP file and explore the file structure. It will contain a folder named artifacts which will contain your EAR file, SQL file, and other assets that were included in your VAP definition. Additionally, there will be a couple of JSON files that make up the defintion of the pattern. Figure 2 shows the contents of artifacts; Figure 3 shows the contents of the VAP definition ZIP file.
Figure 3: The contents of artifact directory
Importing a VAP Pattern into IWD
Importing a VAP (virtual application pattern) back into IWD is very easy task to do using the admin interface. These steps can be followed to import your pattern back into IWD.
1. Go to the Virtual Application Patterns page.
2. Click on the Import icon on the top right as indicated in Figure 4:
Figure 4: Virtual Application Patterns page
3. A popup will appear, prompting you to upload a ZIP file containing the definition of the pattern.
4. Once the pattern has been imported successfully, it will show up in the Pattern listing as shown in Figure 5.
Figure 5: VAP pattern successfully imported
Exporting a VSP Pattern out of IWD
Exporting a virtual systems pattern out of IWD is very different than exporting a VAP. These steps can be followed to export your pattern back into IWD.
1. You will download the command line tool from the IWD home page. A link to download that will appear on the homepage of the IWD admin tool (see Figure 6).
Figure 6: IBM Workload Deployer homepage
2. Once the tool is downloaded, unZIP the contents. For the sake of this blog entry, assume you have unZIPped it to C:\U
3. Open up your command prompt (assuming you are using Windows), change directories to C:\U
4. Type deployer –h
5. Type in cd .. (to go down one directory), and then type in this command:
in which (in addition to the variables explained in the previous step):
A pattern can be imported back into IWD using the command line tool (as explained in the steps on how to export a pattern). These steps can be followed to import your pattern back into IWD.
1. All artifacts, such as script packages, custom images, etc., have to be recreated in IWD using the same names. If you use different names, the import may fail.
2. Go into the the command line tool and issue this command:
And that’s all there is to exporting and importing your virtual application or systems pattern on IBM Workload Deployer.
- Chetan, Arun, Devin