Software Distributor Administration Guide HP-UX 11i v1, 11i v2, and 11i v3 (5900-2561, March 2013)
10.5.1.1 Output of Logfile Messages
The log file /var/adm/sw/swpackage.log captures output from the swpackage session.
• Message logging by default sends verbose messages to stdout.
(Setting the verbose option to 0 reduces the amount of information in stdout.)
• Message logging also sends errors and warnings to stderr.
• No logfile messages are written in preview (-p) mode.
• The logfile is equal to stdout plus stderr.
Here is a sample log:
======= 01/27/01 18:58:45 MST BEGIN swpackage SESSION
* Session started for user "root@sdtest.myco.com".
* Source: vewd:test.psf
* Target: vewd:/var/spool/sw
* Software selections:
*
* Options:
preview true
verbose 1
loglevel 1
logfile /var/adm/sw/swpackage.log
source_type file
target_type directory
package_in_place false
follow_symlinks false
include_file_revisions false
enforce_dsa true
reinstall_files true
reinstall_files_use_cksum false
write_remote_files false
create_target_acls true
* Beginning Selection Phase.
* Reading the Product Specification File (PSF) "test.psf".
* Reading the product "SD" at line 1.
* Reading the fileset "commands" at line 4.
======= 01/27/01 18:58:45 MST END swpackage SESSION
10.6 Packaging Tasks and Examples
To package the software products defined in the PSF product.psf into the distribution depot
/var/spool/sw and preview the task at the verbose level before actually performing it, type:
swpackage -p -v -s product.psf @ /var/spool/sw
10.6.1 Registering Depots Created by swpackage
When a new depot is created by swpackage, it is not automatically registered with the local
host’s swagentd daemon.
To verify that the depot is registered, type:
swlist -l depot @ MyDepot
To register the depot, you must execute the swreg command:
swreg -l depot depot_to_register
Registering a depot makes it generally available as a source for swinstall and swcopy tasks.
200 Creating Software Packages