BlPackage - importDepotObjectToPackage

BlPackage - importDepotObjectToPackage

Description :

This command imports a depot object to a BLPackage. The package will include the information needed to deploy the specified depot object (software, files, and so forth). This command also lets you specify single-user mode and reboot settings.

depotObjectType can specify a file or a particular type of software installable.

To specify a file, set depotObjectType to:

  • DEPOT_FILE_OBJECT

To specify a type of software installable, set depotObjectType to one of the following:

  • AIX_PACKAGE_INSTALLABLE
  • AIX_PATCH_INSTALLABLE
  • CUSTOM_SOFTWARE_INSTALLABLE
  • HOTFIX_WINDOWS_INSTALLABLE
  • HP_BUNDLE_INSTALLABLE
  • HP_PATCH_INSTALLABLE
  • HP_PRODUCT_INSTALLABLE
  • IIS_HOTFIX_WINDOWS_INSTALLABLE
  • INSTALLSHIELD_WINDOWS_INSTALLABLE
  • MSI_WINDOWS_INSTALLABLE
  • RPM_INSTALLABLE
  • DEBIAN_PACKAGE_INSTALLABLE
  • SERVICEPACK_WINDOWS_INSTALLABLE
  • SOLARIS_PACKAGE_INSTALLABLE
  • SOLARIS_PATCH_CLUSTER_INSTALLABLE
  • SOLARIS_PATCH_INSTALLABLE

Note that your depotObjectType setting affects legal propName and propValue settings, as follows:

  • If you set depotObjectType to DEPOT_FILE_OBJECT, and you include Action as a propName, then the corresponding Action propValue can be Add, Modify, or Delete.
  • If you set depotObjectType to any of the *_INSTALLABLE settings, and you include Action as a propName, then the corresponding Action propValue can only be Add.

You can set the singleUserMode argument 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 the rebootMode argument 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

groupName

String

Name of a group that contains the package.

packageName

String

Name of 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.

depotObjectGroup

String

Group of depot object

depotObjectName

String

Name of depot object.

depotObjectType

String

String representing a depot object type. For more detailed information, see the description above.

propNames

String

Names of the properties of the depot object you are importing to the package.

propValues

String

Values of the properties of the depot object you are importing to the package.

singleUserMode

String

The single-user mode.

rebootMode

String

The reboot mode.

Example

This example shows how to import a depot object to a BLPackage:

Script





PACKAGE1_DBKEY=`blcli BlPackage importDepotObjectToPackage "/pkgDepotGrp1" "pkgName1" true true true true true "/depotObjGrp1" "depotObjName1" DEPOT_FILE_OBJECT "Action,Owner,Permission" "Modify,1,505"` NotRequired NotRequired 



Was this page helpful? Yes No Submitting... Thank you

Comments