Uptime Main Topic | Previous

Uptime Examples


Example One

Uptime with no options returns the system's uptime:

c:\uptime
\\DONFUNK-DEV2 has been up for: 13 day(s), 17 hour(s), 3 minute(s), 35 second(s)

Example Two

Uptime with the /s option returns system start and stop events as well as availability calculations.

c:\uptime /s
Uptime Report for: \\DONFUNK-DEV2

Current OS: Microsoft Windows 2000 Uniprocessor Free.
Time Zone: Pacific Daylight Time

System Events as of 9/15/1999 10:54:10 AM:

Date:      Time:        Event:               Comment:
---------- -----------  -------------------  -----------------------------------
 7/26/1999  1:01:48 AM  Boot
 7/26/1999  6:46:35 PM  Shutdown             Prior uptime:0d 17h:44m:47s
 7/26/1999  6:49:21 PM  Boot                 Prior downtime:0d 0h:2m:46s
 7/27/1999 11:49:23 AM  Shutdown             Prior uptime:0d 17h:0m:2s
 7/27/1999 11:52:14 AM  Boot                 Prior downtime:0d 0h:2m:51s
  8/5/1999 12:06:46 PM  Shutdown             Prior uptime:9d 0h:14m:32s
  8/5/1999 12:17:16 PM  Boot                 Prior downtime:0d 0h:10m:30s
  8/5/1999 12:37:10 PM  Shutdown             Prior uptime:0d 0h:19m:54s
  8/5/1999 12:39:32 PM  Boot                 Prior downtime:0d 0h:2m:22s
  8/6/1999  5:14:20 PM  Shutdown             Prior uptime:1d 4h:34m:48s
  8/6/1999  5:25:12 PM  Boot                 Prior downtime:0d 0h:10m:52s
  8/6/1999  5:43:10 PM  Shutdown             Prior uptime:0d 0h:17m:58s
  8/6/1999  5:45:31 PM  Boot                 Prior downtime:0d 0h:2m:21s
 8/23/1999 11:17:44 AM  Shutdown             Prior uptime:16d 17h:32m:13s
 8/23/1999 11:21:07 AM  Boot                 Prior downtime:0d 0h:3m:23s
  9/1/1999  5:10:32 PM  Shutdown             Prior uptime:9d 5h:49m:25s
  9/1/1999  5:13:18 PM  Boot                 Prior downtime:0d 0h:2m:46s
  9/1/1999  5:33:19 PM  Abnormal Shutdown    Prior uptime:0d 0h:20m:1s
  9/1/1999  5:39:14 PM  Boot                 Prior downtime:0d 0h:5m:55s

Current System Uptime: 13 day(s), 17 hour(s), 2 minute(s), 21 second(s)


--------------------------------------------------------------------------------

Since 7/26/1999:

           System Availability: 99.9409%
                  Total Uptime: 51d 9h:8m:36s
                Total Downtime: 0d 0h:43m:46s
                 Total Reboots: 10
     Mean Time Between Reboots: 5.14 days
             Total Bluescreens: 0

Example Three

To view a system's information for the previous n days, the /p:n switch may be used. For example to view the system information for the last 10 days use:

c:\uptime /s /p:10

Uptime Report for: \\DONFUNK-DEV2

Current OS: Microsoft Windows 2000 Uniprocessor Free.
Time Zone: Pacific Daylight Time

System Events as of 9/15/1999 11:01:22 AM:

Date:      Time:        Event:               Comment:
---------- -----------  -------------------  -----------------------------------

Current System Uptime: 13 day(s), 17 hour(s), 9 minute(s), 32 second(s)


--------------------------------------------------------------------------------

Since 9/5/1999: (Last 10 Days)

           System Availability: 100.0000%
                  Total Uptime: 10d 11h:1m:22s
                Total Downtime: 0d 0h:0m:0s
                 Total Reboots: 0
             Total Bluescreens: 0

Example Four

Uptime also allows the user to turn on and off the system's "heartbeat."

c:\uptime /heartbeat

The system heartbeat is a timestamp written to the registry
at a fixed interval. This timestamp is used by UPTIME
to calculate how long a system was down when it fails
to go through a normal shutdown. Using this heartbeat may
interfere with power management since it writes to the
disk at regular intervals. Therefore the system heartbeat
should not normally be used on a laptop.

NOTE: Any change to the heartbeat settings will not take
effect until the next reboot.

The system heartbeat is currently enabled.