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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| 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 |
| ||||
| 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 |