Avatar

Hund[en]

Linux, plaintext & minimalism
June 24, 2020

Keep track of your uptime with uptimed

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.

Tags: Uptime | Utils

Feedback

I don't have a commenting system simply because I haven't found a solution that I like. If you want to leave any feedback and/or have any questions feel free to contact me either via e-mail, the fediverse, by XMPP or by IRC (I'm Hund at freenode.net).