Patch Name: PHCO_25081 Patch Description: s700_800 11.00 uptime(1) cumulative patch Creation Date: 01/08/24 Post Date: 01/09/05 Hardware Platforms - OS Releases: s700: 11.00 s800: 11.00 Products: N/A Filesets: OS-Core.CAUX-ENG-A-MAN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP OS-Core.CMDS-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP Automatic Reboot?: No Status: General Release Critical: No Category Tags: hardware_enablement general_release Path Name: /hp-ux_patches/s700_800/11.X/PHCO_25081 Symptoms: PHCO_25081: PHCO_21928 breaks hard link between /usr/bin/w and /usr/bin/uptime. PHCO_21928: In a multi processor system, if any processor other than the last processor is deallocated, uptime(1) shows incorrect load averages information. Defect Description: PHCO_25081: According to uptime(1) manpage, /usr/bin/w is a hard link to /usr/bin/uptime. PHCO_21928 installs a new version of /usr/bin/uptime but doesn't re-link /usr/bin/w, leaving old version of /usr/bin/w in the system. Resolution: Now postinstall script explicitly links /usr/bin/w with /usr/bin/uptime. PHCO_21928: In a multiprocessor system of say, n processors, when a processor other than the processor "n" is deallocated, uptime(1) skips the information of processor "n" instead of the deallocated processor. While calculating the averages, uptime(1) takes the deallocated processor into consideration instead of processor "n". Resolution: The mpctl(2) call is used in uptime(1) to find the allocated processors' numbers and uptime(1) is made to display and calculate information only for the allocated processors. SR: 8606217112 8606144311 Patch Files: OS-Core.CAUX-ENG-A-MAN,fr=B.11.00,fa=HP-UX_B.11.00_32/64, v=HP: /usr/share/man/man1.Z/uptime.1 /usr/share/man/man1.Z/w.1 OS-Core.CMDS-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/bin/uptime /usr/bin/w what(1) Output: OS-Core.CMDS-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/bin/uptime: uptime.c $Revision: 80.2.1.3 $ $Date: 2000/07/06 05 :24:55 $ PATCH_11_00: uptime.o 01/08/24 OS-Core.CMDS-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/bin/w: uptime.c $Revision: 80.2.1.3 $ $Date: 2000/07/06 05 :24:55 $ PATCH_11_00: uptime.o 01/08/24 OS-Core.CAUX-ENG-A-MAN,fr=B.11.00,fa=HP-UX_B.11.00_32/64, v=HP: /usr/share/man/man1.Z/uptime.1: None OS-Core.CAUX-ENG-A-MAN,fr=B.11.00,fa=HP-UX_B.11.00_32/64, v=HP: /usr/share/man/man1.Z/w.1: None cksum(1) Output: OS-Core.CMDS-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 2723211135 20480 /usr/bin/uptime OS-Core.CMDS-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 2723211135 20480 /usr/bin/w OS-Core.CAUX-ENG-A-MAN,fr=B.11.00,fa=HP-UX_B.11.00_32/64, v=HP: 2303036076 1279 /usr/share/man/man1.Z/uptime.1 OS-Core.CAUX-ENG-A-MAN,fr=B.11.00,fa=HP-UX_B.11.00_32/64, v=HP: 2303036076 1279 /usr/share/man/man1.Z/w.1 Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_21928 Equivalent Patches: None Patch Package Size: 50 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_25081 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHCO_25081.depot By default swinstall will archive the original software in /var/adm/sw/save/PHCO_25081. If you do not wish to retain a copy of the original software, use the patch_save_files option: swinstall -x autoreboot=true -x patch_match_target=true \ -x patch_save_files=false -s /tmp/PHCO_25081.depot 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_25081.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHCO_25081.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_25081.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None