HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)
s
swpackage(1M) swpackage(1M)
var/adm/sw/products/swlock
relative to the root directory (e.g. /var/adm/sw/products/swlock
).
The SD commands which modify software in a depot are restricted from simultaneous modification using
fcntl(2) locking on the file
catalog/swlock
relative to the depot directory (e.g. /var/spool/sw/catalog/swlock
).
All commands set fcntl(2) read locks on roots and depots using the
swlock file mentioned above. When a
read lock is set, it prevents other SD commands from performing modifications (i.e. from setting write
locks).
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.
HP-UX 11i Version 3: February 2007 − 9 − Hewlett-Packard Company 517