LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
Search this Thread
Old 05-06-2006, 08:46 PM   #1
mindjet
Member
 
Registered: Feb 2006
Posts: 43

Rep: Reputation: 15
System Uptime


Hey

What's the best way to monitor the system uptime on my Suse10 box? I looked for a counter on the network interfaces, but I only saw the data transfer count.

Thanks
 
Old 05-06-2006, 09:18 PM   #2
mattl
Member
 
Registered: Mar 2004
Location: MA, USA
Distribution: OpenSuse 10, FC4/5, Mepis
Posts: 95

Rep: Reputation: 15
oddly its simply "uptime" (i know, you were expecting a 4 paramter stangely named command piped through 2 other commands).
 
Old 05-06-2006, 10:10 PM   #3
mac_casey
Member
 
Registered: Jun 2002
Location: Edmonton
Distribution: SUSE 10
Posts: 62

Rep: Reputation: 15
I also use "top". however...i like the uptime better 8)

cheers
 
Old 05-07-2006, 02:38 AM   #4
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
Alternatively, is you use a system monitor such as gkrellm, the uptime is always displayed
 
Old 05-07-2006, 06:12 AM   #5
mindjet
Member
 
Registered: Feb 2006
Posts: 43

Original Poster
Rep: Reputation: 15
that's perfect, thanks for your help.
 
Old 05-14-2006, 10:03 PM   #6
vskgopu
LQ Newbie
 
Registered: May 2006
Posts: 17

Rep: Reputation: 0
Hi friends....
How to find "how long the system has been up" .....
regardless of the system localtime..(i.e. It should not depend upon the system local time..coz someone may change the system local time..)

Plz help........
 
Old 05-14-2006, 10:38 PM   #7
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
Quote:
How to find "how long the system has been up" .....
regardless of the system localtime
The methods I know rely on comparing the date/time that the system started to another date/time. Only root can modify the date on my systems so I trust the value returned.

You could use an external box. For example, when the system boots it logs to (or emails) an external trusted system. Your calculations of uptime are done on this box instead. It's not very elegant though.
 
Old 05-15-2006, 02:35 AM   #8
vskgopu
LQ Newbie
 
Registered: May 2006
Posts: 17

Rep: Reputation: 0
Thanks friend i got solution by using the 'times' call it gives the number of ticks elapsed since the system has been up..
Any how thanks a lot..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
'Uptime' system load averages miknight Linux - General 14 01-30-2008 02:28 PM
is there any fun() available in linux to find system uptime without using sysinfo uppala MEPIS 2 06-15-2005 09:45 AM
uptime shows 3 users on system when there is only me. Is this normal? MichaelD Linux - Security 3 05-21-2005 11:05 PM
How to get System UpTime using C program ? D M Mehta Programming 1 02-25-2004 01:47 AM
uptime system call ?? Agent007 Programming 4 01-10-2004 04:31 AM


All times are GMT -5. The time now is 01:49 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration