1835268 Members
2370 Online
110078 Solutions
New Discussion

Patch listing with date

 
SOLVED
Go to solution
Bolek Mynarski
Frequent Advisor

Patch listing with date

Short of writing a script (which I will if there is no other solution), is there any way on HP-UX 10.20 and HP-UX 11.00 to list installed patches including dates?

swlist -l product PH* for 10.20 and
swlist -l patch '*.*, c=patch' for 11.00

only list patches with their descriptions. I need dates as well for auditing purposes. I hope there is some switch in 'swlist' which I missed, otherwise, I'll have to pull up my sleeves and write a script... :-)

Thanks.
It'snever too late to learn new things...
4 REPLIES 4
Cheryl Griffin
Honored Contributor
Solution

Re: Patch listing with date

# swlist -l fileset -a date |grep PH
"Downtime is a Crime."
Bolek Mynarski
Frequent Advisor

Re: Patch listing with date

Hi Cheryl,

You are LIFE SAVER! :-)
It'snever too late to learn new things...
Cheryl Griffin
Honored Contributor

Re: Patch listing with date

Thank you :^)

I also found this, according to the patch white paper in /usr/share/doc/patch_pgrm.txt:

"All patch activity is logged in the /var/adm/sw/patch/PATCH.log file. It contains a history of all patches which have been installed, superseded, and removed from the target system. Each action is logged with the time and date it was performed."

So this file may also help you.
"Downtime is a Crime."
Bolek Mynarski
Frequent Advisor

Re: Patch listing with date

I feel that I owe to the group the FINAL solution to my quest:

remsh ${i} '/usr/sbin/swlist -l product -x one_liner="name date description " | grep -e "PH.._"'

This is EXACTLY what I was looking for!

(The previous post from Cheryl pointed me into the right direction :-) ).
It'snever too late to learn new things...