cancel
Showing results for 
Search instead for 
Did you mean: 

Boot Timestamps

 
LeandroRosa
Occasional Contributor

Boot Timestamps

Hi All,

I would like to obtain the latest boot timestamps from the system.
How can I proceed?

Thanks in advance,

Leandro
5 REPLIES
Tingli
Esteemed Contributor

Re: Boot Timestamps

# who -r
James R. Ferguson
Acclaimed Contributor

Re: Boot Timestamps

Hi:

As noted, the current last-boot can be discovered by :

# who -r

A log of others is:

# /etc/shutdownlog

Regards!

...JRF...
LeandroRosa
Occasional Contributor

Re: Boot Timestamps

James,

How many boot timestamps can I get from /etc/shutdownlog?

Just to clarify, I want to know when the system was started and shudown in last 30 days.

Tnx,

Leandro
OldSchool
Honored Contributor

Re: Boot Timestamps

"How many boot timestamps can I get from /etc/shutdownlog?"

you might have *looked* in the file mentioned to see.

"how many in last 30 days?"

if its not scheduled, than *one* is too many
Andrew Rutter
Honored Contributor

Re: Boot Timestamps

hi,

how many depends upon your system and if the log file ever gets trimmed?

one other option for you is to use last command

#last reboot

will find all the system reboots logged in the /var/adm/wtmp

Andy