Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Installing HP-UX 11.0 and Updating HP-UX 10.x to 11.0: HP 9000 Computers > Appendix C Ignite-UX System Administration

Section 8: Loading HP-UX Patches Using Ignite-UX

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

Ignite-UX can use an existing Software Distributor (SD) depot to distribute additional software. This depot can be managed separately from Ignite-UX. In this example we'll create a patch depot containing HP-UX Patches, create a single patch bundle of the contents of the depot, and then add this bundle to an existing Ignite-UX configuration. Note that Ignite-UX currently will only work with SD software configured in bundles.

Steps for loading the patches:

Removing Prior Patch Information:

If a 10.x system you intend to update is already patched, do the following:

In order to remove all prior patch information from the IPD on 10.x systems prior to updating to HP-UX 11.0, do the following:

  1. Make a backup copy of the IPD (in /var/adm/sw/products) by entering the following:

                       find /var/adm/sw/products | cpio -pdumv /tmp

  2. Enter the swmodify command

                       swmodify -u PH[CKNS][OLES]_\*.\* PH[CKNS][OLES]_\*
  3. Remove the patch directory by entering the following:

     rm -rf /var/adm/sw/patch

The first selection in item 2, "PH[CKNS][OLES]_\*.\*" tells swmodify to remove all fileset information for the patch products.

The second selection in item 2, "PH[CKNS][OLES]_\*" removes the product information, once the fileset information is gone.

The swmodify command will not allow you to remove a product from the IPD if any filesets exist in the IPD. The backslashes are necessary to inhibit the shell from expanding the wildcard characters. This allows swmodify to match all the software selections for patches. You should not have any real products or filesets on your system that match this regular expression.

Creating a Patch Depot

1. Create a Patch Depot:

Obtain the set of patches you want to place and manage in an SD depot. For example:

 PHCO_7891 PHCO_9348 PHKL_9361 PHSS_7726 PHSS_8966 PHSS_9400 PHCO_8353 PHKL_8376 PHKL_9569 PHSS_8667 PHSS_9201

HP patches as delivered by the Response Center or the HP Web site are shar files consisting of a product depot and README file.

2. Unshar the patches:

# for i in PH*
do
sh $i 
done

3. Combine all these separate depots into one depot.

To do this, use the swcopy command. First, create the directory to store the patches:

 # mkdir /var/opt/ignite/Patches

4. Now take the patch depots and copy them into the target depot:

# for i in PH*.depot
 do
 swcopy -s ${PWD}/$i \* @ /var/opt/ignite/Patches
 done

5. Verify the contents of the depot:

# swlist -d @ /var/opt/ignite/Patches

Assuming the above example list of patches, you would see the following:

# Initializing...
# Contacting target "interop1"...
# 
# Target: interop1:/var/opt/ignite/Patches
 #
 #
 # No Bundle(s) on interop1:/var/opt/ignite/Patches
 # Product(s):
 #
 PHCO_7891 B.10.00.00.AA allows mount to turnon hfs-specific opts PHCO_8353 B.10.00.00.AA cumulative awk(1) patch PHCO_9348 B.10.00.00.AA cron(1M) and at(1) patch PHKL_8376 B.10.00.00.AA Fix vmtrace bug. PHKL_9361 B.10.00.00.AA Fix panic caused by MP race PHKL_9569 B.10.00.00.AA NFS and VxFS (JFS) cumulative patch PHSS_7726 B.10.00.00.AA CDE Dtterm August 96 patch PHSS_8667 B.10.00.00.AA CDE Runtime Nov96 Patch PHSS_8966 B.10.00.00.AA LIBCL cumulative patch PHSS_9201 B.10.00.00.AA fix for aC++ dld.sl PHSS_9400 B.10.00.00.AA ld(1) cumulative patch

In the above output, swlist states that the depot has "No Bundles". HP-UX Patches are SD "products", but Ignite-UX can only manage SD "Bundles".

6. Convert the individual patches into a single bundle using the /opt/ignite/bin/make_bundles command. Run the script and create a bundle in the Patches depot:

 # make_bundles -B -n Misc_Patches -t "HP-UX 11.00 Patches" \ /var/opt/ignite/Patches

7. Rerun swlist on this depot to verify the Bundle has been created:

 # swlist -d @ /var/opt/ignite/Patches

(Output of swlist command assuming the example patches)

# Initializing...# Contacting target "interop1"...# # Target: interop1:/var/opt/ignite/Patches ## # Bundle(s): # Misc_Patches HP-UX 11.00 Patches

The default behavior of swlist is to now show only the higher level software bundles. Individual patches in the bundle can still be viewed by using swlist options. The following will show the patch "products" contained in the bundle:

 # swlist -l product -d @ /var/opt/ignite/Patches
NOTE: If you need to add additional patches to the depot in the future, simply unshar the patches as described above, swcopy them into the Patches depot, and rerun the "make_bundles" command. This will repackage the depot.

If you would like to remove a Patch from the depot, simply use the swremove command. You can either run swremove and use its friendlier user-interface, or run swremove in command line mode. The following will remove the PHKL_8376 patch from the bundle:

 # swremove -d Misc_Patches.PHKL_8376 @ /var/opt/ignite/Patches

8. If you inadvertently create a Bundle of a Bundle (for example, if you add an HP product you want distributed with the patch depot) use swremove interactively to examine and delete the extra bundle.

9. Create a config file for the newly-created "Misc_Patches" bundle. Follow the steps outlined in the "Adding a SD Bundle to the Archive environment" part of Section 4. Use "/var/opt/ignite/Patches" for your source depot and specify a new configuration file:

 # make_config -s /var/opt/ignite/Patches -a 700 \
 -c /var/opt/ignite/data/Rel_B.11.00/misc_patch_bundle_cfg

10. Modify the /var/opt/ignite/INDEX file to include the new bundle in our "HP-UX B.11.00 archive" configuration:

 cfg "HP-UX B.11.00 archive" { 
description "The ARCHIVE B.11.00 release with patches."
 "/opt/ignite/data/Rel_B.11.00/config" "/var/opt/ignite/data/Rel_B.11.00/core_700_archive_cfg" "/var/opt/ignite/data/Rel_B.11.00/patch_bundle_cfg" "/var/opt/ignite/data/Rel_B.11.00/misc_patch_bundle_cfg" "/var/opt/ignite/config.local" }

11. To force the installation of the new "Misc_Patches" Bundle with the "golden image" archive, add the following line to the sw_sel clause for the patch bundle in the file "/var/opt/ignite/data/Rel_B.11.00/misc_patch_bundle_cfg":

 load_with_any = "golden image"

We created this file with the make_config command file previously.

NOTE: Most software distributed by HP, for example applications on DART CD-ROMs, are already bundles and will not need (and should not be) bundled again!
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.