The tag has no wiki summary.

learn more… | top users | synonyms

3
votes
1answer
24 views

How can I display uptime with sleep-mode time excluded?

I put my laptop to suspend mode, woke it up later, and now it shows uptime some 23 hours (with uptime), which is obviously not true. I suspect uptime simply returns the difference between the ...
1
vote
2answers
48 views

Find out at what time my machine got restarted and why?

I have my ubuntu machine which is running Ubuntu 10.10 and that machine is running my app server. I am suspecting that my machine got restarted today at some time but I don't know how to find out at ...
2
votes
1answer
32 views

How to reliably get timestamp at which the system booted?

I'm aware of the uptime command, but it returns seconds since booted, so if I just substract that number from current timestamp, in theory I can get a different result if second changes after I've ...
1
vote
1answer
38 views

get system uptime on battery?

How to know system uptime under battery ? so that i can get exact time of battery backup the uptime shows complete uptime (AC/Battery) NOTE : I am using linux Mint 17.
6
votes
3answers
2k views

How long has my Linux system been running?

Is there a command I can type in a terminal that will tell me the last time a machine was rebooted?
2
votes
2answers
275 views

Command 'uptime' returns 'average'

I wrote a simple bash script that checks the load average values using 'uptime' every 5 minutes and writes a result to the text file. Everything is OK except one thing: every day from 12:00 to 13:00 I ...
6
votes
4answers
1k views

Why/how does “uptime” show CPU load >1?

I have a 1 core CPU installed on my PC. Sometimes, uptime shows load >1. How is this possible and what does this mean? EDIT: The values go up to 2.4
1
vote
1answer
794 views

The amount of time since the system was last booted [duplicate]

I have used both uptime and cat /proc/uptime commands. I know the idle time in the later can be greater than running time (multiprocessors). However, when I add both running and idle times, and ...
1
vote
1answer
596 views

last reboot/uptime/… strange behaviour

I know this has been more or less asked before but I still don't have any answer. I started to investigate why on my system (it is a remote machine) who -b and uptime gave different results (~3 days ...
4
votes
1answer
128 views

Is there a tool for tracking uptimes across reboots?

A tool such as this might on the surface appear to serve no real useful purpose, but people that take care of systems like to brag, and uptime is just one of those things that they like to brag about ...
1
vote
2answers
4k views

How to know why server keeps restarting?

It seems that my server keeps restarting. I want to know why. How can I know when the last time server was rebooted and why? root pts/0 139.193.156.125 Thu Aug 8 21:10 still logged in ...
1
vote
0answers
86 views

how long use of linux? [duplicate]

/proc/uptime shows how long the system has been running since the last time I turned it on. Is there a way to determine the total amount of time the system has ever been on since I first installed it? ...
2
votes
4answers
1k views

Finding computer uptime from first day until now

I need to find PC uptime from the day of installation until now. Is this logged somewhere? Does any file log this cumulative uptime?
2
votes
1answer
206 views

write pc uptime in a file in shutdown

I need to log PC uptime. How I can do this? I use uptime for this and I will when ubuntu is shutdown write this command output in a file.
6
votes
3answers
13k views

Bash script to detect when my server is down or offline

Background : I need to receive an alert when my server is down. When the server is down, maybe the Sysload collector will not be able to send any alert. To receive an alert when the server is down, I ...
2
votes
1answer
414 views

System IDLE Time > System Uptime?

I was testing out the linux api while working on something but got stuck on the following output. [Abhii@localhost net]$ cat /proc/uptime 39135.53 149657.73 As per specs the first number should be ...
0
votes
1answer
370 views

Understanding system load

I was looking at the system load of my shared hosting account. $ uptime 09:14:37 up 21 days, 5:38, 4 users, load average: 3.85, 4.96, 5.21 I'm not worried by the first and second values, they ...
6
votes
5answers
3k views

Convert linux sysuptime to well format date

I want to display /proc/uptime in well format as: DD:HH:MM:SS /proc/uptime give me up time of system in seconds, is there a standard solution that convert seconds to this format?
2
votes
5answers
2k views

How to get a process uptime under different OS?

Under Linux I can get a process's uptime in seconds with: echo $(($(cut -d "." -f1 /proc/uptime) - $(($(cut -d " " -f22 /proc/$PID/stat)/100)))) But how can I get it under different OS? ex.: ...
4
votes
2answers
3k views

Uptime and who -b are showing different times when the system was last booted on Linux

I have a Linux system where it is showing to me two different times when the system was last booted. root@linux:~ # who -b; uptime system boot 2009-07-09 20:51 11:48am up 1 day 0:54, 1 ...
6
votes
2answers
2k views

Where can I find the source code for `uptime`?

I am learning Python. Till now I've been doing only basic Python coding. A day ago, I checked python implementation of tree command. Suddenly I thought of creating a Python clone for uptime. I don't ...