Discussion:
Last shutdown date of old OpenBSD machine
Ales Tepina
2021-04-15 09:42:14 UTC
Permalink
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
Tom Smyth
2021-04-15 10:57:18 UTC
Permalink
Check dmesg i think that will have the boot time / date in it
Post by Ales Tepina
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
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
--
Kindest regards,
Tom Smyth.
Otto Moerbeek
2021-04-15 11:07:46 UTC
Permalink
Post by Ales Tepina
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
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

Loading...