1748252 Members
4110 Online
108760 Solutions
New Discussion юеВ

Server installation date

 
SOLVED
Go to solution
Qcheck
Super Advisor

Server installation date

How can I tell when was server installed? I mean, is there any way I can tell what is the date of the server installation?
5 REPLIES 5
Steven Schweda
Honored Contributor
Solution

Re: Server installation date

When the (unidentified) server was installed,
or when the (unidentified) OS was installed
on the (unidentified) server?

There are usually some files which are
created when the OS is installed, like, say,
"/etc/hosts". If no one has modified them,
then their date-time values should be good
clues.
Ivan Ferreira
Honored Contributor

Re: Server installation date

In red hat based distros you have the /root/install.log and /root/anaconda-ks.cfg that could give you the date of your server installation. Check the date and time of these files with ls -la.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Ralph Grothe
Honored Contributor

Re: Server installation date

Hi Pratibha,

on RedHattish systems you could try something like this

# perl -le 'print scalar localtime $ARGV[0]' $(rpm --qf %{installtime} -q basesystem)
Tue Aug 14 15:48:40 2007
Madness, thy name is system administration
Elmar P. Kolkman
Honored Contributor

Re: Server installation date

Other option is to look at your root filesystem and ask for the 'time created' of it...
If it's ext2 or ext3, do:
tune2fs -l

That should be quite clear about installation date...
Every problem has at least one solution. Only some solutions are harder to find.
Qcheck
Super Advisor

Re: Server installation date

Solution has been given from this thread. Thank you everyone.