Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Last Reboot/Shutdown Command

0 views
Skip to first unread message

Francis

unread,
Nov 22, 2000, 3:00:00 AM11/22/00
to
Hi,
I somehow come across a command which could check the last time a
system is rebooted/shutdown. I am running Solaris 2.6, fyi.

Do you know what's the command ??
Appreciate your immediate reply.
Thanks.

Regards,
Francis.


chuyee

unread,
Nov 22, 2000, 11:53:32 PM11/22/00
to
last, uptime

"Francis" <fran...@cisco.com> wrote in message
news:3A1C9786...@cisco.com...

Reinier Post

unread,
Nov 23, 2000, 3:00:00 AM11/23/00
to
"chuyee" <chu...@163.net> wrote:

>> I somehow come across a command which could check the last time a
>> system is rebooted/shutdown. I am running Solaris 2.6, fyi.

Look at the system log - usually, /var/adm/messages. Example:

svis02% fgrep syslogd: /var/adm/messages
Nov 20 04:19:30 svis02 syslogd: going down on signal 15
Nov 20 04:26:04 svis02 syslogd: going down on signal 15

It's better to actually view the file - the pattern on bootup
is easily recognizable.

--
Reinier

Roy

unread,
Nov 23, 2000, 3:00:00 AM11/23/00
to
uptime
who -b


Francis <fran...@cisco.com> schrieb in im Newsbeitrag:
3A1C9786...@cisco.com...
> Hi,


> I somehow come across a command which could check the last time a
> system is rebooted/shutdown. I am running Solaris 2.6, fyi.
>

Tony Walton

unread,
Nov 23, 2000, 3:00:00 AM11/23/00
to
Francis wrote:
>
> Hi,
> I somehow come across a command which could check the last time a
> system is rebooted/shutdown. I am running Solaris 2.6, fyi.
>
> Do you know what's the command ??
> Appreciate your immediate reply.

who -b is among a welter of commands that will give you this information
in a range of different formats.

--
Tony Walton
This posting is my own opinion and does not constitute official support
from Sun Microsystems

"I'm not the real Mojo Jojo - I'm Blossom in a BUCKET"

Mark Rafn

unread,
Nov 24, 2000, 3:00:00 AM11/24/00
to
Francis <fran...@cisco.com> wrote:
> I somehow come across a command which could check the last time a
>system is rebooted/shutdown. I am running Solaris 2.6, fyi.

There have been a number of responses telling you the way to find the last
boot. As far as I know, the only way to find the last shutdown (which may not
be the same thing) is by perusing the logs.
--
Mark Rafn da...@dagon.net <http://www.dagon.net/>

Roger Lussi

unread,
Nov 24, 2000, 3:00:00 AM11/24/00
to
Hello mark,

there is a comand for your problem:

last reboot

because every boot procedure, the system creates a pseudo user named reboot.
with the last command you can normally see which user is logged in.

roger

Mark Rafn schrieb:

0 new messages