2017-03-08

Patching HP-UX 11.31 server

Previously I have written an article describing on how to download patch from HPE for HP-UX server.  But one of my senior colleague told me not to use the software inventory tool and I have yet to check with him the reason behind.
Anyway, this Saturday I am going to patch a test server of one of our customer and need to put it in writing for me to be able to review and learn something out of it.

[mmond@saptst01 /var/opt/ignite/depot/patch-2017q1] # ls -l
total 5250416
-rw-r--r--   1 mmond       unixadm    180090880 Mar 22  2016 FEATURE11i_B.11.31.1603.422.depot
-rw-r--r--   1 mmond       unixadm    135157760 Mar 22  2016 HWEnable11i_B.11.31.1603.422.depot
-rw-r--r--   1 mmond       unixadm     438044 Aug  3  2016 PHCO_43870
-rw-r--r--   1 mmond       unixadm     685980 Mar 16  2015 PHCO_44168
-rw-r--r--   1 mmond       unixadm    10506440 Nov 21 18:08 PHKL_44565
-rw-r--r--   1 mmond       unixadm    10347590 Nov 29 10:35 PHNE_44547
-rw-r--r--   1 mmond       unixadm    2350909440 Mar 22  2016 QPK1131_B.11.31.1603.421a.depot
-rw-r--r--   1 mmond       unixadm       1779 Jul 29  2016 README_hp-ux
-rw-r--r--   1 mmond       unixadm       5789 Mar  3 19:30 create_depot_hpux.11.31
-rw-r--r--   1 mmond       unixadm        471 Mar  3 19:30 patch_manifest

[mmond@saptst01 /var/opt/ignite/depot/patch-2017q1]# sudo /usr/sbin/swlist -l depot

# Initializing...
# Target "saptst01" has the following depot(s):
  /var/opt/ignite/depot/patch-2016q1/depot

[mmond@saptst01 /home/mmond]# cd /var/opt/ignite/depot/patch-2017q1/
[mmond@saptst01 /var/opt/ignite/depot/patch-2017q1]# for i in PH*
> do
> sh $i
> done
x - PHCO_43870.text
x - PHCO_43870.depot [non-ascii]
x - PHCO_44168.text
x - PHCO_44168.depot [non-ascii]
x - PHKL_44565.text
x - PHKL_44565.depot [non-ascii]
x - PHNE_44547.text
x - PHNE_44547.depot [non-ascii]

[mmond@saptst01 /var/opt/ignite/depot/patch-2017q1]# ls -al
total 5281440
drwxr-xr-x   2 mmond       unixadm       8192 Mar  8 09:27 .
drwxrwxrwx   4 root       sys             96 Mar  7 09:16 ..
-rw-r--r--   1 mmond       unixadm    180090880 Mar 22  2016 FEATURE11i_B.11.31.1603.422.depot
-rw-r--r--   1 mmond       unixadm    135157760 Mar 22  2016 HWEnable11i_B.11.31.1603.422.depot
-rw-r--r--   1 mmond       unixadm     438044 Aug  3  2016 PHCO_43870
-rw-r--r--   1 mmond       unixadm     296960 Jul 28  2016 PHCO_43870.depot
-rw-r--r--   1 mmond       unixadm      16231 Aug  3  2016 PHCO_43870.text
-rw-r--r--   1 mmond       unixadm     685980 Mar 16  2015 PHCO_44168
-rw-r--r--   1 mmond       unixadm     471040 Feb  5  2015 PHCO_44168.depot
-rw-r--r--   1 mmond       unixadm      20494 Mar 16  2015 PHCO_44168.text
-rw-r--r--   1 mmond       unixadm    10506440 Nov 21 18:08 PHKL_44565
-rw-r--r--   1 mmond       unixadm    7270400 Nov 17 00:31 PHKL_44565.depot
-rw-r--r--   1 mmond       unixadm     321820 Nov 21 12:08 PHKL_44565.text
-rw-r--r--   1 mmond       unixadm    10347590 Nov 29 10:35 PHNE_44547
-rw-r--r--   1 mmond       unixadm    7239680 Nov 24 02:48 PHNE_44547.depot
-rw-r--r--   1 mmond       unixadm     205996 Nov 29 04:35 PHNE_44547.text
-rw-r--r--   1 mmond       unixadm    2350909440 Mar 22  2016 QPK1131_B.11.31.1603.421a.depot
-rw-r--r--   1 mmond       unixadm       1779 Jul 29  2016 README_hp-ux
-rw-r--r--   1 mmond       unixadm       5789 Mar  3 19:30 create_depot_hpux.11.31
-rw-r--r--   1 mmond       unixadm        471 Mar  3 19:30 patch_manifest
[mmond@saptst01 /var/opt/ignite/depot/patch-2017q1]# ls *.depot | while read dep; do
> sudo /usr/sbin/swcopy -x enforce_dependencies=false -s `pwd`/$dep \* @ /var/opt/ignite/depot/patch-2017q1/depot ;
> done
[mmond@saptst01 /var/opt/ignite/depot/patch-2017q1]# ls depot/ | wc -l
838
[mmond@saptst01 /var/opt/ignite/depot/patch-2017q1]# sudo /usr/sbin/swinstall -p -s `pwd`/depot
 
And this is the output window.


Those PH* will be installed first before anything else as they are pre-requisites, and I will update this article one's I got the details on what these patch files for.

No comments:

Post a Comment