Patch Management User Guide for HP-UX 11.x Systems (5900-3011, April 2013)

Table Of Contents
For more information about the swlist command, see the Software Distributor Administration
Guide on the HP Business Support Center website at http://www.hp.com/go/sd-docs.
Creating and adding to a directory depot
You can use the swcopy command to create a directory depot from an existing tape or directory
depot. Software objects from the source depot are copied into the target directory. By default, the
swcopy command automatically registers newly created directory depots for use by Software
Distributor.
The swcopy command has many possible arguments. For information, consult the swinstall(1M)
manpage or the Software Distributor Administration Guide on the HP Business Support Center
website at http://www.hp.com/go/sd-docs. Note that the swcopy instructions are contained in
the swinstall manpage.
In this chapter, consider only the following command arguments:
swcopy [-p] -s [source_system:] /directory_path/source_depot
software_selections @ [target_system:] /directory_path/target_depot
The swcopy arguments are as follows:
-p
Executes in preview mode when given the optional -p command line argument.
Does not perform the software copy. It shows what the output from executing the command
will be.
Results in the creation of the root directory for the depot as well as a catalog directory
and a swagent.log file. The log file contains useful information, including disk space
analysis. The command output includes instructions for viewing the information in the log
file. These instructions are similar to the following:
NOTE: More information may be found in the agent
logfile using the command
"swjob -a log target_system-1234 \
@ target_system:/some_directory/target_depot".
-s [source_system:]/directory_path/source_depot
Specifies the tape or directory depot from which patches will be copied.
Include the name of the source_system to specify a system other than the local one.
Use the appropriate path and depot name of the depot on the media to copy from a
depot located on media, such as CD or DVD.
Creating and adding to a directory depot 71