DepotSoftware - getDepotSoftwareReturnCodeOverridesForCategoryByDBKey

DepotSoftware - getDepotSoftwareReturnCodeOverridesForCategoryByDBKey

Description :

This command gets the override values for a specific category of return code associated with the install or uninstall command of a software installable in the depot. For example, you can use this command to get the override values for warning return codes associated with an install command, error return codes associated with an uninstall command, and so forth.

For background information on the concept of return code overrides, see setDepotSoftwareReturnCodeOverridesByDBKey .

You can set the commandType argument to one of the following strings:

  • install: The install command
  • uninstall: The uninstall command

You can set the rcoCategory argument to one of the following strings:

  • error: The return code overrides that should be treated as an error.
  • warning: The return code overrides that should be treated as a warning.
  • success with reboot: The return code overrides that should be treated as a success that requires a reboot.
  • success: The return code overrides that should be treated as a success.

Return type : String

Command Input :

Variable Name

Variable Type

Description

objectKey

DBKey

Handle to the software installable whose return code overrides you want to get.

commandType

String

The type of the command (either "install" or "uninstall").

rcoCategory

String

The category of return code overrides (one of "error", "warning", "success with reboot" or "success").

Example

The following example gets the override values for the error return codes that are returned by the install command associated with the python-4.2-0.69.2asp.i386.rpm installable.

Script





INSTALLABLE_KEY=`blcli DepotObject getDBKeyByTypeStringGroupAndName RPM_INSTALLABLE "/Software" python-4.2-0.69.2asp.i386.rpm` 

ERROR_INSTALL_LIST=`blcli DepotSoftware getDepotSoftwareReturnCodeOverridesForCategoryByDBKey "$INSTALLABLE_KEY" "install" "error"` 



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

Comments