Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 May 2009 09:02:08 -0500
From:      Andrew Gould <andrewlylegould@gmail.com>
To:        utisoft@gmail.com
Cc:        Polytropon <freebsd@edvax.de>, Glen Barber <glen.j.barber@gmail.com>, Steve Bertrand <steve@ibctech.ca>, "freebsd-questions@freebsd.org Questions -" <freebsd-questions@freebsd.org>
Subject:   Re: Another uptime story
Message-ID:  <d356c5630905270702q31e06a0j31b48f138ed9b3b0@mail.gmail.com>
In-Reply-To: <b79ecaef0905270645i500318efn9e71cff1ea58faf5@mail.gmail.com>
References:  <4A1CB002.9070904@ibctech.ca> <20090527052335.7a71bfc6.freebsd@edvax.de> <4ad871310905262234s35857487xbf631bea45a018e@mail.gmail.com> <b79ecaef0905270645i500318efn9e71cff1ea58faf5@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 27, 2009 at 8:45 AM, Chris Rees <utisoft@googlemail.com> wrote:

> 2009/5/27 Glen Barber <glen.j.barber@gmail.com>:
> > On Tue, May 26, 2009 at 11:23 PM, Polytropon <freebsd@edvax.de> wrote:
> >> Maybe there's a way of patching the uptime utility that it adds
> >> the previous uptime of the system (since last shutdown) to the
> >> actual uptime. I know this denies everything uptime stands for,
> >> let's call it accumulated uptime. :-)
> >>
> >
> > I like that idea, actually.. Not for faking cumulative uptime.  It'd
> > be kinda nice knowing how long a particular machine has been 'alive'
> > without looking through service tag records.
> >
> > --
> > Glen Barber
>
> How about:
>
> [chris@amnesiac]~% ls -l /etc/ssh/ssh_host_key.pub
> -rw-r--r--  1 root  wheel  324 Apr 15  2008 /etc/ssh/ssh_host_key.pub
> [chris@amnesiac]~%
>
> I think I'd cry if I were to lose 553 days of uptime....
>
> Chris
>

You could write a script that sends uptime output and a start/stop flag to a
database when the system starts and stops.  This wouldn't account for
improper shutdowns, although you could tell when a "stop" date/time was
missing.

If you also  documented the installation date/time of various components,
you could also track their lives separately.

Andrew



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d356c5630905270702q31e06a0j31b48f138ed9b3b0>