Windows 2000 system uptime command


















However, I don't know how to get the uptime in seconds or whatever Windows give from the system to calculate it. If anyone can Get the uptime utility from MS. Its also part of the win resource kit. Skippy, that's what I thought here , btw But he wants to display it on a web served page via a script But i tried and couldn't get it to work. Then it's just a matter of simple subtraction. It'd be a simple matter to parse the output of the uptime progam linked to.

Or, you could use uptime once to start the heartbeat, and then read that from the registry. PeterB, Explain what you meant by that last statement? I know that IIS by default installs a few SSI bits and pieces, including the ability tho' turned off by default, IIRC, and needs a registry change to enable it to run a program and include its output into a page.

Presumably there's some other convention that they can use I don't know, as I've never needed to. I would be surprised if it weren't sufficiently Win32 savvy to be able to read the registry, too, but it looks like it can't, which sucks. I'm sure that perl for Win32 can. My boss and I were talking about how long some of our 2K servers have been up, and now I'm curious to see what uptime really is on these boxes.

They will probably all be getting a reboot in the very near future! I am almost convinced SP3 is not going to hose my production environment. Mar 19, 2, 0 0. Jul 1, 24, 2, Windows XP also has this feature, but the naming on the checkbox is different.

The window that pops up will show your network uptime, and will display how much data your server has sent and received since it was last rebooted. Right now, my best server has been up for days straight without a reboot. During that time, it has transmitted 1. Not too shabby for an internal documentation server! Nothinman Elite Member. Sep 14, 30, 0 0. It would be more reliable just to get the uptime util from sysinternals or the resource kit.

All it really does is count how long since the last bootup entry in the eventlog. CTho Elite Member. Jul 26, 9, 1 I think MS has a binary on their website - uptimei. SUOrangeman Diamond Member. Oct 12, 8, 0 0. The new version is so close, I can taste it. Nov 13, 11, 0 Im not running my Win2k AS at the moment, but if memory serves me right it lists uptime in the system information applet from the system tools section.

Jul 18, 2, 1 Furthermore, it can access remote Windows machines and read their information too. This is very useful trick if you need to check multiple machines from your computer. Our command for the local machine will be:. You can type everything in lower case my example below differs simply to highlighted the parameter name. The request will be processed and you should see response like. The output of the WMIC command will always be the same, regardless of your local date and time format.

The milliseconds are displayed after the dot. In our example, we have the value This means that the last system boot was on June 16 th 06 16 at Use the version that suits your needs.

I encourage you to investigate other parameters of the WMIC command — it may well save your day. Like Like. Yes, you will see the last boot up start time. Many application problems have roots in the too long continuous work. Is there any particular reason why do you need exact uptime?

As this information require calculation, you can even use a Python script, for instance. You are commenting using your WordPress.



0コメント

  • 1000 / 1000