Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you know when the server was bootted

Status
Not open for further replies.

isonlyme

Programmer
Apr 20, 2002
171
0
0
PR
Hi all,

I'm new in Unix so sorry in advance for the simple questions....

I like to know how do you know or find where a server was rebooted, is there a log or something? also how do I know wich version of Unix I have?

I have an HP-UX

Thanks in advance
 
Not sure about HP, but in Solaris uptime will give you the time since rebooted details. Try uname -a for the version details too. HTH.
 
uptime is used in HP. Also, there should be a log of the boot (what processes were started) in /etc/rc.log.
 
Hi,

You can also cat the file /etc/shutdownlog file.


Prashant
 
perfect thanks for the great help guys!!!
 
Hi there,

you can try the command "uptime" you will know when the system was restared. You can grab information in the syslog (/var/adm/syslog).

Regards,
Fred
 
The easiest way I've found is to execute the following commands:

# uptime -- shows how long system has been up

# who -r -- show last reboot time


Does that help?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top