1837920 Members
4399 Online
110124 Solutions
New Discussion

hpux command

 
SOLVED
Go to solution
Shivkumar
Super Advisor

hpux command

What is the command to verify the installed patches on the hpux ?
13 REPLIES 13
Bharat Katkar
Honored Contributor

Re: hpux command

Hi shiv,
You can verify your installed software/patches using:
# swverify

For detail, see "man swverify"
Hope that helps.
Regards,

You need to know a lot to actually know how little you know
Torsten.
Acclaimed Contributor

Re: hpux command

swverify!

But you should also have a look in the logs, if you get errors/warnings during installation!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
James R. Ferguson
Acclaimed Contributor

Re: hpux command

Hi:

If you want to review the state of your patches, I suggest simply running:

# show_patches

The '/usr/contrib/bin/show_patches' utility provides a nicely formatted "front-end" to 'swlist" for showing the state of patches (superseded and active). See the man pages for more information.

If you truly wnat to "verify" all installed patches, you can do:

# /usr/sbin/swverify \*

Regards!

...JRF...
Bharat Katkar
Honored Contributor

Re: hpux command

# show_patches

This will only work if you have IgniteUX installed on your Systems.

If you would like to view pacthes details then you can also use:

# swlist -l patch

(In case IgniteUX is not available)

Regards,
You need to know a lot to actually know how little you know
Denver Osborn
Honored Contributor
Solution

Re: hpux command

also following patch install, you can use swlist to "verify" patches were installed

swlist -l fileset -a state |grep -E 'installed|corrupt|transient'

any patch in an installed state can be configured using 'swconfig \*', trasient or corrupt would require some troubleshooting.

-denver
HGN
Honored Contributor

Re: hpux command

Hi

You can use show_patches or slist -l fileset|grep -i P*

Rgds

HGN
James R. Ferguson
Acclaimed Contributor

Re: hpux command

Hi (again):

I should add, that in lieu of 'swverify' you can use a very elegant front-end:

# check_patches

See the manpages for more information.

Please note that both 'show_patches' and 'check_patches' are available with the "patch_tools" patch (PHCO_27780 for 11.11). Versions exist for other 11x too, if you need them.

Regards!

...JRF...
Arunvijai_4
Honored Contributor

Re: hpux command

# swlist -l patch will list all installed patches

# swverify will verify the patches.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Yogeeraj_1
Honored Contributor

Re: hpux command

hi,
below a list of other utilities that we commonly use:

# /usr/contrib/bin/show_patches -s

The show_patches script with -s option will list all the superseded patches in the system.

You can also query two attributes of patches that tell you whether the patch superseds or superseded by any other patch.

swlist -a supersedes

The above swlist will list, on the second column, the patches superseded by the patch
given in the command line

swlist -a superseded_by

The above swlist will list, on the second column, the patches that superseded the patch given in the command line.


hope this helps too!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Arunvijai_4
Honored Contributor

Re: hpux command

# /usr/contrib/bin/show_patches is available only on 11.11 and its not in 11.23

My 11.11 shows,

# swlist -l file |grep "show_patches"
OS-Core.CMDS-AUX: /usr/contrib/bin/show_patches
OS-Core.CMDS-AUX: /usr/contrib/man/man1/show_patches.1
PHCO_27780.CMDS-AUX: /usr/contrib/bin/show_patches
PHCO_27780.CMDS-AUX: /usr/contrib/man/man1/show_patches.1

whereas in 11.23, It shows nothing,
# swlist -l file |grep "show_patches"
#

You can use #swlist -l patch and #swverify

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Orhan Biyiklioglu
Respected Contributor

Re: hpux command

swlist -l product *,c=patch

should also work.


swlist -l file | grep show_patches output on our 11.23 systems:


# swlist -l file | grep show_patches
OS-Core.CMDS-AUX: /usr/contrib/bin/show_patches
OS-Core.CMDS-AUX: /usr/contrib/man/man1.Z/show_patches.1
PHCO_32220.CMDS-AUX: /usr/contrib/bin/show_patches
PHCO_32220.CMDS-AUX: /usr/contrib/man/man1.Z/show_patches.1

hth
Rashid Hamid
Regular Advisor

Re: hpux command

1) check_patches

2) swlist -l fileset -a state
I'm Parit Madirono/Parit Betak Boyz
Ranjith_5
Honored Contributor

Re: hpux command

Hi Shiva,

Best and easy remembering command are:

#check_patches.

This will show the patch integrity.This command will also generate a verify report in /tmp/check_patches.report for your reference.

example:
------------------

root@GANGA#/>check_patches
Obtaining information on installed patches
Checking installed version of /usr/sbin/swconfig
Checking for invalid patches
Checking object module checksums for active patch fileset 726 of 726
Checking patch filesets for active patch 371 of 371
Checking state for patch fileset 1306 of 1306
Checking patch_state for patch fileset 1306 of 1306
Running swverify on all patch filesets, this may take several minutes
RESULT: No problems found, review /tmp/check_patches.report for details.



for viewing the installed patches you can use

#show_patches

Example:
-------------
root@GANGA#-/>show_patches|more

Active Patch
Patch Description
---------- -----------------------------------------
PHCO_22958 set_parms
PHCO_23263 HP AutoRAID Manager cumulative patch
PHCO_23370 lint(1) library patch
PHCO_23463 sysdef(1) patch
PHCO_23492 Kernsymtab Patch
PHCO_23702 cumulative header file patch for prot.h
PHCO_23909 cu(1) patch
PHCO_23920 sfd(1M) patch
PHCO_24198 ioscan(1M) patch
PHCO_24396 /etc/default/tz patch
PHCO_24440 cumulative cpio(1) patch
PHCO_24456 st(1m) shared tape administration
PHCO_24477 sar(1m) patch
PHCO_24590 df(1m) cumulative patch


<-------ONLY FEW LINES GIVEN FOR EXAMPLE-------------->


The following command will show the patch configuration State.

#swlist -l patch -a state

Example:-

root-/>swlist -l patch -a state|more
# Initializing...
# Contacting target "GANGA"...
#
# Target: GANGA:/
#

# Accounting
# Accounting.ACCOUNTNG configured
PHCO_27009.ACCOUNTNG configured
# Accounting.ACCT-ENG-A-MAN configured
# Accounting.ACCT-JPN-E-MAN configured
# Accounting.ACCT-JPN-S-MAN configured
# ApacheStrong
# ApacheStrong.APACHE-STRONG configured
# ApacheStrong.TOMCAT configured
# Asian-Core
# Asian-Core.ASX-JPN-E-MAN configured
# Asian-Core.ASX-JPN-MAN configured
# Asian-Core.ASX-JPN-NOTES configured
# Asian-Core.ASX-JPN-S-MAN configured
# Asian-Core.ASX-KOR-NOTES configured
# Asian-Core.ASX-MAN configured
# Asian-Core.ASX-SCH-NOTES


Regards,
Syam