Operating System - Linux
1832346 Members
2293 Online
110041 Solutions
New Discussion

command to know when the OS was Installed ?

 
SOLVED
Go to solution
Maaz
Valued Contributor

command to know when the OS was Installed ?

I am attending a Server, and I wana know when(date) rhel 4 was Installed on this machine ?
Any Command ?

I wana know the purpose/usage of "dmidecode" command. There is no "man dmidecode" available on rhel 4.
Regards
Maaz
5 REPLIES 5
Ivan Ferreira
Honored Contributor
Solution

Re: command to know when the OS was Installed ?

You could identify the date of the installation by looking at the date of the /root/install.log.

Information about dmidecode in this page:

http://www.nongnu.org/dmidecode/
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Maaz
Valued Contributor

Re: command to know when the OS was Installed ?

if /root/install.log is not available .. then ?
Ivan Ferreira
Honored Contributor

Re: command to know when the OS was Installed ?

Another file create just right after the installation is /root/anaconda-ks.cfg. If none of the files in /root is available, then you can view the date of the default kernel and initrd image located in the /boot directory.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Alexander Chuzhoy
Honored Contributor

Re: command to know when the OS was Installed ?

Just make sure the system wasn't upgraded and the kernel wasn't recompiled.

Many choose to solve this by appending some script, that writes the installation date into some file, to the %post section of kickstart.
George Liu_4
Trusted Contributor

Re: command to know when the OS was Installed ?

For rhel4, you may just list the systemid file, i.e.,

ls -l /etc/sysconfig/rhn/systemid