Re: find date of last boot

2012-06-08 Thread Jerry
On Fri, 08 Jun 2012 12:08:20 +0100 Matthew Seaman articulated: >In passing, apparently it seems that creating a user with a username of >'reboot' is probably not recommended. That would seem like a good idea. Interestingly enough, I had a friend who had a password: "PassWord" that he used as a jo

Re: find date of last boot

2012-06-08 Thread Matthew Seaman
On 08/06/2012 07:19, Matthew Seaman wrote: > On 08/06/2012 05:50, Randal L. Schwartz wrote: >> Sure, but the question was likely involving a stock system, so yes, your >> mileage may vary, but let's consider a solution that works for a default >> system. "last reboot" isn't it. > > It's not that.

Re: find date of last boot

2012-06-07 Thread Matthew Seaman
On 08/06/2012 07:23, Chris Knipe wrote: >> It's not that. 'last reboot' seems to be broken at the moment, at least >> on stable/9: > >> but last(1) isn't coming up with the goods: >> >> lucid-nonsense:~:% last reboot >> >> wtmp begins Fri Jun 1 06:14:46 BST 2012 > > last reads from /var/log/wtm

Re: find date of last boot

2012-06-07 Thread Chris Knipe
> It's not that.  'last reboot' seems to be broken at the moment, at least > on stable/9: > but last(1) isn't coming up with the goods: > > lucid-nonsense:~:% last reboot > > wtmp begins Fri Jun  1 06:14:46 BST 2012 last reads from /var/log/wtmp - which more than likely got rotated since your las

Re: find date of last boot

2012-06-07 Thread Matthew Seaman
On 08/06/2012 05:50, Randal L. Schwartz wrote: > Sure, but the question was likely involving a stock system, so yes, your > mileage may vary, but let's consider a solution that works for a default > system. "last reboot" isn't it. It's not that. 'last reboot' seems to be broken at the moment, at

Re: find date of last boot

2012-06-07 Thread Matthew Seaman
On 08/06/2012 00:15, Fbsd8 wrote: > dmesg command does not show date of last boot. > > Are there some other commands to find date of last boot? % last reboot will show the date of the last reboot if it is still in the current /var/log/utx.log Or at least it should: testing on my o

Re: find date of last boot

2012-06-07 Thread Randal L. Schwartz
> "Chuck" == Chuck Swiger writes: Chuck> FreeBSD aggressively rotates the utmp/wtmp databases; most other Chuck> platforms leave it in place until the sysadmin decides to rotate Chuck> it per local policy. Chuck> Tweaking the monthly? periodic entries would change this, I'd Chuck> imagine...

Re: find date of last boot

2012-06-07 Thread Randal L. Schwartz
> "Chris" == Chris Hill writes: Chris> I'll credit Doug Hardie with the best solution: Chris> $ ls -l /var/run/dmesg.boot Chris> -rw-r--r-- 1 root wheel 7248 Dec 26 2010 /var/run/dmesg.boot Ouch! There've been some security patches since then. Are you sure you want to tell someone that

Re: find date of last boot

2012-06-07 Thread Carl Johnson
Fbsd8 writes: > dmesg command does not show date of last boot. > > Are there some other commands to find date of last boot? In addition to the other responses: sysctl kern.boottime -- Carl Johnsonca...@peak.org ___ freebsd-

Re: find date of last boot

2012-06-07 Thread Chuck Swiger
On Jun 7, 2012, at 6:32 PM, Randal L. Schwartz wrote: > You must reboot a lot. My "last" log goes back only to the first of the > month, and my uptime is 16 days right now, so I can't see the most > recent reboot with last. FreeBSD aggressively rotates the utmp/wtmp databases; most other platform

Re: find date of last boot

2012-06-07 Thread Karl Vogel
>> On Thu, 7 Jun 2012 21:35:19 -0400 (EDT), >> Chris Hill said: C> $ ls -l /var/run/dmesg.boot C> -rw-r--r-- 1 root wheel 7248 Dec 26 2010 /var/run/dmesg.boot For the sake of completeness: me% stat -f %Sm /var/run/dmesg.boot Jan 10 14:56:45 2012 me% ls -l -D '%d-%b-%Y %T' /var/run

Re: find date of last boot

2012-06-07 Thread Michael Sierchio
On Thu, Jun 7, 2012 at 7:34 PM, Polytropon wrote: > Maybe introducing something along the /etc/rc execution? > An /etc/rc.local entry like > >        /bin/date "+%Y-%m-%d %H:%M:%S" > /var/log/thisboot.log > > and then just look at the file. Requires at least one reboot > to take effect. :-) > Yo

Re: find date of last boot

2012-06-07 Thread Polytropon
On Thu, 7 Jun 2012 21:02:57 -0500 (CDT), Robert Bonomi wrote: > > From owner-freebsd-questi...@freebsd.org Thu Jun 7 20:26:46 2012 > > Date: Thu, 07 Jun 2012 20:24:49 -0500 > > From: Chris > > To: freebsd-questions@freebsd.org > > Subject: Re: find date of last bo

Re: find date of last boot

