[CLUE-Tech] Quick reboot question

Brandon N bneill at yahoo.com
Sat Jan 13 20:20:02 MST 2001


I beleive last reboot is on most distros, but another option easily
sortable probably isn't.  last reboot does give you the dates of all
the reboots, so you may find it useful.

Brandon
--- Kevin Cullis <kevincu at orci.com> wrote:
> Brandon N wrote:
> > 
> > not really, and I'm not sure last reboot works on all systems, I
> use
> > both Solaris and Linux so much, I get confused.
> > The last command gives you all entries in the wtmp file for a
> specific
> > user, the "reboot" user is a special one used to measure when the
> > system was rebooted.
> > 
> > the basic trick is that you can't measure how often the system was
> > brought down, because there are many different ways to bring it
> down.
> > What you can do, is measure how often the machine comes up.
> > 
> > TO do this, create a startup script (method varies by vendor) to
> put a
> > date in a file every time it is booted, numeric dates work best,
> > easiest to sort.
> > 
> > then write another script to count all the lines before a certain
> date.
> > 
> > brandon
> 
> So, from what I've gathered, it's not "installed" in normal distros,
> but
> I would have to create it.  Thanks for the tip, Brandon.
> 
> Kevin
> _______________________________________________
> CLUE-Tech mailing list
> CLUE-Tech at clue.denver.co.us
> http://clue.denver.co.us/mailman/listinfo/clue-tech


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



More information about the clue-tech mailing list