Operating System - HP-UX
1833582 Members
3854 Online
110061 Solutions
New Discussion

looking for a script to check patches

 
SOLVED
Go to solution
Danny Ramos_1
Occasional Advisor

looking for a script to check patches

hi guys,

how can i check for the patches installed on my system? would there be a script?

thanks,

danny
5 REPLIES 5
Michael Tully
Honored Contributor
Solution

Re: looking for a script to check patches

Hi Danny,

There a few you can use, but they all revolve around the 'swlist' command. There is a large man page for it as well. Here are a couple of examples.

# swlist -l product
# swlist -a patch
# swlist -l patch

# swlist -l patch -a patch_state \*.\*,c=patch

HTH
Michael
Anyone for a Mutiny ?
John Poff
Honored Contributor

Re: looking for a script to check patches

Hi Danny,

One other command to look at is the 'check_patches' command, but only if you are running 11.x. This command will check for patches that have been superseded and can be removed. It is a big help for managing the size of your /var/adm/sw directory, as the saved patches will eat up lots of room.

JP
James Murtagh
Honored Contributor

Re: looking for a script to check patches

Hi Danny,

From 11.00 you can use a script named show_patches, normally located in /usr/contrib/bin. If you don't have it, these are the patches (no reboot required) :

11.00 PHCO_24347 (3*) or PHCO_27779 (latest 1*)

11i PHCO_24630 (3*) or PHCO_27780 (latest 1*)

It can various levels of patches or show active or superceded patches, i.e.

# ./show_patches -a

Active Patch
Patch Description
---------- -----------------------------------------
PHCO_24630 HP-UX Patch Tools
Regards,

James.
Yogeeraj_1
Honored Contributor

Re: looking for a script to check patches

hi,

you can also query individual patch existances ( whether superseded or superseding)

e.g.
swlist -l patch -a superseded_by PHSS_23467
^^
The superseded patch

swlist -l patch -a supersedes PHSS_25951
^^
The patch that has been superseded

Hope this helps!

Regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Telia BackOffice
Valued Contributor

Re: looking for a script to check patches

To cleanup the system after patching use :
# cleanup -c 1

BR,
Jannik