Patch Name: PHCO_15206 Patch Description: s700_800 10.20 Software Distributor cumulative patch Creation Date: 98/11/23 Post Date: 99/02/25 Hardware Platforms - OS Releases: s700: 10.20 s800: 10.20 Products: N/A Filesets: SW-DIST.RUPDATE SW-DIST.SD-AGENT SW-DIST.SD-CMDS SW-DIST.SD-ENG-A-MAN Automatic Reboot?: No Status: General Superseded Critical: No Path Name: /hp-ux_patches/s700_800/10.X/PHCO_15206 Symptoms: PHCO_15206: This SD patch fixes the following symptoms. These numbers correspond to Defect Description numbers: 1) SR1653232702, FSDdt21797: Swinstall can hang when .codewords is incorrect, leaving swagent in an infinite loop. 2) SR5003408831, FSDdt22879: PHSS_11482 broke SD-UX commands for users with high (> 60000) UIDs. 3) no SR, FSDdt22711: swverify ACL behavior did not match original product design. 4) no SR, FSDdt22313, FSDdt22752: Data corruption could result from unexpected input, causing swagentd to fail. 5) no SR, FSDdt22610: Files written to depots by swpackage could have invalid attributes. 6) SR5003378844, SR1653256404, FSDdt21069, FSDdt22674, FSDdt22693: RPC data could sometimes become corrupted by swagentd. 7) no SR, FSDdt22870 Patch scripts that modified attributes of files newly delivered by the patch could fail to be installed, with an Internal Error message in SD Target Agent logfile /var/adm/sw/swagent.log. 8) SR4701385153, FSDdt22626 When installing from a remote source depot and certain rare network problems occur, swinstall may fail with an Internal Error message in the SD Target Agent log /var/adm/sw/swagent.log. 9) SR4701351148 An internal error occured when unselecting PC agents using SD-OV. PHSS_11482: This SD patch fixes the following symptoms. These numbers correspond to Defect Description numbers: 1. Swinstall can hang when Glance is running. 2. Scheduled jobs can fail due to inability to save session files such as swinstall.last. 3. Swacl fails to see depot products that contain empty subproducts. 4. Disk space analysis can be wrong when installing patches. 5. The fpkg2swpkg program has incorrect ownership and permissions. 6. Swinstall can fail to make RPC connections when a hostname is longer than 8 characters. 7. Swjob fails to see any jobs on a system when hostname contains a dash character. Defect Description: PHCO_15206: This shows details of problems fixed by this patch: 1) SR1653232702, FSDdt21797: The swagent process hangs in an infinite loop when the third field of /var/adm/sw/.codewords is incorrect. For example, this occurs when .codewords is manually edited and the text "CUST-ID" is entered instead of "CUST_ID". This patch fixes the swagent program to avoid the infinite loop. 2) SR5003408831, FSDdt22879: PHSS_11482 was incorrectly linked. 3) no SR, FSDdt22711: Code determining swverify ACL behavior did not match original design documentation. 4) no SR, FSDdt22313, FSDdt22752: Some malformed input data could be misinterpreted, causing data corruption. 5) no SR, FSDdt22610: swpackage did not perform adequate checking of file attributes. 6) SR5003378844, SR1653256404, FSDdt21069, FSDdt22674, FSDdt22693: RPC data was sometimes misinterpreted by swagentd, causing data corruption and incorrect behavior. 7) no SR, FSDdt22870 This patch fixes the swagent program to avoid failure when a patch script modifies attributes of a file newly delivered by the patch. 8) SR4701385153, FSDdt22626 This patch fixes the swagent program to retry file writes that fail due to certain rare network problems, rather than fail with internal error. 9) SR4701351148 Code implementing a GUI field did not match the field's definition, resulting in an internal error. PHSS_11482: This shows details of problems fixed by this patch: 1. A swinstall target agent could hang when swinstall Interactive User Interface was used and TCP protocol was used. This was more likely when Glance was running at the same time swinstall GUI was being used. This patch fixes swagent to avoid the hang. 2. Swagentd did not reset certain environmental variables when starting jobs that were scheduled by non-superuser. This patch corrects the behavior. 3. Swacl could not operate on any product that contained an empty subproduct. This patch fixes swacl to see all products. 4. Scripts in HP-UX patch filesets reserved disk space using units different than used internally in SD. This patch modifies SD to correctly handle disk space numbers supplied by scripts in HP-UX patches. 5. This patch fixes ownership and permissions of the fpkg2swpkg program. 6. SD commands sometimes used the uname function to determine local hostname, truncating the SD copy of local hostname to 8 characters. This patch fixes SD commands to always use the gethostname function, so full length hostname is always used. 7. On a system with hostname containing a dash character, jobs were stored incorrectly. The swjob command can not see those stored jobs. This patch fixes SD commands to store jobs correctly when hostname contains a dash character. Swjob will see all jobs created after this patch. SR: 1653189134 1653186429 1653232702 1653256404 4701351148 4701385153 5003378844 5003408831 Patch Files: /usr/lbin/sw/control_utils /usr/lbin/swagent /usr/lib/nls/msg/C/swpackage.cat /usr/lib/nls/msg/C/swutil.cat /usr/lib/sw/sys.defaults /usr/lib/sw/ui/C/smc_jobopts.ui /usr/lib/sw/ui/C/smc_targets.ui /usr/sbin/fpkg2swpkg /usr/sbin/pushAgent /usr/sbin/sd /usr/sbin/swacl /usr/sbin/swagentd /usr/sbin/swconfig /usr/sbin/swcopy /usr/sbin/swdepot /usr/sbin/swinstall /usr/sbin/swjob /usr/sbin/swlist /usr/sbin/swmodify /usr/sbin/swpackage /usr/sbin/swreg /usr/sbin/swremove /usr/sbin/swverify /usr/share/man/man1m.Z/pushAgent.1m what(1) Output: /usr/lbin/sw/control_utils: $Revision: 5.15 $ /usr/lbin/swagent: $Revision: 5.1, SD-OV/A.01.02.12, SD-UX/B.10.20.00.1 2, AGENT, PHCO_15206, Optimized, Built Dec 1 5 1998 14:08:51$ ttadjdsa.c $Date: 96/03/12 15:46:32 $ $Revision: 5.4 $ /usr/lib/nls/msg/C/swpackage.cat: none. /usr/lib/nls/msg/C/swutil.cat: none. /usr/lib/sw/sys.defaults: none. /usr/lib/sw/ui/C/smc_jobopts.ui: none. /usr/lib/sw/ui/C/smc_targets.ui: none. /usr/sbin/fpkg2swpkg: none. /usr/sbin/pushAgent: none. /usr/sbin/sd: $Revision: 5.2, SD-OV/A.01.02.12, SD-UX/B.10.20.00.1 2, CONTROLLER, PHCO_15206, Optimized, Built Dec 15 1998 14:09:25$ ttadjdsa.c $Date: 96/03/12 15:46:32 $ $Revision: 5.4 $ /usr/sbin/swacl: $Revision: 5.2, SD-OV/A.01.02.12, SD-UX/B.10.20.00.1 2, CONTROLLER, PHCO_15206, Optimized, Built Dec 15 1998 14:09:25$ ttadjdsa.c $Date: 96/03/12 15:46:32 $ $Revision: 5.4 $ /usr/sbin/swagentd: $Revision: 5.1, SD-OV/A.01.02.12, SD-UX/B.10.20.00.1 2, DAEMON, PHCO_15206, Optimized, Built Dec 15 1998 14:10:05$ /usr/sbin/swconfig: $Revision: 5.2, SD-OV/A.01.02.12, SD-UX/B.10.20.00.1 2, CONTROLLER, PHCO_15206, Optimized, Built Dec 15 1998 14:09:25$ ttadjdsa.c $Date: 96/03/12 15:46:32 $ $Revision: 5.4 $ /usr/sbin/swcopy: $Revision: 5.2, SD-OV/A.01.02.12, SD-UX/B.10.20.00.1 2, CONTROLLER, PHCO_15206, Optimized, Built Dec 15 1998 14:09:25$ ttadjdsa.c $Date: 96/03/12 15:46:32 $ $Revision: 5.4 $ /usr/sbin/swdepot: $Revision: 5.2, SD-OV/A.01.02.12, SD-UX/B.10.20.00.1 2, CONTROLLER, PHCO_15206, Optimized, Built Dec 15 1998 14:09:25$ ttadjdsa.c $Date: 96/03/12 15:46:32 $ $Revision: 5.4 $ /usr/sbin/swinstall: $Revision: 5.2, SD-OV/A.01.02.12, SD-UX/B.10.20.00.1 2, CONTROLLER, PHCO_15206, Optimized, Built Dec 15 1998 14:09:25$ ttadjdsa.c $Date: 96/03/12 15:46:32 $ $Revision: 5.4 $ /usr/sbin/swjob: $Revision: 5.2, SD-OV/A.01.02.12, SD-UX/B.10.20.00.1 2, CONTROLLER, PHCO_15206, Optimized, Built Dec 15 1998 14:09:25$ ttadjdsa.c $Date: 96/03/12 15:46:32 $ $Revision: 5.4 $ /usr/sbin/swlist: $Revision: 5.2, SD-OV/A.01.02.12, SD-UX/B.10.20.00.1 2, CONTROLLER, PHCO_15206, Optimized, Built Dec 15 1998 14:09:25$ ttadjdsa.c $Date: 96/03/12 15:46:32 $ $Revision: 5.4 $ /usr/sbin/swmodify: $Revision: 5.2, SD-OV/A.01.02.12, SD-UX/B.10.20.00.1 2, PACKAGER, PHCO_15206, Optimized, Built No v 24 1998 08:49:52$ ttadjdsa.c $Date: 96/03/12 15:46:32 $ $Revision: 5.4 $ /usr/sbin/swpackage: $Revision: 5.2, SD-OV/A.01.02.12, SD-UX/B.10.20.00.1 2, PACKAGER, PHCO_15206, Optimized, Built No v 24 1998 08:49:52$ ttadjdsa.c $Date: 96/03/12 15:46:32 $ $Revision: 5.4 $ /usr/sbin/swreg: $Revision: 5.2, SD-OV/A.01.02.12, SD-UX/B.10.20.00.1 2, CONTROLLER, PHCO_15206, Optimized, Built Dec 15 1998 14:09:25$ ttadjdsa.c $Date: 96/03/12 15:46:32 $ $Revision: 5.4 $ /usr/sbin/swremove: $Revision: 5.2, SD-OV/A.01.02.12, SD-UX/B.10.20.00.1 2, CONTROLLER, PHCO_15206, Optimized, Built Dec 15 1998 14:09:25$ ttadjdsa.c $Date: 96/03/12 15:46:32 $ $Revision: 5.4 $ /usr/sbin/swverify: $Revision: 5.2, SD-OV/A.01.02.12, SD-UX/B.10.20.00.1 2, CONTROLLER, PHCO_15206, Optimized, Built Dec 15 1998 14:09:25$ ttadjdsa.c $Date: 96/03/12 15:46:32 $ $Revision: 5.4 $ /usr/share/man/man1m.Z/pushAgent.1m: none. cksum(1) Output: 1872983272 47164 /usr/lbin/sw/control_utils 3416335629 954368 /usr/lbin/swagent 521435351 27364 /usr/lib/nls/msg/C/swpackage.cat 3050554707 64944 /usr/lib/nls/msg/C/swutil.cat 1201548098 99079 /usr/lib/sw/sys.defaults 4160945067 73233 /usr/lib/sw/ui/C/smc_jobopts.ui 859042836 11655 /usr/lib/sw/ui/C/smc_targets.ui 2004123118 192672 /usr/sbin/fpkg2swpkg 2737907432 110869 /usr/sbin/pushAgent 4123899335 1609728 /usr/sbin/sd 4123899335 1609728 /usr/sbin/swacl 2538232169 446464 /usr/sbin/swagentd 4123899335 1609728 /usr/sbin/swconfig 4123899335 1609728 /usr/sbin/swcopy 4123899335 1609728 /usr/sbin/swdepot 4123899335 1609728 /usr/sbin/swinstall 4123899335 1609728 /usr/sbin/swjob 4123899335 1609728 /usr/sbin/swlist 3431885764 770048 /usr/sbin/swmodify 3431885764 770048 /usr/sbin/swpackage 4123899335 1609728 /usr/sbin/swreg 4123899335 1609728 /usr/sbin/swremove 4123899335 1609728 /usr/sbin/swverify 2678624929 5026 /usr/share/man/man1m.Z/pushAgent.1m Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHSS_11482 Equivalent Patches: None Patch Package Size: 4400 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_15206 5a. For a standalone system, run swinstall to install the patch: swinstall -x autoreboot=true -x match_target=true \ -s /tmp/PHCO_15206.depot 5b. For a homogeneous NFS Diskless cluster run swcluster on the server to install the patch on the server and the clients: swcluster -i -b This will invoke swcluster in the interactive mode and force all clients to be shut down. WARNING: All cluster clients must be shut down prior to the patch installation. Installing the patch while the clients are booted is unsupported and can lead to serious problems. The swcluster command will invoke an swinstall session in which you must specify: alternate root path - default is /export/shared_root/OS_700 source depot path - /tmp/PHCO_15206.depot To complete the installation, select the patch by choosing "Actions -> Match What Target Has" and then "Actions -> Install" from the Menubar. 5c. For a heterogeneous NFS Diskless cluster: - run swinstall on the server as in step 5a to install the patch on the cluster server. - run swcluster on the server as in step 5b to install the patch on the cluster clients. By default swinstall will archive the original software in /var/adm/sw/patch/PHCO_15206. If you do not wish to retain a copy of the original software, you can create an empty file named /var/adm/sw/patch/PATCH_NOSAVE. Warning: If this file exists when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature. It is recommended that you move the PHCO_15206.text file to /var/adm/sw/patch for future reference. To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_15206.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: This patch may be applied to both the standard Software Distributor (SD-UX) shipped with HP-UX 10.20 and the OpenView Software Distributor (SD-OV) revision A.01.02.