HP-UX depots

The import_hpux_depot script imports HP-UX patches, bundles, and depots into the SA Library. For each source depot, this tool creates a <depot name> Depot policy in the SA Library that contains the depot's products.

The import_hpux_depot script requires the .depot extension to script input:

  • By default, standard HP-UX bundles that are downloaded from http://itrc.hp.com already have a .depot extension.
  • By default, HP-UX patches that are downloaded from http://itrc.hp.com do not include the .depot extension. These patches must be manually downloaded to an HP-UX server, unshared to create a .depot file, and then uploaded to the SA Library using the import_hpux_depot script.

The import_hpux_depot script is located in the following directory:

/opt/opsware/mm_wordbot/util/import_hpux_depots

Importing patches and depots using the SA Client instead of scripts will not create software policies and patch dependency will not work.

After HP-UX patches have been uploaded to the SA Library, you cannot delete them. The delete option is disabled when you select an "HP-UX Patch Product" or an "HP-UX Patch Fileset".

Options of import_hpux_depot describes the script’s options.

Options of import_hpux_depot

Option

Description

import_hpux_depots [options]

All *.depot files in the current working directory are imported into the Library.

import_hpux_depots [options] <source-directory>

All *.depot files in the specified directory are imported into the Library.

import_hpux_depots [options] <*.depot

The specified depots are imported into the Library.

import_hpux_depots -h

Show additional options.

-b, --bundle-policies create a policy for each depot bundle

For each bundle that appears in a source depot, this tool creates a <bundle name> Bundle policy in the SA Library that contains the bundle's products using the --bundle-policies option.

-f, --force

Force depot products to be imported even if already in the SA Library.

-h, --help

Displays the help message.

-n, --silent

Display errors only.

-o OS, --os=OS

HP-UX release of depot products 10.20, 11.00, 11.11, 11.23, and 11.31.
Some patches are common to both 11.23 and 11.31 operating system versions. Use -o=11.23 or -o=11.31 to upload these patches into the SA Library.

-p POLICY_FOLDER, --policy_folder=POLICY_FOLDER

Path to Library folder in which to create policies.

-s SPLIT, --split=SPLIT How to split each depot (default: product): 'product', 'instance', 'none'

Products that are already in the SA Library are not re-imported unless --force is specified.

By default, depots containing multiple products are split by product so that each product is kept in the SA Library as its own self-contained depot. The split behavior is controlled by the --split option:

none—Source depots are not split but are imported as is.

product—Source depots are split by product. If a depot contains multiple instances of the same product (by name), the instances are kept together. This is the default.

instance—Source depots are split by product instance. If a depot contains multiple instances of the same product (by name), each instance is split into its own depot. Source depots are split by product. No HPUXPatchBundleUnits will be created and individual depot files will be generated for each product. If a depot contains multiple instances of the same product (by name), the instances are kept together. This is the default.

--timeout=USER_TIMEOUT

Override default timeout values (2 hours if split is 'none', else 5 minutes)

-u USERNAME, --username=USERNAME

Upload packages as specified user (default: opsware).

-v, --verbose

Display verbose output

--manual

Show manual page and exit.

--version

Show version and exit.