Software Package Builder 5.0 User's Guide
spb -f /opt/SPB/demo/demoPSF -V -s nw
To validate a specified depot from the command line, use the following two options in
combination:
• The -doption specifies the depot to be edited or validated.
• The -V option validates the PSF indicated by the -ddepot.
Example
To validate a depot /myDepot located on machine spbhome.fc.hp.com, enter the following
command:
spb -d spbhome.fc.hp.com:/myDepot -V
To validate a depot (/myDepot) located on machine spbhome.fc.hp.com for both packaging
and installation errors on targets hostA and hostB, you would type the following:
spb -d spbhome.fc.hp.com:/myDepot -V -p @hostA hostB
If there are packaging errors in the depot, you need to check for installation errors using the
forceful option as follows:
spb -d spbhome.fc.hp.com:/myDepot -V -p -F @hostA
To suppress only error messages displayed while validating a depot /myDepot located on
machine spbhome.fc.hp.com, you would type the following:
spb -d spbhome.fc.hp.com:/myDepot -V -se
For more information on spb command, see spb(1M) manpage.
Incorporating SPB into Automated Processes
For packagers with automated processes, the build process usually includes generating a PSF.
To take advantage of SPB's validation capability, include the SPB validation command after the
PSF generation step in the automated process.
Example
To perform validation on the generated PSF, enter the following command in your process:
spb -f psf_file -V 2> psferrors
and to suppress the notes, enter:
spb -f psf_file -V -s ne 2> psferrors
where psf_file is the name of the generated PSF and psferrors is the file where validation
errors are stored. Packagers can then examine this file and determine the appropriate course of
action. You can debug the PSF using the SPB GUI with packaging policy help located in the
Policy Help tab. The return values of the validation also indicate which message was the most
severe message.
Similarly, to perform validation on a depot, enter the following command in your process:
spb -d some.home.hp.com:/myDepot -V 2> depoterrors
and to suppress the warnings and notes, enter:
spb -d some.home.hp.com:/myDepot -V-s wn
where some.home.hp.com:/myDepot is the name of the depot and depoterrors is the file
where validation errors are stored. Verifiers can then examine this file and determine the
appropriate course of action.
30 Getting Started with Software Package Builder