Questions tagged [uptime]
The uptime tag has no summary.
83 questions
0 votes
2 answers
341 views
Did my Linux host restart?
I am running AlmaLinux 9, and it has been running stable for some time. This morning I received email messages that a systemd service had restarted on its own overnight. Strange, since this service ...
0 votes
1 answer
495 views
MT9721K wireless adapter Drivers randomly stop working on debian and ubuntu based systems
After a certain amount of uptime, the OS is irreversably unable to detect the wireless adapter (MT7921K in this case). I previously "fixed" this by restoring the original Windows 11 install ...
1 vote
1 answer
1k views
Convert string time to seconds
I'm receiving an uptime in this format: 167h58m10.586582048s I want to transform it to seconds and discard the fraction part. I know awk could do that if only the received string had the same ...
3 votes
2 answers
817 views
Format the output of "read_file uptime" in i3status
I'm trying to display my system uptime with i3status. This is what I have in my i3status.conf file: read_file uptime { format = "%title: %content" path = "/proc/uptime" } ...
3 votes
1 answer
4k views
last reboot and who -b shows different results?
I am using the following 3 commands to check the latest time point when my computer is rebooted: last reboot who -b uptime The result for last reboot is: wtmp begins Sat Oct 9 04:49:27 2021 The ...
1 vote
5 answers
3k views
How to check if uptime is greater than 72h?
I need to create a script that will execute daily (cron job), calculate the uptime of the system, and if that number is greater than 72 hours, reboot the system. I am getting lost in converting the ...
1 vote
0 answers
105 views
machine uptime is not consistent with last command
we have 3 rhel servers version 7.6 ( part of cluster with 8 machines ) on rhel server 1 machine uptime is uptime 10:25:51 up 23:48, 1 user, load average: 0.02, 0.09, 0.13 on rhel server 2 machine ...
1 vote
1 answer
2k views
Get system uptime with better precision then seconds
My system is running Linux for embedded. At the moment I didn't sync the system clock or gave the user an option to do it but it's going to change. Different parts in my application are using ...