Unix Installation age


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Unix Installation age
# 1  
Old 09-04-2002
Unix Installation age

Hi.. Is there any way to find out when the OS was installed for a system? How can we find that out?

My system is :

IBM AIX 4.3.3 RS6000

Thanks, ST2000
# 2  
Old 09-04-2002
Don't know of any way to find that out - especially if it's a system that has been around awhile.

You can look at the dates of the files in / specifically the directories. Some have to be created when the system is built and will have the same date as others. This would give you your 'best guess'. Files installed during installation usually come from a tar file and have the creation date of when the file was made orginally, but that was when the developer at IBM made it, not when it was created on your system.

Try the ls command with appropriate options (-calt should do it) and check out the date of the directories at the bottom of the list (lost+found would be a good one )

% ls -calt /

total 599
dr-xr-xr-x 75 root root 262336 Sep 4 14:44 proc
drwxr-xr-x 27 root root 1024 Sep 4 14:41 .
drwxr-xr-x 27 root root 1024 Sep 4 14:41 ..
drwxr-xr-x 32 root sys 3584 Aug 23 13:35 etc
drwx------ 5 root root 512 Aug 14 14:46 root
drwxrwxr-x 25 root sys 512 Jul 26 09:28 var
drwxrwxr-x 13 root sys 512 Apr 18 21:52 opt
dr-xr-xr-x 6 root root 512 Apr 18 21:24 vol
drwxrwxr-x 18 root sys 3584 Apr 18 21:24 dev
-rw------- 1 root root 1028 Apr 18 21:24 .cpr_config
dr-xr-xr-x 1 root root 1 Apr 18 21:24 adm
dr-xr-xr-x 3 root root 3 Apr 18 21:24 home
dr-xr-xr-x 1 root root 1 Apr 18 21:24 net
dr-xr-xr-x 1 root root 1 Apr 18 21:24 rpkgs
dr-xr-xr-x 2 root root 2 Apr 18 21:24 u
dr-xr-xr-x 1 root root 1 Apr 18 21:24 xfn
drwxr-xr-x 9 root sys 512 Apr 18 21:14 kernel
drwxrwxr-x 6 root sys 512 Dec 20 2001 export
drwxrwxr-x 35 root sys 1024 Jun 12 2001 usr
drwxr-xr-x 3 root other 512 Mar 7 2000 system
lrwxrwxrwx 1 root other 11 Feb 23 2000 nsr -> /export/nsr
drwxr-xr-x 3 root nobody 512 Dec 28 1999 cdrom
dr-xr-xr-x 2 root root 512 Dec 17 1999 stash
lrwxrwxrwx 1 sybase dba 18 Nov 16 1999 sybasedata -> /export/sybasedata
drwxrwxr-x 4 root sys 1024 Nov 8 1999 sbin
lrwxrwxrwx 1 root root 8 Nov 3 1999 tmp -> /var/tmp
drwxrwxrwt 2 sys sys 512 Nov 3 1999 tmp.original
-rw-r--r-- 1 root other 12 Nov 3 1999 .new
drwxrwxr-x 4 root sys 512 Nov 3 1999 devices
drwxr-xr-x 16 root sys 1024 Nov 3 1999 platform
lrwxrwxrwx 1 root root 9 Nov 3 1999 bin -> ./usr/bin
lrwxrwxrwx 1 root root 9 Nov 3 1999 lib -> ./usr/lib
drwxrwxr-x 2 root sys 512 Nov 3 1999 mnt
drwx------ 2 root root 8192 Nov 3 1999 lost+found
# 3  
Old 09-05-2002
Yap.. Thats what I did.. This was the only way I could think of, before writing the same here..

My oldest files come to June 21st, 2001 which is about 465 days as of August 28th, 2002 (A week before)
Reason why I was curious or needed this, is that my trace files in oracle shows a timestamp of 4269058845 which is measured in milliseconds. So, when I decode the same it comes to 494 days, unless system is loaded with OS and then later on loaded with something else... Coz, Oracle is installed Nov 6th, 2001, but some oracle files are there from Jul..