2012-06-07 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org Thu Jun 7 20:26:46 2012 > Date: Thu, 07 Jun 2012 20:24:49 -0500 > From: Chris > To: freebsd-questions@freebsd.org > Subject: Re: find date of last boot > > On 6/7/2012 8:14 PM, Chris Hill wrote: > > On Thu, 7 Jun 2012, F

Re: find date of last boot

2012-06-07 Thread Chris
On 6/7/2012 8:32 PM, Randal L. Schwartz wrote: >> "Chris" == Chris writes: > > Chris> Why create something that is already built in? > Chris> As I mentioned previously, the last command lists when the system was > Chris> rebooted. > > You must reboot a lot. My "last" log goes back only to

Re: find date of last boot

2012-06-07 Thread Randal L. Schwartz
> "Chris" == Chris writes: Chris> Why create something that is already built in? Chris> As I mentioned previously, the last command lists when the system was Chris> rebooted. You must reboot a lot. My "last" log goes back only to the first of the month, and my uptime is 16 days right now,

Re: find date of last boot

2012-06-07 Thread Chris Hill
On Thu, 7 Jun 2012, Chris wrote: On 6/7/2012 8:14 PM, Chris Hill wrote: On Thu, 7 Jun 2012, Fbsd8 wrote: dmesg command does not show date of last boot. Are there some other commands to find date of last boot? That was fun. Google helped me with this; the crappy skillz are all mine

Re: find date of last boot

2012-06-07 Thread Chris
On 6/7/2012 8:14 PM, Chris Hill wrote: > On Thu, 7 Jun 2012, Fbsd8 wrote: > >> dmesg command does not show date of last boot. >> >> Are there some other commands to find date of last boot? > > That was fun. Google helped me with this; the crappy skillz ar

Re: find date of last boot

2012-06-07 Thread Chris Hill
On Thu, 7 Jun 2012, Fbsd8 wrote: dmesg command does not show date of last boot. Are there some other commands to find date of last boot? That was fun. Google helped me with this; the crappy skillz are all mine. --- cut here --- #!/bin/sh # # Find date of last boot # DAYS_UP=`uptime | awk

Re: find date of last boot

2012-06-07 Thread Chuck Swiger
On Jun 7, 2012, at 4:15 PM, Fbsd8 wrote: > dmesg command does not show date of last boot. > > Are there some other commands to find date of last boot? Try "last | grep reboot". Regards, -- -Chuck ___ freebsd-questions@freebsd.or

Re: find date of last boot

2012-06-07 Thread Doug Hardie
On 7 June 2012, at 16:33, Polytropon wrote: > On Thu, 07 Jun 2012 19:15:25 -0400, Fbsd8 wrote: >> dmesg command does not show date of last boot. >> >> Are there some other commands to find date of last boot? > > Check the lines in /var/log/messages. Unless you'r

Re: find date of last boot

2012-06-07 Thread Karl Vogel
>> On Thu, 07 Jun 2012 19:15:25 -0400, >> Fbsd8 said: F> dmesg command does not show date of last boot. Are there some other F> commands to find date of last boot? Try "last reboot". -- Karl Vogel I don't speak for the USAF or my com

Re: find date of last boot

2012-06-07 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org Thu Jun 7 18:16:50 2012 > Date: Thu, 07 Jun 2012 19:15:25 -0400 > From: Fbsd8 > To: FreeBSD Questions > Subject: find date of last boot > > dmesg command does not show date of last boot. > > Are there some other command

Re: find date of last boot

2012-06-07 Thread Fish Kungfu
hu, 7 Jun 2012, Fbsd8 wrote: >> >>  dmesg command does not show date of last boot. >>>  Are there some other commands to find date of last boot? >>  Perhaps somehow subtract `uptime` from today's date? >> >>  -- >>

Re: find date of last boot

2012-06-07 Thread Chris
; >> dmesg command does not show date of last boot. >>> >>> Are there some other commands to find date of last boot? >>> >> >> Perhaps somehow subtract `uptime` from today's date? >> >

Re: find date of last boot

2012-06-07 Thread Polytropon
On Thu, 07 Jun 2012 19:15:25 -0400, Fbsd8 wrote: > dmesg command does not show date of last boot. > > Are there some other commands to find date of last boot? Check the lines in /var/log/messages. Unless you're not experiencing a newsyslog message (new log file started), the &quo

Re: find date of last boot

2012-06-07 Thread Bill Yuan
; Are there some other commands to find date of last boot? >> > > Perhaps somehow subtract `uptime` from today's date? > > -- > Chris Hill ch...@monochrome.org > ** [ Busy Expunging ] > > __**___

Re: find date of last boot

2012-06-07 Thread Chris Hill
On Thu, 7 Jun 2012, Fbsd8 wrote: dmesg command does not show date of last boot. Are there some other commands to find date of last boot? Perhaps somehow subtract `uptime` from today's date? -- Chris Hill ch...@monochrome.org ** [ Busy Expu

find date of last boot

2012-06-07 Thread Fbsd8
dmesg command does not show date of last boot. Are there some other commands to find date of last boot? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "fr