1825783 Members
2108 Online
109687 Solutions
New Discussion

Date of OS

 
SOLVED
Go to solution
Griselda Sanchez
Frequent Advisor

Date of OS

How can I get the date of the Last installation of Operation System or update?
Thanks
5 REPLIES 5
RAC_1
Honored Contributor
Solution

Re: Date of OS

swlist -v "what_ever_is_Os_product"

Look for install date.

Anil
There is no substitute to HARDWORK
Sanjay_6
Honored Contributor

Re: Date of OS

Hi,

Try

swlist -l product -a install_date OS-Core

If the OS was installed from a ignite tape, it would show the date when OS was originally installed on the server from where the ignite tape was created.

Hope this helps.

Regds
A. Clay Stephenson
Acclaimed Contributor

Re: Date of OS

It depends upon how you define these terms. For example, an OS update might be the last time a kernel was built -- in which case ls -l /stand/vmunix is your answer or you may mean the last time an OS patch was installed. It might also mean when did you last install a patch for a command. You MAY know this (if the logs have been left intact) by examining /var/adm/sw/sw*.log (especially swinstall.log). Also, simply executing the swlist command can tell you the last Quality pack (or equivalent) that was installed.
If it ain't broke, I can fix that.
Geoff Wild
Honored Contributor

Re: Date of OS

Try:
swlist -l bundle -a create_date |grep HPUX


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Scot Bean
Honored Contributor

Re: Date of OS

Another way:

'view /var/adm/sw/swinstall.log'

Shows all software installs, with timestamps.