UPTIME(1) General Commands Manual UPTIME(1)NAME
uptime - show how long system has been up
SYNOPSIS
uptime
DESCRIPTION
Uptime prints the current time, the length of time the system has been up, and the average number of jobs in the run queue over the last 1,
5 and 15 minutes. It is, essentially, the first line of a w(1) command.
FILES
/vmunix system name list
SEE ALSO w(1)3rd Berkeley Distribution April 29, 1985 UPTIME(1)
Check Out this Related Man Page
UPTIME(1) User Commands UPTIME(1)NAME
uptime - tell how long the system has been running
SYNOPSIS
uptime [OPTION]... [FILE]
DESCRIPTION
Print the current time, the length of time the system has been up, the number of users on the system, and the average number of jobs in the
run queue over the last 1, 5 and 15 minutes. Processes in an uninterruptible sleep state also contribute to the load average. If FILE is
not specified, use /var/run/utmp. /var/log/wtmp as FILE is common.
--help display this help and exit
--version
output version information and exit
AUTHOR
Written by Joseph Arceneaux, David MacKenzie, and Kaveh Ghazi.
REPORTING BUGS
Report uptime bugs to bug-coreutils@gnu.org
GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
General help using GNU software: <http://www.gnu.org/gethelp/>
COPYRIGHT
Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO
The full documentation for uptime is maintained as a Texinfo manual. If the info and uptime programs are properly installed at your site,
the command
info coreutils 'uptime invocation'
should give you access to the complete manual.
GNU coreutils 7.1 July 2010 UPTIME(1)
Hi there,
do someone have detailed information how to interpret the uptime command or rather which values can be called normal?
(i know what the information means, but i have no idea if these values are ok or to high:
3:02pm an 13:53, 2 Benutzer, Durchschnittslast: 10,06, 12,05, 13,00)
... (5 Replies)
i'm trying to write a script that will check my os x box for uptime and autorestart gracefully if the uptime is greater than a certain number of days.
thus far i have this:
if uptime | cut -d ',' -f 1 | cut -d ' ' -f 4 -gt 10 ; then
echo "yes"
fi
this doesn't work and i've tried... (11 Replies)
hello folks!
how can I display just the uptime without the current time, the word "up", and the load averages using the uptime command or some other command I do not know about? (13 Replies)
I was told that there is a correspondance between the number of cpus, the load averages, and when the cpus reach 100% capacity.
I have 4 cpus and said that once the numbers hit 4.00, my CPUs are 100% at capacity. load average: 0.08, 0.09, 0.11
Is that correct?
Thank you (7 Replies)
Hi all,:o
i am new to shell scripting and i have aproblem like i just want to extractthe uptime of the system from an uptime command which gives the output as the Current time , how long the system has been running,how many users are surrently logged on and the system load averages for past 1,5,... (5 Replies)
Hi,
After run ps , uptime , w command I get reply "killed" as normal dba and staff group user.
As root every command works fine.
I cheched all the user settings , right with other servers and I could not find any error and other settings.
The oslevel is 5300-10-01-0921.
Any idea to... (12 Replies)
Hi,
Can someone explain in detail what 'uptime' ,'last reboot' and 'who -b' commands do in solaris.
this commands are not executing in every solaris box. why this is happening. Has solaris got some inbuilt commands into it. If yes then where i have found them?
Thanks,Soubhik (6 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Can you please advise a script for the following:
write linux service named system_up_duration .This service... (6 Replies)
Hi!
I want to extract the uptime from the output of the uptime command.
The output:
11:53 up 3:02, 2 users, load averages: 0,32 0,34 0,43
I just need the "3:02" part. How can I do this?
Dirk (6 Replies)
Hello folks,
uptime command not shows how long the system has been up.
I know it come from a corruption of /var/adm/utmpx file.
I've done :
cat /dev/null > /var/adm/utmpx
Now who and last commands work fine. But uptime still give me back an answer without the "up time".
In which... (6 Replies)
I need to get, in my application, in different methods, the uptime of the system in milliseconds.
time() - returns only seconds.
/proc/uptime - returns the seconds + a truncated milliseconds value, but it need to be parsed to extract data and convert it to milliseconds
Any other suggestions ? (6 Replies)
Hi:
I am very new to shell scripting, and started writing a script today. I am trying to read a server name from a list that stores server name and passing each server name to get the uptime. What i would to achieve is that, i should get a file with server names along with their uptimes on a... (12 Replies)
Hi,
Am writing a script where I want to find uptime of certain servers. Is there any command where we can find uptime without login to the server, since the server list is big logging to the server will time consuming.
Thanks in advance (7 Replies)
Hello,
Result of scripts are emty. If statements are not working but why?
What is right line?
1-
#!/bin/ksh
up=`uptime |awk '{print$3}'`
hostname=`hostname`
if ] && ]; then
echo "$hostname | $up | Running over than one year."
fi
exit 0
2-
#!/bin/ksh
up=`uptime |awk... (12 Replies)