Software Distributor Administrator Guide (September 2010)

4.3.5 swreg Examples
To unregister a CD-ROM depot mounted at /mnt/cd, you would type:
swreg -l depot -u /mnt/cd
To register the same depot (mounted at /mnt/cd on the local host) as a depot to be
available on the network, type:
swreg -l depot /mnt/cd
The following example enables direct access from one or two other systems to the
HWEnable11i depot on the Support Plus CD, assuming the Support Plus CD is
mounted at/cdrom:
swreg -l depot /cdrom/HWEnable11i
4.4 Additional Depot Management Tasks and Examples
This section illustrates some typical depot management tasks and provides extended
examples of how you can use SD-UX to manage your environment.
4.4.1 Combining Patch Depots
This example shows how to combine into a single depot five downloaded patches
(which are tape depots) from HP. The example also shows how to register the depot,
list the depot contents, and install the patches from the new depot using the
patch_match_target option. The example assumes that you have already
downloaded patches PHKL_20349, PHKL_22161, PHSS_21906, PHSS_21950, and
PHCO_22923 from the HP ITRC (http://itrc.hp.com/):
swcopy -s /tmp/PHKL_20349.depot \* @ /depots/mypatches
swcopy -s /tmp/PHKL_22161.depot \* @ /depots/mypatches
swcopy -s /tmp/PHSS_21906.depot \* @ /depots/mypatches
swcopy -s /tmp/PHSS_21950.depot \* @ /depots/mypatches
swcopy -s /tmp/PHCO_22923.depot \* @ /depots/mypatches
swreg -l depot @ /depots/mypatches
swlist -d -s /depots/mypatches
swinstall -x patch_match_target=true -s /depots/mypatches
4.4.2 Creating a Tape Depot for Distribution
This example shows you how to create a tape depot as a single file that can be distributed
via ftp or the web. This example uses the five patches from the previous example (which
are formatted as tape depots) and uses an existing depot at /depots/mypatches.
The swlist command shows the depot contents (see “Listing the Contents of a Depot
(swlist -d) ” (page 131)).
128 Managing Software Depots