On Thu, Apr 15, 2021 at 11:42:14AM +0200, Ales Tepina wrote:
> Hi!
>
> I have a really old machine (it has DIN keyboard connector) with OpenBSD
> installed on it that was used as a router and its been sitting
> in the basement for quite a few years. I would like to find out the date
> when the machine was last shutdown.
>
> What would be the best way to go about looking for that info?
>
> I have two options as far as i can see but have not tried any of them to
> avoid messing up the date of last boot/shutdown:
> 1. Boot the machine and check the log files in /var/log
> 2. Attach the disk drive to another machine and mount the partition and
> also check the info on some files
>
> Also, one important caveat. There is a good chance i won't be able to
> guess the password anymore. I think i know what it is, but i'm not sure
> since it was so long ago.
> Therefore booting into single user mode is probably the only choice for
> option 1.
>
> Thank you for your suggestions.
>
> Br, Ales
>
check last(1). Can be used with option 1 and 2 above.
-Otto