Click to See Complete Forum and Search --> : uptime report


wikstrom
09-19-2001, 01:27 PM
I have a problem, I thought you might be able to help me with it. below is a copy of a "uptime" report from a DOS prompt for one of our Windows Servers. the key point is it shows System Availability 99.9970%.

My problem is that the "Suits" want a chart of system availability which is easy on a windows box, however if you do uptime at the Linux prompt, you don't get the same type of information. How do I sell to the "suits" that Linux is an answer to there problem and provide them with a chart the shows system availability the same way that uptime does on a Windows Box?????

I asked the "suits" for a chart showing me that people want to look at charts. they just gave me the "look" that my mother used to give me....


Thank you


DOS uptime printout
C:\>uptime \\servername /d:01/01/2001
Uptime Report for: \\servername
OS: Windows NT 4.0 (Build 1381), Service Pack 4, Multiprocessor Free.
Time Zone: Mountain Daylight Time
System Events as of 9/17/2001 2:53:27 PM:
Date: Time: Event: Comment:
---------- ----------- ------------------- -----------------------------------
5/27/2001 4:09:56 PM Shutdown
5/27/2001 4:12:27 PM Boot Prior downtime:0d 0h:2m:31s
6/28/2001 11:46:50 AM Shutdown Prior uptime:31d 19h:34m:23s
6/28/2001 11:49:11 AM Boot Prior downtime:0d 0h:2m:21s
Current System Uptime: 81 day(s), 3 hour(s), 1 minute(s), 2 second(s)
--------------------------------------------------------------------------------
Since 5/27/2001: (Last 112 Days)
System Availability: 99.9970%
Total Uptime: 112d 22h:38m:39s
Total Downtime: 0d 0h:4m:52s
Total Reboots: 2
Mean Time Between Reboots: 56.47 days
Total Bluescreens: 0

wreckd
09-19-2001, 02:59 PM
cool. i didn't even know about uptime on windows. that's pretty slick. ;)

i can't think of anything that works quite like that but the info shown could be gleaned from a few log files. obviously you can get the current uptime from uptime. the reboot info could be gleaned from lastlog.
last reboot
shows the times when the system restarted...look throug your output for "last" by itself. all runlevel changes should be shown. everything else in there is just some simple availability calculations...i imagine that it wouldn't take too much to write a script to do those for you.

edit:
i think you'll have to use "last -x" to show all the runlevel changes (besides restarts).

[ 19 September 2001: Message edited by: wreckd ]