Additionally, we can shorten server to srv , and workstation to work. We can see a lot of information about the server service, like the number of sessions or accessed files, the print jobs, and so on. The most interesting part for us is the line beginning with Statistics since. There we can see the Windows start date and time.
We can use the output redirection and the command find , if we type this command:. The WMI subsystem contains all the information about the local Windows machine. You can get information like Windows version, memory, computer serial number, etc. 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.
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. Briefly reading through the PHP web site I'm not sure why you couldn't have done this Damn, this site is offensive, what with these popping out things all over the place I come across the following function: exec which allows you to execute an external program, and puts its output into a string[]. PHP 3. Once you've done that you can presumably tweak the contents of the string[] so that it looks like what you want.
Who knows? Not me. I would guess that some regexp magic would then be able to tidy it up. Search Advanced search…. Everywhere Threads This forum This thread. Search Advanced…. Log in. Trending Search forums. What's new. New posts Latest activity. View Uptime in Windows Thread starter starwarsdad Start date Nov 15, Sidebar Sidebar. Forums Software Operating Systems. JavaScript is disabled.
For a better experience, please enable JavaScript in your browser before proceeding. Previous Next. May 19, 1, 0 0. 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.
0コメント