Keep track of your uptime with uptimed
June 24, 2020
If you’re curious about your uptime statistics there’s a tool called uptimed that can help you keep track of your uptime records.
$ uprecords
# Uptime | System Boot up
----------------------------+---------------------------------------------------
-> 1 29 days, 04:57:14 | Linux 5.4.38-gentoo-x86_ Tue May 26 15:23:46 2020
----------------------------+---------------------------------------------------
NewRec 29 days, 04:57:13 | since Tue May 26 15:23:46 2020
up 29 days, 04:57:14 | since Tue May 26 15:23:46 2020
down 0 days, 00:00:00 | since Tue May 26 15:23:46 2020
%up 100.000 | since Tue May 26 15:23:46 2020
Installation
Gentoo
Install the package app-misc/uptimed
:
# emerge --ask app-misc/uptimed
After the installation you need to start the service:
# service uptimed start
And preferable add it to the default system runlevel:
# rc-update add uptimed default
Debian
Install the package uptimed
:
# apt install uptimed
After the installation you need to start the service:
# systemctl start uptimed
And preferable add it to the default system runlevel:
# systemctl enable uptimed
Using uptimed
After the installation you can simply run the command uprecords
to display your uptime records. I also recommend you checking out the flag --help
for more options.