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 -pcommand 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.

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.

Creating and adding to a directory depot

69