Software Distributor Administration Guide HP-UX 11i v1, 11i v2, and 11i v3 (5900-2488, September 2012)

Table 24 swreg Command Options and Default Values
rpc_binding_info=ncacn_ip_tcp:[2121]
ncadg_ip_udp:[2121]
rpc_timeout=5
run_as_superuser=true
select_local=true
select_local=true
target_directory=
targets=
verbose=1
admin_directory=/var/adm/sw
distribution_target_directory=/var/spool/sw
level=
log_msgid=0
logfile=/var/adm/sw/swreg.log
logdetail=false
loglevel=1
lookupcache_timeout_minutes=10
objects_to_register=
For More Information
See Appendix A (page 235) for complete descriptions of each default.
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
4.4 Additional Depot Management Tasks and Examples 97