David Colon on 22 Jan 2008 08:33:17 -0800 |
On Jan 22, 2008 10:50 AM, Ron Kaye <rkaye2@csc.com> wrote: > > i am looking for a shutdown and/or reboot history. > > cd /var/log > cat message*.* | grep <magic word> > does that look ok? > > what <magic word> will appear to indicate startup, boot, reboot > > ie the server has locked, i have to reboot. > > thanks in advance, > > ron wtmp stores that. grep reboot /var/log/wtmp. Depending on how your log rotation is setup, you might only have a day or so of history. If you still have older wtmp files in /var/log [wtmp.1, wtmp.2, etc], then you can apply the grep to those. grep reboot /var/log/wtmp* David ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|