HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

Last patch updated

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

Last patch updated

Hi All,

I am using HPUX 10.20, 11.00, 11.11 and Linux (Suse 9 & 10) & (redhat 4).

I want to see the last patch updated and when it was updated for all above mentioned OS.

17 REPLIES
Ganesan R
Honored Contributor
Solution

Re: Last patch updated

Hi,

Use the below command to list the installed bundle..

#swlist -l bundle

Then use this command to find the date the bundle was installed..

#swlist -l bundle -a date

Example:

#swlist -l bundle -a date HWEnable11i
Best wishes,

Ganesh.
James R. Ferguson
Acclaimed Contributor

Re: Last patch updated

Hi Senthil:

For current HP-UX releases (at least; and 10.20 and 11.0 are long out of support) you could do:

# swlist -l product -a install_date|sort -knr2

...to list patches and products with their installation timestamp.

As for Linux distributions, you should ask that in a separate thread in the Linux family, in my opinion.

Regards!

...JRF...
Pete Randall
Outstanding Contributor

Re: Last patch updated

Or even something as simple as

grep PH /var/adm/sw/swagent.log |tail


Pete

Pete
Aryan
Advisor

Re: Last patch updated

hi,

If you are using HP-UX 10.x, you can
use following command.
swlist -l product PH*
On HP-UX 11.00, use:
swlist -l patch '*.*,c=patch'
or
swlist -l patch

For latest/last patch u can edit these with above replies....

Aaryan
Bob E Campbell
Honored Contributor

Re: Last patch updated

Not a lot of help for the 10.20 box, but if you install SWA onto one of the 11.11 boxes (https://www.hp.com/go/swa) you can analyze all of the 11.00 and 11.11 systems to see what updates they need. The basic report is generated using:

# swa report

The SWA page above will include links towards documentation. I would recommend building depots for all 11.00 and 11.11 patches. The basic form of that command is:

# swa get -t /your/depot/here

Sharma Sanjeev
Respected Contributor

Re: Last patch updated

Hi Senthil

Swlist is your friend here :-)

swlist -l product -a install_date

regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Steven E. Protter
Exalted Contributor

Re: Last patch updated

Shalom,

Linux does not list patches like HP, with the PH designation.

rpm -qa

Lists all installed software on the Linux distributions you list. My Suse experience is very, very limited.

What happens with Linux is:

You have

krb5-workstation-1.6.1-31.el5_3.3

installed.

You do a yum -y update (RHEL) and after a newer, more updated package is installed.

To get full benefit you need to reboot but that will apparently change with the next major kernel release.

This system has been updated but not booted, note the kernel version:
Linux bersheva.investmenttool.com 2.6.18-128.1.10.el5.centos.plusxen #1 SMP Mon May 11 08:30:44 EDT 2009 i686 i686 i386 GNU/Linux

This system has been updated and booted.
[root@modiin ~]# uname -a
Linux modiin.investmenttool.com 2.6.18-128.1.16.el5xen #1 SMP Tue Jun 30 07:20:15 EDT 2009 i686 i686 i386 GNU/Linux


The newer kernel includes patches. For RHEL, you need to refer to their website or the documentation included as a file with the kernel to get the details.

SEP

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Nido
Trusted Contributor

Re: Last patch updated

Hello Senthil,

For SuSE to check the Service Pack level:

cat /etc/SuSE-release
SPident -vv

Cheers!!
" Let Villagers Be Happy!! "
senthil_kumar_1
Super Advisor

Re: Last patch updated

Hi All,

I have executed following command to view the patch installed dates.

The command used:

#swlist -l product -a install_date|sort -knr2


1)HPUX 11.11:

PHKL_26002 200502041324.54
PHKL_26074 200502041324.54
PHKL_26104 200502041324.54
PHKL_26183 200502041324.54
PHKL_26705 200502041324.54
PHKL_26719 200502041324.54
PHKL_26755 200502041324.54


2)HPUX 11.00:

PHSS_26976 200209221049.38
PHSS_25714 200209221049.37
PHSS_25718 200209221049.37
PHSS_25758 200209221049.37
PHSS_25787 200209221049.37
PHSS_25879 200209221049.37
PHSS_25982 200209221049.37


3)HPUX 10.20:

PHKL_17651 200508010032.20
PHKL_17655 200508010032.20
PHKL_17657 200508010032.20
PHKL_17658 200508010032.20
PHKL_17837 200508010032.20
PHKL_17644 200508010032.19
PHKL_17645 200508010032.19



Pls explain me the second column.

Ex: 200508010032.19.




OldSchool
Honored Contributor

Re: Last patch updated

gee...given that you asked for the "install date", that's what I'd expect it to be...

and it appears to be YYYYMMDDHHMM.SS, I'd expect thats exactly what you got.

once again, please read the manuals.
Sunny123_1
Esteemed Contributor

Re: Last patch updated

Hi Senthil

It is installed date of your patch in YYYYMMDD format.


Regards
Sunny
senthil_kumar_1
Super Advisor

Re: Last patch updated

Hi All,


I have used following commands to get some other information about patch update.


HPUX 11.00

1.1) root@lgapps:/root/scripts > swlist -l bundle

BUNDLE B.2008.10.14 Patch Bundle

1.2)root@lgapps:/root/scripts > swlist -l bundle -a date BUNDLE
# Initializing...
# Contacting target "ad002223"...
#
# Target: ad002223:/
#

BUNDLE Sun Oct 19 11:05:27 CDT 2008


2.1)#swlist -l product -a install_date|sort -knr2

PHSS_26976 200209221049.38
PHSS_25714 200209221049.37
PHSS_25718 200209221049.37
PHSS_25758 200209221049.37
PHSS_25787 200209221049.37
PHSS_25879 200209221049.37
PHSS_25982 200209221049.37


What is the difference between the output of above commands.

The install year of BUNDLE is 2008, but for PHSS* is 2002.

So pls explain me the difference between above commands.


Sunny123_1
Esteemed Contributor

Re: Last patch updated

Hi Senthil

Did you check swinstall.log ???
If so what it gives for above patch???

Regards
Sunny
James R. Ferguson
Acclaimed Contributor

Re: Last patch updated

Hi Senthil:

> What is the difference between the output of above commands. The install year of BUNDLE is 2008, but for PHSS* is 2002.

So? It would appear the the PHSS_* patches you listed were installed in 2002. Standard patch bundles are cumulative and will contain not only new patches and newer versions of previous patches, but patches that may be several years old and have not changed. By default, 'swinstall' will not re-install patches from a bundle if the patches are already installed. The PHSS_* patches in question could have been installed by an earlier bundle of some kind. Clearly, from their timestamps, they were installed together in a single session.

Regards!

...JRF...
senthil_kumar_1
Super Advisor

Re: Last patch updated

Hi All,

Please explain me about followin patches.

1)PHKL
2)PHCO
3)PHNE
4)PHSS

Re: Last patch updated

I believe these are:
1)PHKL kernel
2)PHCO commands/libs
3)PHNE networking
4)PHSS subsystems
Bob E Campbell
Honored Contributor

Re: Last patch updated

That list is correct, but remember that patches can have multiple filesets. A PHKL patch might include commands or libraries. Look to the 1 line descriptions or the lists of filesets and ancestors to learn more about a patch.

You can view patch details at the ITRC patch database (http://itrc.hp.com) or using swlist:

# swlist -l product -a readme PHKL_12345

Plenty of text, so consider sending that through a pager.