Friday, December 18, 2009

Software & Patch Management in HP-UX - Part 2

Points to remember :
1. Patch names always start with the characters PH.
2. Next 2 characters show the patch type.
   Here are the types ...
   a. Command Patches - CO
   b. Kernel Patches       - KL
   c. Network Patches    - NE
   d. Subsystem Patches - SS
3. After this, there is an underscore and a 4 or 5 digit patch number
4. You have to reboot the system after the kernel patch installation.

Few Examples,
PHSS_14526
PHCO_16253
PHKL_16542

How to download the patches ?

1. You can download the patches from the the below ftp server
   ftp://us-ffs.external.hp.com/hp-ux_patches

Or you can order a patch cd-rom from HP

2. HP-UX patches are distributed as shar files. So after thhe download, you have to use 'sh' command to unshar it to get 2 files with extensions .text and .depot.

3. The .text file is the patch description file which contains
   a. Patch name, description
   b. Date of creation and general availalibity
   c. Hardware Platforms
   d. Automatic Reboot : To findout whether the system will be reooted after the patch installation
   e. Status : Shows whether it is a general or special release
   f. a lot more

4. The .depot file the actual patch file.
How to list the applied patches ?

To show all the applied patches :

#swlist -l patch
 
To show all categories of available patches that includes category objects in their definition :

# swlist -l category

How to copy the patches to the software depot ?

To copy the patches to the software depot :
# swcopy -a PHKL_14235.depot PHKL_14235 @ /var/spool/sw

How to install the patches ?

You can install patches using swinstall command using the same way like we isntall the regular softwares.

How to remove the patches ?

To remove the applied patches :
# swremove -d PHCO_45879

To remove the patches located in a software depot in a remote machine :
# swremove -d PHKL_45879 @ server1:/depots/

Software Depot Management :

To register a software depot :
# swreg -l depot /depot/hp-ux11i-v3/

To unregister a software depot :
# swreg -u -l depot /depot/hp-ux11i-v3/

No comments:

Post a Comment