BlPackage - createPackageFromComponent_1
BlPackage - createPackageFromComponent
Description :
Note: This command applies only to Application Release Manager.
This command creates a BLPackage based on all the assets (server objects) specified in a component. It also lets you specify single-user mode and reboot settings.
You can set singleUserMode to one of the following strings:
- NotRequired: Not Required
- RevertTo: Use single-user mode without reboot
- RebootAs: Reboot into single-user mode
You can set rebootMode to one of the following strings:
- NotRequired: Not required
- AfterDeploy: After item deployment
- AfterDeployWithReconfiguration: After item deployment with reconfiguration (Solaris ONLY)
- OutOfBand: Out-of-band
- AtJobEnd: By end of job
- AtJobEndWithReconfigration: By end of job with reconfiguration (Solaris ONLY)
This command returns a handle to the newly created package. This handle can be used as input to commands that need a handle to the package.Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
---|---|---|
packageName | String | Name of the package. |
groupId | Integer | ID of a group that should contain the package. |
bSoftLinked | Boolean | True to create a package soft linked to the depot object resources, false otherwise. |
bCollectFileAcl | Boolean | True to package the file ACLs, false otherwise. |
bCollectFileAttributes | Boolean | True to package the file attributes, false otherwise. |
bCopyFileContents | Boolean | True to package the file contents, false otherwise. |
bCollectRegistryAcl | Boolean | True to package the registry ACLs, false otherwise. |
componentKey | DBKey | Handle to the component that you want to package. |
singleUserMode | String | The single-user mode. |
rebootMode | String | The reboot mode. |
Example
This example shows how to create a BLPackage from a component. This is the preferred method for creating BLPackages. It assumes that you have previously created a valid component and saved its handle in COMPONENT1_DBKEY:
Script
# Name of the package.
PACKAGE_NAME="package1"
# Get the ID of the depot group in which the package will be saved.
DEPOT_GROUP_ID=`blcli DepotGroup groupNameToId /parent/group1`
# This boolean value sets the Depot Asset Options - soft link check box. True for checked.
bSoftLinked="false"
# This boolean value sets the File Options - Collect ACL control lists check box. True for checked.
bCollectFileAcl="false"
# This boolean value sets the File Options - Collect File Attributes check box. True for checked.
bCollectFileAttributes="false"
# This boolean value sets the File Options - Copy File Contents check box. True for checked.
bCopyFileContents="true"
# This boolean value sets the Registry Options - Collect ACL check box. True for checked.
bCollectRegistryAcl="false"
# A collection of the above options.
PACKAGE_OPTIONS="$bSoftLinked $bCollectFileAcl $bCollectFileAttributes $bCopyFileContents $bCollectRegistryAcl"
SNGLE_USER_MODE=RevertTo
REBOOT_MODE=AtJobEnd
# Now create new package.
PACKAGE1_DBKEY=`blcli BlPackage createPackageFromComponent $PACKAGE_NAME $DEPOT_GROUP_ID $PACKAGE_OPTIONS $COMPONENT1_DBKEY $SINGLE_USER_MODE $REBOOT_MODE`
Comments
Log in or register to comment.