HP-UX Containers (SRP) A.03.00 Administrator's Guide

80
For example, you can copy a remote registered depot to the global system as follows:
# swcopy -s remote_machine:/depots/remote.depot PRODUCT @ /depots/myproduct.depot
15.5.3 Allowed products
The products that are installed in the system containers are a subset of the products installed in the
global system. HP has a predefined list of allowed products, as well as a list of HP restricted products
that can never be added. The list of allowed products is configurable using the utility
srp_allowed_product. See srp_allowed_product(1M) for more information.
You can add a product to the allowed product list as follows:
# /opt/hpsrp/bin/srp_allowed_product -add MY_PRODUCT
In this example, after adding your product to the list, when installation is repeated in system
containers, the MY_PRODUCT product will also be installed.
When new system containers are
created, MY_PRODUCT will be provisioned. Patches to MY_PRODUCT will install and be provisioned
in system containers.
The products added to the allowed list must be SD product names, they cannot be bundle names, or
filesets contained within the products.
To see a list of products in a depot, enter:
# /opt/hpsrp/bin/srp_allowed_product -list_depot /tmp/my_product.depot
Products in depot at /tmp/my_product.depot :
----------------------------------
MY_PRODUCT
To be prompted to add products from a depot, enter:
# ./srp_allowed_product -add_depot /tmp/my_product.depot
Products in depot at /tmp/my_product.depot :
----------------------------------
Add product MY_PRODUCT? (Enter q to Quit) [y]: y
Verifying MY_PRODUCT can be added to allowed list.
The product MY_PRODUCT was added to the allowed product list.
If a product has a dependency on other products then the other products must also be specified in the
allowed products list.
15.5.4 Updating the global view and individual system containers
The SD commands swinstall, swremove, and swconfig are enhanced to allow targeting the
global view and/or a set of (one or more) system containers.
Two new options global_srp and local_srp_list are added to support this functionality. The
option global_srp is used in conjunction with local_srp_list to install, remove, or configure
software in the global view and inside each system container. The local_srp_list contains space
separated system container names enclosed in quotes and can be a subset of all configured system
containers.
The behavior is as follows:
If neither global_srp nor local_srp_list options are specified, then the install,
remove, or configure will occur on the system and all system containers.
If the global_srp=true and local_srp_list options are not specified, then the install,
remove, or configure will occur only on the system.
If the global_srp=true and local_srp_list options are set, then the install, remove,
configure will occur on the system and the listed system containers.