Patch Catalog Utility Script

This script manipulates Patch Catalogs and Objects they contain.  There are multiple modes this can operate in, and this can be the basis

for user-defined actions:

setCUJProperty - sets a property value on the Catalog Update Jobs:

  example: nsh catalogUtility.nsh -m setCUJProperty -p JOB_TIMEOUT -b 600

setCatalogObjectProperty - sets a property based on some criteria on each object in the catalog,

  eg, if the QNumber matches a list, set IS_APPROVED to true.  This subroutine should be customized

  to match exactly what you need to do.

  example: nsh catalogUtility.nsh -m setCatalogObjectProperty -p QNUMBER -q IS_APPROVED

setPayloadLocation - this updates the depot object location in the event you need to move the catalog, or

  you need to change the payload URL type from say AGENT_COPY_AT_STAGING to AGENT_MOUNT

  example: nsh catalogUtility.nsh -m setPayloadLocation -u //reposerver1/mnt/repo/redhat5 -t AGNET_COPY_AT_STAGING

deleteCatalogObjects - deletes all objects in the catalog

  example: nsh catalogUtility.nsh -m deleteCatalogObjects

setACLPolicy - sets the ACLPolicy on existing objects in the catalog, and removes any existing ACLPolicies

  example: nsh catalogUtility.nsh -m setACLPolicy -a NewPolicy

listAllCatalogPaths - dumps the paths for all catalogs

The -e option will let you specify the catalog type so the script will run against all catalogs of that type,

and it's required w/ the -c option

example: nsh catalogUtility.nsh -m deleteCatalogObjects -e WINDOWS_CATALOG_GROUP

The -c option will let you specify a specific catalog to act on, and you must identify the type w/ -e

example: nsh catalogUtility.nsh -m deleteCatalogObjects -e WINDOWS_CATALOG_GROUP -c "/Patch Catalogs/Windows"