Patch Name: PHCO_29689 Patch Description: s700_800 11.11 IPC commands cumulative patch Creation Date: 03/10/21 Post Date: 03/11/03 Hardware Platforms - OS Releases: s700: 11.11 s800: 11.11 Products: N/A Filesets: OS-Core.ADMN-ENG-A-MAN,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP OS-Core.CAUX-ENG-A-MAN,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP OS-Core.CMDS-AUX,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP OS-Core.SYS-ADMIN,fr=B.11.11,fa=HP-UX_B.11.11_32,v=HP OS-Core.SYS-ADMIN,fr=B.11.11,fa=HP-UX_B.11.11_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_29689 Symptoms: PHCO_29689: ( SR:1653227413 CR:JAGab25042 ) Duplicate ( SR:8606324166 CR:JAGae86631 ) In the ipcs(1) output, if the ID field is longer than 7 characters the T and ID columns run together. Also if the SEGSZ field is longer than 6 characters the output to the right of SEGSZ field is scrambled. PHCO_25008: ( SR:8606214710 CR:JAGad83902 ) pipcs(1) prints the error message "No such file or directory" when no POSIX IPCs facilities exist in the system. PHCO_23376: ( SR:8606169741 CR:JAGad39016 ) This is an enhancement to supply two new commands pipcs(1) and pipcrm(1) to display and remove existing POSIX message queues and POSIX named semaphores. Defect Description: PHCO_29689: ( SR:1653227413 CR:JAGab25042 ) Duplicate ( SR:8606324166 CR:JAGae86631 ) The value of ID field can be longer than 7 digits, but ipcs(1) output assumes ID field length to be only up to 7 digits. If the value of ID is greater than 7 digits the T and ID fields run together without a space. For Example: $ipcs -q IPC status from /dev/kmem as of Sun May 5 01:30:10 2002 T ID KEY MODE OWNER GROUP Message Queues: q 0 0x3c0c172b -Rrw--w--w- root root q 1 0x3e0c172b --rw-r--r-- root root q 2 0x00000000 --rw-r--r-- vts ssgrp q10050003 0x000181cd --rw-rw-rw- vts ssgrp Also if the value printed under SEGSZ header is longer than 6 digits it would cause other fields in that row to shift right thus scrambling the output of ipcs(1). For Example: (To fit the output of ipcs -a -mb with in 60 characters the columns T, ID, KEY, MODE, OWNER, GROUP, CREATOR, CGROUP, NATTCH are removed from the following example output) $ipcs -a -mb IPC status from /dev/kmem as of Fri Oct 10 17:56:56 2003 . SEGSZ CPID LPID ATIME DTIME CTIME . . 348 492 492 11:45:31 11:45:31 11:45:24 . 61760 492 492 11:45:27 11:45:31 11:45:24 . 8192 492 504 11:45:27 11:45:24 11:45:24 . 512 1274 1274 11:46:50 no-entry 11:46:50 . 1048576 15346 0 no-entry no-entry 16:16:23 . 999999999 15690 0 no-entry no-entry 16:46:15 Resolution: Now the ID field is shifted right by 3 spaces and code is modified to print values up to 10 digits under ID field. Also the SEGSZ field is right shifted by 4 spaces with right adjustment of field and code is modified to print up to 10 digits under SEGSZ field. PHCO_25008: ( SR:8606214710 CR:JAGad83902 ) pipcs(1) internally uses pstat(2) call to get the POSIX IPCs informations. When no POSIX IPCs facilities exist in the system, pstat returns -1 and sets errno to ENOENT. pipcs(1) prints the message "No such file or directory". Resolution: Now, pipcs(1) code is modified to handle the pstat(2) error message when errno is ENOENT. If errno is ENOENT then it will print the message "No existing POSIX message queues" for POSIX message queues and "No existing named POSIX semaphores" for POSIX semaphores. PHCO_23376: ( SR:8606169741 CR:JAGad39016 ) Commands ipcs(1) and ipcrm(1) were not having the facility to display and remove POSIX message queue and named semaphore. Resolution: Now, we are providing two new commands pipcs(1) and pipcrm(1) to display and remove the POSIX message queue and named semaphore respectively. Enhancement: No (superseded patches contained enhancements) PHCO_29689: Enhancements were delivered in a patch this one has superseded. Please review the Defect Description text for more information. SR: 1653227413 8606169741 8606214710 8606324166 Patch Files: OS-Core.ADMN-ENG-A-MAN,fr=B.11.11,fa=HP-UX_B.11.11_32/64, v=HP: /usr/share/man/man1.Z/pipcrm.1 OS-Core.CAUX-ENG-A-MAN,fr=B.11.11,fa=HP-UX_B.11.11_32/64, v=HP: /usr/share/man/man1.Z/pipcs.1 OS-Core.CMDS-AUX,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP: /usr/bin/ipcs /usr/bin/pipcs OS-Core.SYS-ADMIN,fr=B.11.11,fa=HP-UX_B.11.11_32,v=HP: /usr/bin/ipcrm /usr/bin/pipcrm OS-Core.SYS-ADMIN,fr=B.11.11,fa=HP-UX_B.11.11_64,v=HP: /usr/bin/ipcrm /usr/bin/pipcrm what(1) Output: OS-Core.ADMN-ENG-A-MAN,fr=B.11.11,fa=HP-UX_B.11.11_32/64, v=HP: /usr/share/man/man1.Z/pipcrm.1: None OS-Core.CAUX-ENG-A-MAN,fr=B.11.11,fa=HP-UX_B.11.11_32/64, v=HP: /usr/share/man/man1.Z/pipcs.1: None OS-Core.CMDS-AUX,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP: /usr/bin/ipcs: ipcs.c $Date: 2003/10/10 04:42:05 $Revision: r11.11/ 5 PATCH_11.11 (PHCO_29689) $Revision: @(#) ipcs R11.11_BL2003_1021_1 PATCH_11.1 1 PHCO_29689 Tue Oct 21 05:28:26 PDT 2003 $ /usr/bin/pipcs: ipcs.c $Date: 2003/10/10 04:42:05 $Revision: r11.11/ 5 PATCH_11.11 (PHCO_29689) $Revision: @(#) pipcs R11.11_BL2003_1021_1 PATCH_11. 11 PHCO_29689 Tue Oct 21 05:28:23 PDT 2003 $ OS-Core.SYS-ADMIN,fr=B.11.11,fa=HP-UX_B.11.11_32,v=HP: /usr/bin/ipcrm: ipcrm.c $Date: 2001/09/28 06:17:24 $Revision: r11.11 /2 PATCH_11.11 (PHCO_25008) $Revision: @(#) ipcrm-pa-all R11.11_BL2003_1021_1 PA TCH_11.11 PHCO_29689 Tue Oct 21 05:28:39 PDT 2003 $ /usr/bin/pipcrm: ipcrm.c $Date: 2001/09/28 06:17:24 $Revision: r11.11 /2 PATCH_11.11 (PHCO_25008) $Revision: @(#) pipcrm-pa-all R11.11_BL2003_1021_1 P ATCH_11.11 PHCO_29689 Tue Oct 21 05:28:35 PDT 2003 $ OS-Core.SYS-ADMIN,fr=B.11.11,fa=HP-UX_B.11.11_64,v=HP: /usr/bin/ipcrm: ipcrm.c $Date: 2001/09/28 06:17:24 $Revision: r11.11 /2 PATCH_11.11 (PHCO_25008) $Revision: @(#) ipcrm-pa-all R11.11_BL2003_1021_1 PA TCH_11.11 PHCO_29689 Tue Oct 21 05:28:41 PDT 2003 $ /usr/bin/pipcrm: ipcrm.c $Date: 2001/09/28 06:17:24 $Revision: r11.11 /2 PATCH_11.11 (PHCO_25008) $Revision: @(#) pipcrm-pa-all R11.11_BL2003_1021_1 P ATCH_11.11 PHCO_29689 Tue Oct 21 05:28:37 PDT 2003 $ cksum(1) Output: OS-Core.ADMN-ENG-A-MAN,fr=B.11.11,fa=HP-UX_B.11.11_32/64, v=HP: 2441876528 1216 /usr/share/man/man1.Z/pipcrm.1 OS-Core.CAUX-ENG-A-MAN,fr=B.11.11,fa=HP-UX_B.11.11_32/64, v=HP: 4280964927 2690 /usr/share/man/man1.Z/pipcs.1 OS-Core.CMDS-AUX,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP: 909887151 24576 /usr/bin/ipcs 751544487 16384 /usr/bin/pipcs OS-Core.SYS-ADMIN,fr=B.11.11,fa=HP-UX_B.11.11_32,v=HP: 1299698655 16384 /usr/bin/ipcrm 3992347059 12288 /usr/bin/pipcrm OS-Core.SYS-ADMIN,fr=B.11.11,fa=HP-UX_B.11.11_64,v=HP: 466308859 21128 /usr/bin/ipcrm 1069254266 16752 /usr/bin/pipcrm Patch Conflicts: None Patch Dependencies: s700: 11.11: PHKL_23400 PHKL_23401 s800: 11.11: PHKL_23400 PHKL_23401 Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_25008 PHCO_23376 Equivalent Patches: None Patch Package Size: 90 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_29689 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHCO_29689.depot By default swinstall will archive the original software in /var/adm/sw/save/PHCO_29689. 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_29689.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHCO_29689.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_29689.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None