What's New in the Sun N1 Service Provisioning System 5.2 Update 2 Release

Exporting a Bundle Template to a Bundle Jar

When you have created the bundle template, you are ready to export it to a bundle jar.

Specify the file system path in which to save the bundle jar. The maximum size of a bundle jar is 2GB.

Use the bdb.b.exp command to export a bundle template to a bundle jar: This command takes the ID of the bundle template as an argument. The path argument is also used, to specify the path to the file system in which to save the bundle jar.

For full usage of this command, see Appendix A, Appendix — New Commands.

During the export of the bundle template, if the resultant bundle jar would exceed 2GB, the export operation fails.

If more than one search criteria match the same object, only the first criteria is considered.

Only a saved bundle template can be used to export a bundle jar.

Bundle template search criteria must refer to a single version of objects that can have versions. Export of multiple versions of the same object is not supported.

The default value for the visibility filter is visible therefore, unless specified otherwise in the command criteria, only visible entities are exported.

Do not export directories that have symbolic links within them. Export of a directory containing a symbolic link fails.

On export, the resource version number is set to 1.0, if it is already not 1.0 in the component XML. If the resulting bundle jar was imported to a master server that did not already have this resource checked in, import would have failed. To avoid this, the version is set to 1.0 implicitly.

The export operation fetches the bundle template immediately, hence any subsequent edit or delete operations on the bundle template do not impact the export operation.


Example 5–7 Using the bdb.b.exp Command to Export a Bundle Template

This example shows how to use the bdb.b.exp command to export a bundle template to a Bundle Jar. The jar path is input as /aa/aa/abc.jar


bdb.b.exp -ID NM:myBundle -path "/aa/aa/abc.jar"

The result is as follows.


Processed:Folder=1, Plan=1

The output shows that the operation was successful.