swpackage.1m (2011 03)

s
swpackage(1M) swpackage(1M)
...
If errors encountered while parsing the PSF result in no valid product definitions,
swpackage ter-
minates. All errors are logged to both stderr and the logfile. In summary, the
swpackage user can:
Specify one or more products;
For each product, specify one or more filesets.
For each fileset, specify one or more files.
(optional) Specify attributes for the target depot/tape;
(optional) Specify one or more bundles, defining the bundle contents;
(optional) Specify vendor information for products and bundles;
(optional) Specify category information for products, bundles and patches.
(optional) For each product, specify one or more subproducts, defining the subproduct contents;
(optional) For each product or fileset, specify one or more control scripts.
RETURN VALUES
The
swpackage command returns:
0 The products specified in the product_specification_file were successfully packaged into the
target depot/tape.
1 An error occurred during the swpackage session (for example, bad syntax in the
product_speci fication_file.) Review stderr or the log file for details.
DIAGNOSTICS
The
swpackage command writes to stdout, stderr, and to the logfile.
Standard Output
The
swpackage command writes messages for significant events. These include:
a begin and end session message,
selection, analysis, packaging, and tape creation messages.
Standard Error
The swpackage command writes messages for all WARNING and ERROR conditions to stderr.
Logfile
The
swpackage command logs detailed events to the log file /var/adm/sw/swpackage.log
. The
user can specify a different logfile by modifying the
logfile option.
EXAMPLES
Package the products defined in the PSF products into the default target depot:
swpackage -s products
Preview the same operation (do not create the target depot), and generate very verbose output:
swpackage -p -vv -s products
Package the products into the target depot no_files, insert references to the source files instead of copying
them into the depot:
swpackage -s products -x package_in_place=true @ no_files
Re-package a specific fileset:
swpackage -s products -x package_in_place=true product.fileset @ no_files
Re-package the entire contents of the depot /var/spool/sw onto the tape at /dev/rmt/0m:
swpackage -s /var/spool/sw -x media_type=tape @ /dev/rmt/0m
FILES
/dev/rmt/0m
The default location of a source and target tape. (Note that SD can read both tar and cpio tape
depots.)
$HOME/.swdefaults
Contains the user-specific default values for some or all SD options.
10 Hewlett-Packard Company 10 HP-UX 11i Version 3: March 2011