07-13-2010
Even though you have your answer, the last reboot/boot time can be found with the 'last' command
Quote:
bash-3.00# last boot
wtmp begins Tue Jul 13 02:30
This User Gave Thanks to bankai For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Folks
uptime
12:24pm up 2 days, 3:12, 4 users, load average: 0.00, 0.00, 0.00
what does the load average figure mean..
regards
Hrishy (2 Replies)
Discussion started by: xiamin
2 Replies
2. UNIX for Dummies Questions & Answers
I'm trying to get the uptime of my computer (Mac OS X) and I can go into the terminal and type "uptime" OK, and that gives me a string with the uptime in it. The problem is that the string changes a lot, and its very difficult to get the data I'm trying to extract out cleanly.
Now I have 3... (2 Replies)
Discussion started by: Freefall
2 Replies
3. UNIX for Dummies Questions & Answers
On HP-UX, the 13th argument of uptime is sometime the load and sometime the word AVERAGE:???
14 Jun 06 5:00pm up 44 days, 54 mins, 0 users, load average: 0.00, 0.02, 0.03
14 Jun 06 5:15pm up 44 days, 1:09, 0 users, load average: 0.00, 0.01, 0.01
When the time is in minutes, then the load... (1 Reply)
Discussion started by: qfwfq
1 Replies
4. UNIX for Dummies Questions & Answers
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)
Discussion started by: MastaFue
13 Replies
5. Shell Programming and Scripting
Hi All,
I have created a script...
#!/bin/sh
datafile=ABC2008101601.OUT
indfile=ABCIND20081016.1.OUT
waittime=600
starttime=0
while
do
if
then
echo "Indicator file has arrived."
break
else
sleep 10;
((starttime=$starttime+10))
echo $starttime (2 Replies)
Discussion started by: Amit.Sagpariya
2 Replies
6. Solaris
HI All,
I have problem with "uptime" on one of the sun server.(SunOS 5.9 Generic_118558-11 sun4u sparc SUNW,Sun-Fire-V240).when i am issuing uptime command its not showing uptime.even its not showing output for who -b.
$ uptime
11:01am 1 user, load average: 0.06, 0.04, 0.03
$ who -b
$... (3 Replies)
Discussion started by: jeevanbv
3 Replies
7. Shell Programming and Scripting
Hi,
I need some help about a script i need to write.
I want to check , if some specific process, are running since 2 hours.
I tried to use a loop , grep my pid and use find -ctime on /proc directory, to list what i need.
for i in `ps -ef |grep process |grep -v grep|awk '{print $2}'`... (2 Replies)
Discussion started by: rokerij
2 Replies
8. Linux
Hi All
is there a way that i can return uptime if the machine has been on for longer than 4 days
thanks
ab (3 Replies)
Discussion started by: ab52
3 Replies
9. Shell Programming and Scripting
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)
Discussion started by: Dirk Einecke
6 Replies
10. War Stories
Hi All,
Having recently started a new job, a Data Center Migration in fact I have been tasked with looking at some of the older Solaris boxes when I came across this little gem.
nismas# uname -a
SunOS nismas 5.5.1 Generic_103640-27 sun4u sparc SUNW,Ultra-1
nismas# uptime
10:37am up 2900... (2 Replies)
Discussion started by: gull04
2 Replies
LEARN ABOUT MINIX
shutdown
SHUTDOWN(8) System Manager's Manual SHUTDOWN(8)
NAME
shutdown - graciously close the system down
SYNOPSIS
shutdown [-hrRmk] [-x code] [time-specification [message]]
DESCRIPTION
Shutdown is a program which allows a system operator to close down the system in an nice way. Shutdown informs the users why and when the
system is going down. This warning is issued 10 minutes before shutdown time and every minute in the last 5 minutes. At this time (5 min-
utes), shutdown creates a file /etc/nologin to prevent new users from logging in.
Shutdown keeps a logfile of shutdowns. Every shutdown is registered in /usr/adm/wtmp, if this file exists. After these actions, a call is
done to reboot(2) which actually brings the system down.
Time-specification may be something like 15:00, 15.00, +15, or now for a shutdown at 3pm (twice), 15 minutes from now, or immediately.
The message may be used to describe why the system is going down, it may also be typed on standard input with the -m option.
OPTIONS
-h This flag prevents the system from rebooting after the shutdown. The system can now be powered off. This is the default.
-r This flag indicates that the system should reboot after shutting down.
-R Reboot the system by resetting it. Normally the kernel will try to return to the Boot Monitor. With -R the system will receive a
hardware reset.
-x code
Halt the system and let the Monitor execute the given code as if typed at the monitor prompt. You can for instance use -x 'boot
hd0' as a very fast way to reboot "from the top."
-m Allows the operator to type a shutdown message on standard input, that will be added to the messages displayed on all terminals.
-k This option gives the possibility of terminating an already started shutdown. This is only possible if shutdown time has not yet
arrived.
-C Check if the system crashed. This option is not used at shutdown time, but at reboot time. It tells if the file systems should be
checked by testing if the last entry in the wtmp file is a shutdown entry. (A crude replacement for a file system clean flag.)
FILES
/usr/adm/wtmp, /etc/nologin, /usr/adm/authlog
SEE ALSO
reboot(2), wall(1), halt(8), boot(8).
AUTHOR
Edvard Tuinder (v892231@si.hhs.NL)
SHUTDOWN(8)