In the preceding example, note that most of the output is not shown. If you wanted the ls patch PHCO_33976 to have its own wrapper bundle, you could have instead used –band changed the bundle name, revision, and so forth and created a new bundle to hold the patch.

The following example demonstrates what happens when you use the –ooption to create a PSF. It also shows how you can then use the PSF with swpackage to implement the changes yourself. Before creating the PSF however we need to remove the existing bundle wrappers since they will prevent the PSF from being created with the –b option:

#swmodify -u -d PB_Sept_2007,r=\* @ /var/opt/ignite/depots/Rel_B.11.23/patches

Now we can create the PSF file.

#make_bundles -b -i -n "PB_Sept_2007" \

>-t "backup commands patches for Sept 2007" \

>-o ./PB-Sept_2007.psf -r 1.0 \

>/var/opt/ignite/depots/Rel_B.11.23/patches Generating list of unbundled filesets...

# ll ./PB-Sept_2007.psf

-rw-r--r--

1 root

sys

1011 Aug 30 16:53 ./PB-Sept_2007.psf

The PSF contains all of the information needed to create the bundle and the swpackage command needed to create the bundle.11

#cat PB-Sept_2007.psf

#################################################################

#swpackage product specification file generated by make_bundles

#on Thu Aug 30 16:53:26 EST 2007. For depot: /var/opt/ignite/depots/Rel_B.11.2

3/patches

#To run swpackage to apply the bundle definitions to the

#depot, use the command:

#

#swpackage -s ./PB-Sept_2007.psf -xlayout_version=1.0 - xreinstall_files=true

-d /var/opt/ignite/depots/Rel_B.11.23/patches

#################################################################

bundle

tag PB_Sept_2007

title backup commands patches for Sept 2007 os_name HP-UX

is_reference true revision 1.0

architecture HP-UX_B.11.23_IA/PA vendor_tag "HP"

contents PHCO_31622,r=1.0,a=HP-UX_B.11.23_IA/PA,v=HP,fr=1.0 contents PHCO_31634,r=1.0,a=HP-UX_B.11.23_IA/PA,v=HP,fr=1.0 contents PHCO_33431,r=1.0,a=HP-UX_B.11.23_IA/PA,v=HP,fr=1.0 contents PHCO_33976,r=1.0,a=HP-UX_B.11.23_IA/PA,v=HP,fr=1.0 contents PHCO_36056,r=1.0,a=HP-UX_B.11.23_IA/PA,v=HP,fr=1.0

end

You can then package the bundle manually:

11Getting the make_bundles command to produce a PSF also means that the file can be kept in a source management system so changes can be tracked and monitored. Because the PSF can be checked out, the same configuration can be validated and recreated at will.

30