リソースキットツール「Uptime.exe」
Windows NT Server 4.0/Windows 2000 Serverのリソースキットに付属するUptime.exe。
システムの稼働率を測るツールだ。
具体的には起動と終了の履歴、その間のシャットダウンされていたトータルの時間、リブートする平均間隔、ブルースクリーンの発生回数などなど。
しかもこのコマンドを実行しているコンピュータだけでなく、リモートコンピュータに対しても実行可能で、結構便利。
まあサーバの運用管理をやってる人以外には興味ないだろうし、そもそも意味不明かも。
運用管理をやってるお客さんからの問い合わせで、Windows Server 2003のリソースキットには付属していなかったらしく、このUptime.exeを探してみた。
このページからUptime.exeがダウンロード可能。
例によって機械翻訳で日本語がおかしいのはご愛嬌。
下のURLからはWindows 2000 Resource Kit Toolsの日本語ヘルプがダウンロード可能。
リソースキット本体には含まれないが、後からでもダウンロードできるのはありがたい。
http://support.microsoft.com/kb/232243/ja
・Uptime.exe ツールは、 Windows NT 4.0 SP4 または高くサーバーの可用性を見積もるのを許可します。
http://www.microsoft.com/japan/technet/prodtechnol/windows2000serv/proddocs/reskit/rktools.mspx
・Windows 2000 リソースキットツール オンラインヘルプ 日本語版
Windows Server 2003ではサポートされていないが、試してみた限りではWindows XP Professional SP2/Windows Server 2003 R2でも動作している。
ヘルプはこんな感じ。
C:\>uptime /?
UPTIME, Version 1.01
(C) Copyright 1999, Microsoft Corporation
Uptime [server] [/s ] [/a] [/d:mm/dd/yyyy | /p:n] [/heartbeat] [/? | /help]
server Name or IP address of remote server to process.
/s Display key system events and statistics.
/a Display application failure events (assumes /s).
/d: Only calculate for events after mm/dd/yyyy.
/p: Only calculate for events in the previous n days.
/heartbeat Turn on/off the system's heartbeat
/? Basic usage.
/help Additional usage information.
リモートコンピュータ\\norimaki2000に対し、2007年10月1日以降について、起動と終了の履歴を表示させてみた例。
19日間で7回リブートして、平均リブート間隔は2.85日。
最後の起動から2日と20時間54分18秒経過している。
C:\>uptime \\norimaki2000 /s /d:10/01/2007
Uptime Report for: \\norimaki2000
Current OS: Microsoft Windows XP, Service Pack 2, Uniprocessor Free.
Time Zone:
System Events as of 2007/10/20 22:04:19:
Date: Time: Event: Comment:
---------- ----------- ------------------- ------------------------------
2007/10/02 4:11:59 Shutdown Prior uptime:15d 5h:30m:20s
2007/10/03 1:26:45 Boot Prior downtime:0d 21h:14m:46s
2007/10/03 3:02:13 Shutdown Prior uptime:0d 1h:35m:28s
2007/10/03 22:03:10 Boot Prior downtime:0d 19h:0m:57s
2007/10/06 20:17:15 Shutdown Prior uptime:2d 22h:14m:5s
2007/10/06 23:04:36 Boot Prior downtime:0d 2h:47m:21s
2007/10/09 3:25:10 Shutdown Prior uptime:2d 4h:20m:34s
2007/10/10 0:27:48 Boot Prior downtime:0d 21h:2m:38s
2007/10/12 2:33:45 Shutdown Prior uptime:2d 2h:5m:57s
2007/10/12 7:18:16 Boot Prior downtime:0d 4h:44m:31s
2007/10/15 4:16:45 Shutdown Prior uptime:2d 20h:58m:29s
2007/10/16 1:08:41 Boot Prior downtime:0d 20h:51m:56s
2007/10/18 1:10:24 Boot
Current System Uptime: 2 day(s), 20 hour(s), 54 minute(s), 18 second(s)
---------- ----------- ------------------- ------------------------------
Since 2007/10/01: (Last 19 Days)
Total Reboots: 7
Mean Time Between Reboots: 2.85 days
Total Bluescreens: 0
---------------------------------------------------------------------------
Since 2007/10/01: (Last 19 Days)
System Availability: 100.0000%
Total Uptime: 19d 21h:1m:9s
Total Downtime: 0d 0h:0m:0s
Total Reboots: 0
Total Bluescreens: 0
Notes:
2007/10/01 is the earliest date in the event log where
sufficient information is recorded to calculate availability.