All in all, I am missing about 30 days to my calculation...

Thanks, ST2000
# 4  
Old 09-06-2002
look for lost+found directories

I have also wondered this. I have found a good way.

1) Look for lost+found directories. These are created when the directories are made.

2) Also, you can look at the DISK device list for your root volume in /dev/dsk. The date will be when it was created.

There are many ways to look for this, but these are just a few.
Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix installation

Dear friends, I am new to unix. I want to execute unix commands. i installed putty software in Windows xp but it is not working.i got a problem at host name.Dont know what is happeneing.(cursor not moving) Can i install the Unix OS and execute unix commands with out using Putty software.... (2 Replies)
Discussion started by: chakriAX
2 Replies

2. Windows & DOS: Issues & Discussions

Installation of Unix in VMWare

Hi, I want to install unix in vmware on windows 7. Is it possible. please suggest. If so were can i get the OS(unix). (3 Replies)
Discussion started by: mlavanaykumar
3 Replies

3. Shell Programming and Scripting

Finding the age of a unix process, killing old processes, killing zombie processes

I had issues with processes locking up. This script checks for processes and kills them if they are older than a certain time. Its uses some functions you'll need to define or remove, like slog() which I use for logging, and is_running() which checks if this script is already running so you can... (0 Replies)
Discussion started by: sukerman
0 Replies

4. UNIX for Dummies Questions & Answers

Unix installation

Hi. Yesterday I downloaded an old Unix version - Unix System V Release 4 Version 2.1, but I don`t know how to instal it. In the folder there are DCF files (I suppose they`re some kind of data files) and CCOPY.EXE. This program is Deutch and I couldn`t understand anything. SO... How can I install... (1 Reply)
Discussion started by: icohim
1 Replies

5. UNIX for Dummies Questions & Answers

age utility in unix

Hi, Can anyone explain me the use of age utility and how it works? Looking forward reply... Thanks, Venkatesh. (1 Reply)
Discussion started by: venkatesht
1 Replies

6. Windows & DOS: Issues & Discussions

unix installation

Hi all, I am having windows in my machine.I am beginner in unix.I dont know head and tail of unix.Can anyone tell what software I have to install in my machine.I want to run unix commands for practice.What ihave to do can anyone help me.what i ahve to install.Pls help me. Thanks, ravi (2 Replies)
Discussion started by: raviprakash.451
2 Replies

7. Solaris

Basic Unix installation help

Hi, I am a novice in Unix installation. Was experimenting with it. During installation, i created 2 partitions ( what i am calling ). One for the OS which was named SOLARIS & other was named PRI_DOS. Now on completion of installation, where has my PRI_DOS portion gone. How do i... (8 Replies)
Discussion started by: vibhor_agarwali
8 Replies

8. UNIX for Dummies Questions & Answers

Ethereal installation on unix

Hi , Has any one installed ethereal on a unix machien ?? I m trying to install it on an hpux 11i machine and getting the following error * Summary of Analysis Phase: ERROR: Exclude ethereal.ethereal-RUN,r=0.10.11 ERROR: Exclude ... (0 Replies)
Discussion started by: binums
0 Replies

9. UNIX for Dummies Questions & Answers

Please help with UNIX installation

Hello I am new to UNIX I have no idea about its functions and commands but i am interested in learning it. I have SCO unix ver 3.2. How can i install it to co exist on a computer with Win XP (SP 2) already installed on it ? My hardware specs are P IV 1.5 Ghz, 256 MB Ram, 2 hard disks a 120... (0 Replies)
Discussion started by: Krish2487
0 Replies

10. UNIX for Dummies Questions & Answers

Help me with the installation of Unix Solaris 8

i got a burnt copy of solaris 8 which was download off of www.sun.com the person who borrowed me the 3 cds said he successfully has the solaris 8 thing installed on his pc. how come when I tried to install it on mines, I get a bunch of errors messages some of which includes words like "disk... (3 Replies)
Discussion started by: TRUEST
3 Replies
Login or Register to Ask a Question