Operating System - HP-UX
1753394 Members
7206 Online
108792 Solutions
New Discussion юеВ

Re: HPUX OS installation date

 
SOLVED
Go to solution
System Unix
Frequent Advisor

HPUX OS installation date

Hi,
I use the command head /var/adm/swagent.log to see the date the server has been installed.( if patches/software are installed that date will not change).

Is there another way to check the installation date or this is good enough ?

thanks,

Reuven
Reuven
11 REPLIES 11
Patrick Wallek
Honored Contributor

Re: HPUX OS installation date

You would be better off using swlist and some of the options available to you. If your swagent.log gets cleared out then the information you seek will not be available.

I am not at the office and don't have access to my machines at the moment, but I have used swlist numerous times for information requested by Sarbanes-Oxley auditors.

A couple of those requirements were OS installation date and patches installed within the last calendar year.
System Unix
Frequent Advisor

Re: HPUX OS installation date

Hi Patric,

I could use the swlist command with -v that will give the installation date, but of what ???

rgds,

Reuven
Reuven
Pete Randall
Outstanding Contributor
Solution

Re: HPUX OS installation date

You need to find the Bundle containing your operating environment. I'm sure there is a better way of narrowing it down but this crude method worked for me:

# swlist -v -l bundle |more
# Initializing...
#
.
.
.
.
/Ent
...skipping...

HPUX11i-OE-Ent
.
.
.
.
mod_date Mon Mar 15 15:13:03 EST 2004
mod_time 1079381583
create_date Mon Mar 15 14:52:25 EST 2004
create_time 1079380345
install_date 200403151513.03


I skipped over large portions of the output to reduce the size of this posting, but essentially I piped the output to more, then used "/Ent" to skip to the Enterprise Operating Environment portion, then scrolled down to Install_date.


Pete
____________________________________________________

Pete
Torsten.
Acclaimed Contributor

Re: HPUX OS installation date

You can use
/opt/ignite/bin/print_manifest
This could give you the date the system was installed.
There are some files that usually never change the date, for example /dev/config and others.

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!   
System Unix
Frequent Advisor

Re: HPUX OS installation date

Hi Torsten,

I did not find anything in the print_manifest that could give me any clue of the instaltin date.

ll /dev/config
crw-r--r-- 1 root sys 69 0x000000 Dec 9 2005 /dev/config



head /var/adm/sw/swagent.log

======= 10/08/06 11:46:56 EDT BEGIN install AGENT SESSION (pid=211)

I did not find any correlation between the 2 dates. I know for sure that this server has been installed on the 10/08/06


thanks,
Reuven
Reuven
Naveej.K.A
Honored Contributor

Re: HPUX OS installation date

Hello Reuven,

print_manifest does show the system installation date (the first few lines).

System Information

Your Hewlett-Packard computer has software installed and
configured as follows.

The system was created April 05, 2006, 10:40:15 SST.
It was created with Ignite-UX revision C.6.7.79.


On 11.23,
swlist -l bundle -v HPUXBaseOS |grep mod_date

Regards,
Naveej
practice makes a man perfect!!!
Torsten.
Acclaimed Contributor

Re: HPUX OS installation date

This is an old capture of my system when it was on 11.00 as an example:

print_manifest
...
The system was created December 28, 1999, 05:09:40 EST.
It was created with Ignite-UX revision B.2.7.92.
...


and a newer system:

The system was created April 04, 2007, 13:21:27 MESZ.
It was created with Ignite-UX revision C.7.0.212.

...



But if you trim the swagent log files, the "start date" may be later, so even this is not 100%.

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!   
T G Manikandan
Honored Contributor

Re: HPUX OS installation date

#swlist -l fileset -a date|grep OS-Core
System Unix
Frequent Advisor

Re: HPUX OS installation date

Hello T G,

I tried all options mentioned in the good advices everyone gave. yet there are still some differenes between dated of swlist..., print_manifest, swagent.log.

it is quite confusing.... I tested around 15 server different OS version, and different Platforms, ( PA-RISC, I64).

I still dont know the most accurate method.

thank you,

Reuven
Reuven