[ale] uptime logs?
Dow Hurst
dhurst at kennesaw.edu
Tue Jul 29 14:19:05 EDT 2003
You can cron a "last" command and an "uptime" command so that the output
is piped thru the mailx command. That would give you a constant input
of who is logging in and the current uptime.
Dow
Ryan Matteson wrote:
> Preston Boyington wrote:
>
>> I have been asked if there is some way of figuring the uptime and
>> intervals of uptime of a machine. I have never thought much about
>> this, so I don't know if there is a log written somewhere.
>> Also they wish to know if a user shut the system down or if it was a
>> power issue, etc.
>>
>> From what I gather they want to be able to say "in June the system
>> was up blah days until Joe installed the new hardware. Before that
>> we were up blah."
>>
>> Other than that I don't know any specifics.
>>
>> Preston
>>
>
> The uptime value is maintained by the kernel, and it pollable
> through libc or the proc interface. You could use a combination
> of last and uptime to determine to the best of your knowledge
> what took teh system down. If the bx magically rebooted, it is
> prob best to look at the logs (secure syslog can be used to send
> copies of logfile messages elsewhere) and who was on the system when
> this happened. Barring that no one tampered with the logs, this can
> be helpful in coorelating activities.
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
>
--
__________________________________________________________
Dow Hurst Office: 770-499-3428
Systems Support Specialist Fax: 770-423-6744
1000 Chastain Rd. Bldg. 12
Chemistry Department SC428 Email: dhurst at kennesaw.edu
Kennesaw State University Dow.Hurst at mindspring.com
Kennesaw, GA 30144
*****************************************************************
This message (including any attachments) contains confidential *
information intended for a specific individual and purpose, *
and is protected by law. If you are not the intended recipient,*
you should delete this message and are hereby notified that *
any disclosure, copying, or distribution of this message, or *
the taking of any action based on it, is strictly prohibited. *
*****************************************************************
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list