DBA Tips Archive for Oracle
Uptime for Windows - (2003, 2000, XP and NT)
by Jeff Hunter, Sr. Database Administrator
The UNIX operating systems comes with many powerful utilities; one of which is uptime. The uptime command is used to determine how long the server has been up and running. The output is usually similar to the following:
The powerful uptime command, unfortunately, does not come with Windows. We do, however, have a reliable method for determining the date when the server was last started using the net statistics server command:$ uptime 9:26AM up 82 days, 10:28, 1 user, load averages: 0.04, 0.07, 0.08
C:\> net statistics server Server Statistics for \\MELODY Statistics since 5/14/2006 11:15 AM Sessions accepted 1 Sessions timed-out 0 Sessions errored-out 0 Kilobytes sent 13 Kilobytes received 16 Mean response time (msec) 0 System errors 0 Permission violations 0 Password violations 0 Files accessed 8 Communication devices accessed 0 Print jobs spooled 0 Times buffers exhausted Big buffers 0 Request buffers 0 The command completed successfully.
Copyright (c) 1998-2017 Jeffrey M. Hunter. All rights reserved.
All articles, scripts and material located at the Internet address of http://www.idevelopment.info is the copyright of Jeffrey M. Hunter and is protected under copyright laws of the United States. This document may not be hosted on any other site without my express, prior, written permission. Application to host any of the material elsewhere can be made by contacting me at email@example.com.
I have made every effort and taken great care in making sure that the material included on my web site is technically accurate, but I disclaim any and all responsibility for any loss, damage or destruction of data or any other property which may arise from relying on it. I will in no case be liable for any monetary damages arising from such loss, damage or destruction.