PatchCatalog - getDBKeyByTypeAndNameFromCatalog

PatchCatalog - getDBKeyByTypeAndNameFromCatalog

Description :

This command gets the DBKey to a depot object within a patch catalog. You must provide the name of the depot object and the full path to the depot group containing the depot object. You must also provide a string describing the type of catalog and a string for the type of depot object. The following is a list of all valid catalog type strings:

  • RED_HAT_CATALOG_GROUP: RedHat Catalog
  • SOLARIS_CATALOG_GROUP: Solaris Catalog
  • WINDOWS_CATALOG_GROUP: Windows Catalog
  • OTHER_LINUX_CATALOG_GROUP: Suse or OEL Catalog
  • AIX_CATALOG_GROUP: AIX Catalog
    The following is a list of all valid depot object type strings:
  • AIX_FILESET_INSTALLABLE: AIX Fileset
  • AIX_CONTAINER_INSTALLABLE: AIX Patch Container
  • RPM_INSTALLABLE: Linux RPM
  • ERRATA_INSTALLABLE: Linux Errata
  • SOLARIS_PATCH_INSTALLABLE: Solaris patch
  • SOLARIS_PATCH_TCLUSTER_INSTALLABLE: Solaris Cluster
  • HOTFIX_WINDOWS_INSTALLABLE: Windows HotFix
  • WINDOWS_BULLETIN_INSTALLABLE: Windows Bulletin

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

depotGroupTypeString

String

String representation of catalog type. For more detailed information, see the description above.

depotObjectTypeString

String

String representation of depot object type. For more detailed information, see the description above.

groupName

String

Fully qualified path to the parent depot group.

depotObjectName

String

Name of the depot object.

Example

The following example shows how to get the DBKey for a Windows Hotfix that is a depot object within a catalog:

Script





SCRIPT_KEY=`blcli PatchCatalog getDBKeyByTypeAndNameFromCatalog WINDOWS_CATALOG_GROUP HOTFIX_WINDOWS_INSTALLABLE  /catalogs/win "WINZIP 10.0 SP1-en"` 



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

Comments