Patch Name: PHCO_27779 Patch Description: s700_800 11.00 HP-UX Patch Tools and White Paper Creation Date: 02/09/11 Post Date: 02/09/20 Hardware Platforms - OS Releases: s700: 11.00 s800: 11.00 Products: N/A Filesets: SW-DIST.SD-CMDS,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP SW-DIST.SD-CMDS,fr=B.11.01,fa=HP-UX_B.11.00_32/64,v=HP SW-DIST.SD-CMDS,fr=B.11.10.07,fa=HP-UX_B.11.00_32/64,v=HP SW-DIST.SD-CMDS,fr=B.11.10.07.01,fa=HP-UX_B.11.00_32/64,v=HP SW-DIST.SD-CMDS,fr=B.11.10.14,fa=HP-UX_B.11.00_32/64,v=HP SW-DIST.SD-CMDS,fr=B.11.11.00.02,fa=HP-UX_B.11.00_32/64,v=HP SW-DIST.SD-CMDS,fr=B.11.11.00.05,fa=HP-UX_B.11.00_32/64,v=HP SW-DIST.SD-CMDS,fr=B.11.11.00.05.01,fa=HP-UX_B.11.00_32/64,v=HP OS-Core.RELEASE-NOTES,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP Automatic Reboot?: No Status: General Release Critical: No Category Tags: defect_repair enhancement general_release Path Name: /hp-ux_patches/s700_800/11.X/PHCO_27779 Symptoms: PHCO_27779: - check_patches identifies patch filesets that do not match the current systems architecture as missing. SR: 8606218505 / CR: JAGad87654 - check_patches does not recognize directories as a valid file type. SR: 8606266501 / CR: JAGae30748 - check_patches reports missing filesets when the patch and ancestor do not have the same fileset tags. SR: 8606274823 / CR: JAGae38900 PHCO_24347: - PHCO_22044 and prior patches do not install if a version of Software Distributor newer than version B.11.00 is installed. If explicitly marked for installation, the following note will be displayed in the swagent.log file: NOTE: The patch fileset "PHCO_22044.SD-CMDS,r=1.0" may only be installed upon a previously installed base fileset. The specification for this base fileset is "SW-DIST.SD-CMDS,fr=B.11.00,v=HP". Since there is no fileset on the target or selected from the source which matches this specification, fileset "PHCO_22044.SD-CMDS,r=1.0" will be excluded. SR: 8606164878 / CR: JAGad34175 - The cleanup utility does not 'commit' superseded patches on systems with a version of SD-UX that turns off the display of superseded patches. SR: 8606169413 / CR: JAGad38688 - The cleanup utility does not recognize the 'committed/superseded' patch_state. Using the 'commit' option of cleanup on patches with a patch_state of 'committed/superseded' causes errors similar to the following to be displayed: ERROR: swmodify(1M) encountered problems committing the superseded patches: ERROR: Cannot commit the patch fileset "PHCO_13363.UX-CORE" in the target "/" because its patch state is not "applied" or "superseded". SR: 8606193894 / CR: JAGad63104 PHCO_22044: - The check_patches utility incorrectly reports that PHKL_18543 should be reinstalled when incremental kernel patches have been installed. SR: 8606126914 / CR: JAGac59755 - The check_patches utility reports several instances of 'unknown line is_volatile true' if PHCO_19047 is installed. SR: 8606147011 / CR: JAGad16354 - Enhance the check_patches utility to check for the situation where a patch fileset from an installed multi-fileset patch is missing when the associated product fileset is installed. This may occur when a product fileset is installed, or reinstalled, after a patch. SR: 8606147015 / CR: JAGad16358 - The show_patches utility does not display any superseded patches if SD-UX patch PHCO_20078, or one of its successors, is installed and the 'show_superseded_patches' option is set to 'false' in the defaults file. SR: 8606147019 / CR: JAGad16362 PHCO_19550: - The 'cleanup -i' command may exit without removing HP-UX 10.X patches from the Installed Product Database. SR: 8606103358 / CR: JAGab16794 - The 'cleanup -d' command cannot be used to manage depots on an HP-UX 11.00 system that contain 10.X patches. SR: 5003451245/ CR: JAGaa93182 - The cleanup(1M) utility cannot be used to remove superseded patch information from /var/adm/sw/save, like it could on the HP-UX 10.X releases. It is difficult to recover space from /var/adm/sw/save using the 'swmodify -x patch_commit' command when dealing with a large number of superseded patches. SR: 5003451245 / CR: JAGab17265 SR: 5003465427 / CR: JAGab20769 SR: 5003467225 / CR: JAGab25232 - The patch_state attributes on HP-UX 11.00 patches can be left in an inconsistent state due to incorrect or inconsistent behavior by the SD-UX commands. PHCO_18519: - The check_patches utility checks for common problems related to patches on HP-UX 11.00. - The show_patches utility displays active and superseded patches. PHCO_13753: - The remove_patches tool is intended to supplement the new patch functionality of 11.0 SD. The tool is the swremove counterpart of swinstall using the patch filter. It will aid in the removal of patches, according to category tags, from the large bundles that will be delivered as part of 11.0's release plan. - The cleanup utility can serve two purposes. First, it is used to remove 10.X patches from the Installed Product Database after updating to HP-UX 11.X. Second, it is also used to remove patches from a software depot if the patches have been superseded by patches also available in the same depot. - The HP-UX 11.X Patch Program White Paper is intended to provide information, to system administrators, regarding the 11.X patch structure as well as information on how to acquire, install, check, commit and remove patches. It also provides information on depot management and installing patches from a depot. Defect Description: PHCO_27779: - Some patches apply only to 32- or 64-bit environments in cases where the fileset being patched exists in both. The check_patches utility did not contain the logic to recognize that the filesets in the patch did not apply and reported a split-patch error. SR: 8606218505 / CR: JAGad87654 Resolution: - The filesets verified by check_patches now must match the architecture of the active kernel. - check_patches does not recognize directories as a valid file type. Resolution: - The check for invalid file types was removed. It is not a problem that is likely to be introduced on customer systems. SR: 8606266501 / CR: JAGae30748 - check_patches reports missing filesets when the patch and ancestor do not have the same fileset tags. SR: 8606274823 / CR: JAGae38900 Resolution: - A check was added to see if a fileset might apply to more than one ancestor. PHCO_24347: - PHCO_22044 and prior patches were designed when there was only one supported version of Software Distributor (SD-UX) on HP-UX 11.00. Now that multiple versions of SD-UX are distributed and supported on HP-UX 11.00, this utility patch must be constructed to install on any version of SD-UX present on HP-UX 11.00. SR: 8606164878 / CR: JAGad34175 Resolution: - PHCO_24347 and superseding patches will be constructed with the appropriate ancestor attributes to allow the patches to be installed on any version of SD-UX. - The cleanup utility was designed before Software Distributor was modified to allow users to disable the display of superseded patches in the swlist(1M) command. SR: 8606169413 / CR: JAGad38688 Resolution: - The cleanup utility has been updated to recognize superseded patches even if the swlist(1M) command does not display them by default. - The cleanup utility was designed before Software Distributor introduced the 'committed/superseded' patch_state on HP-UX 11.00. SR: 8606193894 / CR: JAGad63104 Resolution: - The cleanup utility has been updated to recognize the 'committed/superseded' patch state. PHCO_22044: - The check_patches utility was written before the release of PHKL_18543 and was designed when only one non-superseded patch contained information in the IPD about a given kernel object module. The release of PHKL_18543, the Line-In-The-Sand patch, and its incremental patches changed this policy and invalidated the design specification of check_patches. SR: 8606126914 / CR: JAGac59755 Resolution: - The check_patches utility will use the prerequisite attribute that exists in all kernel incremental patches to avoid reporting incorrect information about PHKL_18543. - The check_patches utility only expected certain information to be present in the IPD for patches. If it encountered an attribute it did not expect, it reported an 'unknown line' message. SR: 8606147011 / CR: JAGad16354 Resolution: - The check_patches utility will ignore all attributes in the IPD that do not provide information it requires. - The check_patches utility was enhanced to check for the situation where a patch fileset from an installed multi-fileset patch is missing when the associated product fileset is installed. SR: 8606147015 / CR: JAGad16358 Resolution: - A new option, '-m', has been added to the check_patches utility to determine if patch filesets are missing. The utility uses the patch README files stored in the IPD to determine which product filesets to which the patch applies. If one of these filesets is installed but the corresponding patch fileset is missing it will report an error. - The behavior of swlist(1M) was modified in the SD-UX patch PHCO_20078 to allow the suppression of superseded patch information. Since the show_patches utility uses swlist(1M) to obtain patch information, it did not report superseded patch information since it was not provided by swlist(1M). SR: 8606147019 / CR: JAGad16362 Resolution: - The show_patches utility will determine if the installed version of swlist(1M) recognizes the 'show_superseded_patches' option and will use this option when necessary. PHCO_19550: - The cleanup(1M) utility would exit prematurely when the /var/adm/sw/patch directory was empty or non-existent, even if HP-UX 10.X patches are present in the Installed Product Database. SR: 8606103358 / CR: JAGab16794 Resolution: - Do not exit immediately if the /var/adm/sw/patch directory is empty or non-existent. - The cleanup(1M) depot management function was designed only for depots containing 11.00 patches. However, HP-UX 11.00 systems can also be used to maintain depots with 10.X patches. SR: 5003451245/ CR: JAGaa93182 Resolution: - A new option, '-o', has been added to the cleanup(1M) utility to specify if the depot contains HP-UX 10.X or 11.00 patches. - The cleanup(1M) utility on HP-UX 11.00 was not designed to commit patches, since this functionality is implemented in the swmodify(1M) command. The cleanup(1M) utility has been enhanced to provide an interface that makes it easier to commit groups of superseded patches. SR: 5003463851 / CR: JAGab17265 SR: 5003465427 / CR: JAGab20769 SR: 5003467225 / CR: JAGab25232 Resolution: - A new option, '-c', has been added to the cleanup(1M) utility to act as an interface to the 'swmodify -x patch_commit' command. This option allows a group of superseded patches to be committed based on the number of times they have been superseded on the system. The actual committing of the patches is still performed by the smwodify(1M) command, which is invoked by cleanup(1M). - The swconfig(1M), swinstall(1M), and swremove(1M) commands are not consistent in the way the patch_state attribute is set. Resolution: - A new option, '-s', has been added to the cleanup(1M) utility to correct the patch_state attributes that are not consistent. This does not solve the problem with the SD-UX commands, but can be used to correct the patch_state attributes after they have been set incorrectly. PHCO_18519: - The check_patches utility checks for common patch problems on HP-UX 11.00 systems, such as: - patches missing the SD-UX patch attributes - patch object modules missing from archive libraries - patch filesets not in the configured state - patch filesets that fail swverify(1M) - The show_patches utility displays the active and superseded patches on the system in a formatted display. Due to the different patch_states (applied, superseded, and committed), using swlist(1M) to determine the state of all patches on the system can be difficult. The show_patches utility provides the information in a more readable format. PHCO_13753: - As of 11.0, SD allows the filtering of installation of patches with category tags. This filtering is not part of the removal capability (swremove). The remove_patches tool is being provided to allow patches to be removed according to a specific category tag. By default, the tool will remove all but the critical and hardware_enablement patches. - The cleanup utility is being provided to allow the removal of patches belonging to HP-UX 10.X after a system has been updated to HP-UX 11.X. It is also being provided to allow the removal of superseded patches from a depot. Enhancement: No (superseded patches contained enhancements) PHCO_18519: Original deliver of check_patches(1m) and show_patches(1). PHCO_13753: Original delivery of cleanup(1m) SR: 5003451245 5003463851 5003465427 5003467225 8606103358 8606126914 8606147011 8606147015 8606147019 8606164878 8606169413 8606193894 8606218505 8606266501 8606274823 Patch Files: SW-DIST.SD-CMDS,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: SW-DIST.SD-CMDS,fr=B.11.01,fa=HP-UX_B.11.00_32/64,v=HP: SW-DIST.SD-CMDS,fr=B.11.10.07,fa=HP-UX_B.11.00_32/64,v=HP: SW-DIST.SD-CMDS,fr=B.11.10.07.01,fa=HP-UX_B.11.00_32/64, v=HP: SW-DIST.SD-CMDS,fr=B.11.10.14,fa=HP-UX_B.11.00_32/64,v=HP: SW-DIST.SD-CMDS,fr=B.11.11.00.02,fa=HP-UX_B.11.00_32/64, v=HP: SW-DIST.SD-CMDS,fr=B.11.11.00.05,fa=HP-UX_B.11.00_32/64, v=HP: SW-DIST.SD-CMDS,fr=B.11.11.00.05.01,fa=HP-UX_B.11.00_32/64, v=HP: /usr/contrib/bin/check_patches /usr/contrib/man/man1m/check_patches.1m /usr/contrib/bin/show_patches /usr/contrib/man/man1/show_patches.1 /usr/sbin/remove_patches /usr/share/man/man1m/remove_patches.1m /usr/sbin/cleanup /usr/share/man/man1m.Z/cleanup.1m OS-Core.RELEASE-NOTES,fr=B.11.00,fa=HP-UX_B.11.00_32/64, v=HP: /usr/share/doc/patch_pgrm.txt what(1) Output: SW-DIST.SD-CMDS,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/contrib/bin/check_patches: $Revision: 1.30 (PHCO_22044)$ $Date: 00/07/14 $ /usr/contrib/man/man1m/check_patches.1m: None /usr/contrib/bin/show_patches: $Revision: 1.04 (PHCO_22044)$ $Date: 00/07/14 $ /usr/contrib/man/man1/show_patches.1: None /usr/sbin/remove_patches: $Revision: 1.17 $ /usr/share/man/man1m/remove_patches.1m: None /usr/sbin/cleanup: $Revision: B.11.00.13 (PHCO_24347)$ $Date: 01/06/05$ /usr/share/man/man1m.Z/cleanup.1m: None OS-Core.RELEASE-NOTES,fr=B.11.00,fa=HP-UX_B.11.00_32/64, v=HP: /usr/share/doc/patch_pgrm.txt: None cksum(1) Output: SW-DIST.SD-CMDS,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 891280196 30964 /usr/contrib/bin/check_patches 3953708597 1732 /usr/contrib/man/man1m/check_patches.1m 328081655 7412 /usr/contrib/bin/show_patches 1449185154 1496 /usr/contrib/man/man1/show_patches.1 113848969 14668 /usr/sbin/remove_patches 4087050187 2152 /usr/share/man/man1m/remove_patches.1m 2001222442 49763 /usr/sbin/cleanup 2721765495 2199 /usr/share/man/man1m.Z/cleanup.1m OS-Core.RELEASE-NOTES,fr=B.11.00,fa=HP-UX_B.11.00_32/64, v=HP: 319935563 48725 /usr/share/doc/patch_pgrm.txt Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_13753 PHCO_18519 PHCO_19550 PHCO_22044 PHCO_24347 Equivalent Patches: None Patch Package Size: 210 KBytes Installation Instructions: Please review all instructions and the Hewlett-Packard SupportLine User Guide or your Hewlett-Packard support terms and conditions for precautions, scope of license, restrictions, and, limitation of liability and warranties, before installing this patch. ------------------------------------------------------------ 1. Back up your system before installing a patch. 2. Login as root. 3. Copy the patch to the /tmp directory. 4. Move to the /tmp directory and unshar the patch: cd /tmp sh PHCO_27779 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHCO_27779.depot By default swinstall will archive the original software in /var/adm/sw/save/PHCO_27779. If you do not wish to retain a copy of the original software, include the patch_save_files option in the swinstall command above: -x patch_save_files=false WARNING: If patch_save_files is false when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature. For future reference, the contents of the PHCO_27779.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHCO_27779.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_27779.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None