Operating System - HP-UX
1833756 Members
2433 Online
110063 Solutions
New Discussion

Patching, another question

 
SOLVED
Go to solution
Ali Imran Abbas
Regular Advisor

Patching, another question

How can I check on any hp-ux server when it was patched last time?
5 REPLIES 5
Tim Nelson
Honored Contributor
Solution

Re: Patching, another question

swlist -l product -a install_date

Steven E. Protter
Exalted Contributor

Re: Patching, another question

Shalom,

swlist -l product -a install_date | sort -rn

That should get you the dates sorted. Some further modification may be required.

Bye.

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
Ali Imran Abbas
Regular Advisor

Re: Patching, another question

What if we put patch in place of product like

swlist -l patch -a install_date | sort -rn
James R. Ferguson
Acclaimed Contributor

Re: Patching, another question

Hi:

# swlist -l product -a install_date|sort -krn2,2

...will show the installion dates of software in descending order (most recent first)

Regards!

...JRF...
Bob E Campbell
Honored Contributor

Re: Patching, another question

The swlist command is best to look at when a specific item was updated. For history of generic changes you would do best to review the logs. Start with the file /var/adm/sw/swinstall.log and if details are needed switch to /var/adm/sw/swagent.log.

A related swagent.log file also will exist at the root of any network depot and can identify who is using it.