Operating System - HP-UX
1821567 Members
3271 Online
109633 Solutions
New Discussion юеВ

how do you check the patches

 
kamal vithanage
Contributor

how do you check the patches

Hi All,
How do you check the patches which is currently installed

KML
8 REPLIES 8
Roger Baptiste
Honored Contributor

Re: how do you check the patches


#swlist -l patch
Take it easy.
Darrell Allen
Honored Contributor

Re: how do you check the patches

Hi,

On 11.0 use:
swlist -l patch \*.\*,c=patch

On earlier than 11.0 I think you'd use:
swlist -l fileset | awk '/PHCO/ || /PHSS/ || /PHNE/ || /PHKL/'

I don't think my pre-11.0 check is the best method but I'm writing it from memory. It should get you going.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Roger Baptiste
Honored Contributor

Re: how do you check the patches

For 10.20 or older:

#swlist -l product |grep PH
Take it easy.
harry d brown jr
Honored Contributor

Re: how do you check the patches

The swlist command can tell you that,. To determine what patches you need, do this:

(1) click on "IT resource center home"
http://us-support.external.hp.com/

(2) Under the "Maintenance and Support" heading click on the "more..." title

(3) Select the "customized patch bundles (custom patch manager) "

(4) Follow the instructions on how to "Collect Configurations"

It has you download a script (cpm_collect.sh) that you run on each server. The script creates a file called .fs

You ftp this to HP, following the login instructions, then you go back to the HP site and perform analysis. You can pick and choose the patches you want, or pick them all. It will bundle these patches allowing you to install all of them at once. You can also have HP notify you when a patch is recalled or when there is a replacement available for one.


(5) Then "Perform patch analysis"

(6) Then "Custom Patch Notification"


Live free or die
harry







Live Free or Die
James R. Ferguson
Acclaimed Contributor

Re: how do you check the patches

Hi:

On 11.x there are two easy ways:

# swlist -l patch

# check_patches

Regards!

...JRF...
Soren Morton
Advisor

Re: how do you check the patches

Are you asking how to check what patches are installed or how to check if the patches are installed correctly?

If you want to check if the patches are installed correctly do a 'swlist -l fileset -a state | grep -Ev "configured|^\#",. Anything that is listed needs to be fixed using swconfig or reinstall if it won't configure.

Once all filesets are configured do a 'swverify PH\*' and look through the errors in /var/adm/sw/swagent.log for missing files and other errors that are cause for concern.
No Egos, No Politics, No Games
Patrick Wallek
Honored Contributor

Re: how do you check the patches

From TKB document KBRC00001605

PROBLEM

Using swlist to list active patches on an 11.X system shows all patches on the system including superseded patches. Is it possible to list only active patches?

RESOLUTION

The patching subsystem was much improved at the 11.00 release of HP-UX. This is detailed in the /usr/share/doc/patch_pgrm.txt white paper on all 11.X systems. Because of this improvement, swlist now has to keep up with all patches on the system, including superseded ones. swlist can be used with
different options and grep strings to get the desired output.

The preferred way to get the desired list is to use the show_patches command that is available via a patch. The patch is PHCO_19550.
Once this patch is installed on the 11.X system the man page for show_patches can be accessed.

To get a listing of active patches on the system:

show_patches -a

**************

The latest patch that supersedes PHCO_19550 is PHCO_24347 for 11.0 systems.

For 11.11 (aka 11i) the patch you want is PHCO_24630
Deshpande Prashant
Honored Contributor

Re: how do you check the patches

HI
# swlist -l patch
Or
# check_patches

for 10.x systems use
#swlist -l product |grep PH

You may also use SysInfo utility to get installed patch list besides all system information on a system.

Thanks.
Prashant.
Take it as it comes.