Patch Management User Guide for HP-UX 11.x Systems (762796-001, March 2014)

Table Of Contents
software_selections
Specifies the software to be copied.
Replace software_selections with a wildcard to copy multiple products to the target
depot with one command. For example:
\* selects everything from the source depot.
\*,c=patch selects all patches from the source depot.
PHXX_12345 selects patch PHXX_12345 from the source depot.
@ [target_system:]/directory_path/target_depot
Specifies the depot directory into which the selected patches will be copied.
Include the name of the target_system to specify a system other than the local one.
If this target does not exist and you execute the swcopy command as a user with
appropriate permissions, the target is created. If you do not have the required permissions,
the command generates an error message that provides information about actions you
can take to resolve the problem.
Copying patches to depots
The following example shows how to copy patch PHCO_27780 from a remote directory depot to
a local directory depot. The process creates the local depot. The following values are specified in
the command line:
source_system: remote_system
source_depot: /depot/patches/11.11/
target_system: my_system
target_depot: /my_depots/new_directory_depot/
1. List the registered depots on the local system before copying the patch:
$ swlist -l depot
# Initializing...
# Target "my_system" has the following depot(s):
/var/spool/sw
The target_depot/my_depots/new_directory_depot/ does not yet exist.
2. List the registered depots on the remote system:
$ swlist -l depot @ remote_system
# Initializing...
# Target "remote_system" has the following depot(s):
/depot/patches/11.00
/depot/patches/11.04
/depot/patches/11.11
/depot/patches/11.23
Note the source_depot.
3. Show the contents of the source_depot using /depot/patches/11.11/:
$ swlist -l product @ remote_system:/depot/patches/11.11
# Initializing...
# Contacting target "remote_system"...
#
# Target: remote_system:/depot/patches/11.11
#
...
Creating and adding to a directory depot 73