Unix Technical Forum

How to determine if server crashed or booted by user

This is a discussion on How to determine if server crashed or booted by user within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi all, We are trying to create a way to determine if a server has been rebooted by user ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-04-2008, 08:21 PM
btna
 
Posts: n/a
Default How to determine if server crashed or booted by user

Hi all,

We are trying to create a way to determine if a server has been
rebooted by user or if the server has crashed. what we want is to
somehow keep track of how long the server has been up, when it
crashed, when it has been rebooted. This information has to be
scripted so we can create logs to show management.

Has anyone out there done this before?

Thank you much for suggestions.

TA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-04-2008, 08:21 PM
at
 
Posts: n/a
Default Re: How to determine if server crashed or booted by user

On 4 Oct 2003 06:02:45 -0700, btna@terra.com (btna) wrote:

>Hi all,
>
>We are trying to create a way to determine if a server has been
>rebooted by user or if the server has crashed. what we want is to
>somehow keep track of how long the server has been up, when it
>crashed, when it has been rebooted. This information has to be
>scripted so we can create logs to show management.
>
>Has anyone out there done this before?
>
>Thank you much for suggestions.
>
>TA


Well, here are several commands that will show you what you're looking
for:

use errpt | pg to show you what hs happened including reboots, power
failurs, reboots, etc. If a user shuts off the power button it will
show as a power failure.

use uptime to show you how long the server has been up along with
some other useful information.

If you have syslogd active you can use tail /var/log/syslog to see
what else has been going on.

For more information on these just use "man command_name" and read
all about it.

B
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-04-2008, 08:21 PM
Nicholas Dronen
 
Posts: n/a
Default Re: How to determine if server crashed or booted by user

Bob Mariotti <R.Mariotti(at)FinancialDataCorp.com> wrote:
BM> On 4 Oct 2003 06:02:45 -0700, btna@terra.com (btna) wrote:

>>Hi all,
>>
>>We are trying to create a way to determine if a server has been
>>rebooted by user or if the server has crashed. what we want is to
>>somehow keep track of how long the server has been up, when it
>>crashed, when it has been rebooted. This information has to be
>>scripted so we can create logs to show management.


BM> Well, here are several commands that will show you what you're looking
BM> for:

BM> use errpt | pg to show you what hs happened including reboots, power
BM> failurs, reboots, etc. If a user shuts off the power button it will
BM> show as a power failure.

BM> use uptime to show you how long the server has been up along with
BM> some other useful information.

BM> If you have syslogd active you can use tail /var/log/syslog to see
BM> what else has been going on.

BM> For more information on these just use "man command_name" and read
BM> all about it.

The man page for sysdumpdev (note the -L flag) is recommended reading
as well.

Regards,

Nicholas

--
"Why shouldn't I top-post?" http://www.aglami.com/tpfaq.html
"Meanings are another story." http://www.ifas.org/wa/glossolalia.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:06 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com