HP-UX Reference (11i v1 05/09) - 1M System Administration Commands N-Z (vol 4)
s
swpackage(1M) swpackage(1M)
(HP-UX Software Distributor)
PRODUCT SPECIFICATION FILE
This section summarizes the product_specification_file (PSF) which drives the
swpackage session. See
swpackage(4) for a detailed description of PSF syntax and semantics.
A PSF is structured as follows:
[depot specification]
[vendor specification]
[category specification]
[bundle specification]
[product specification]
[control script specification]
[subproduct specification]
[fileset specification]
[control script specification]
[file specification]
[fileset specification]
...
[product specification]
...
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 tar-
get depot/tape.
1 An error occurred during the swpackage session (e.g. bad syntax in the
product_specification_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
Section 1M−−974 Hewlett-Packard Company − 9 − HP-UX 11i Version 1: September 2005