Solved

Uptime on NT4 workstation

Posted on 2002-03-05
6
912 Views
Last Modified: 2013-12-28
How can I tell how long my NT4 workstation has been up ?

I am a Unix Admin, and in unix there is a command 'uptime'.

Thanks
0
Comment
Question by:garyphipps
6 Comments
 
LVL 10

Expert Comment

by:AndresM
Comment Utility
In task manager, the System Idle Process shows shows it CPU Time.
That is the only process that is running since the startup of the machine and never stops, so that time is showing how long the workstation has been up.
Hope this helps.
0
 
LVL 95

Accepted Solution

by:
Lee W, MVP earned 75 total points
Comment Utility
AndresM is not quite correct.  While system idle process is the only process certain to be up all the time, it's time is only that for which the CPU has been idle.  If, for example, you ran SETI@HOME and your system was on for 42 hours, your system idle process might only say 20 minutes, because seti has used 40 hours and the rest of the system processes used 1:40.

The most effective way (and arguably the most reliable) is by typing "net statistics workstation | more".  Also, substituting server for workstation will work as well.  What this does is tell you when the workstation (or server) service last started.

There are various freeware and shareware utilities as well that are supposed to give "uptime" values, but without knowing how they determine that, it's difficult to be certain how accurate they are.  Given workstation and server services are RARELY restarted by themselves, they are reasonably accurate representations of uptime.

0
 
LVL 10

Expert Comment

by:AndresM
Comment Utility
leew , thanks for your correction, and garyphipps, sorry for my erroneus comment....

This may help:
Uptime.exe Tool Allows You to Estimate Server Availability with Windows NT 4.0 SP4 or Higher (Q232243)
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q232243
0
Are end users causing IT problems again?

You’ve taken the time to design and update all your end user’s email signatures, only to find out they’re messing up the HTML, changing the font and ruining the imagery. What can you do to prevent this? Find out how you can save your signatures from end users today.

 
LVL 11

Expert Comment

by:griessh
Comment Utility
You can find a uptime command line tool at:
http://mrdo.com/archive.htm

The source code is included. It uses the number of milliseconds of the tick counter. This counter starts at 0 when you start your system.

======
Werner
0
 
LVL 86

Expert Comment

by:jkr
Comment Utility
My recommendation is the pstools suite from http://www.sysinternals.com/ntw2k/freeware/pstools.shtml - it came with PsUptime (now apparently part of PsInfo), and the other tools are definitely a "must have"...
0
 

Author Comment

by:garyphipps
Comment Utility
"et statistics workstation | more" is exactly what I wanted.

Thanks,
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

A few months ago I had an issue with LaserJet 1020 printer which was installed to XP and Windows 7.  It was installed to XP and working, but when I tried to connect from a Windows 7 PC, it would attempt connection and then fail.  Sometimes the Spool…
Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now