System Uptime
Just a quickie today:
Anyone know a command line command to display server uptime?
Systeminfo & srvinfo contain other stuff just one simply one line similar to the output of uptime on linux.
We work with both NT & 2003 servers (hence the mention of srvinfo and systeminfo)
Thanks in advance.
Just looking for a simple command not a batch file/install anything new etc
Anyone know a command line command to display server uptime?
Systeminfo & srvinfo contain other stuff just one simply one line similar to the output of uptime on linux.
We work with both NT & 2003 servers (hence the mention of srvinfo and systeminfo)
Thanks in advance.
Just looking for a simple command not a batch file/install anything new etc
Foolproof systems don't take into account the ingenuity of fools
Comments
-
sprkymrk Member Posts: 4,884 ■■■□□□□□□□http://support.microsoft.com/kb/232243
Just a stand alone executable you copy into your system folder/path. Not sure if that counts as something you need to install.All things are possible, only believe. -
Sie Member Posts: 1,195Thanks for the reply Mark
Unfortunatly i was wondering if there was just a command to use 'out of the box' as it will be used on numerous servers and putting this file on each server would take quite a while!!
Its more work than just doing it the long way with system info unfortuantely.
Many thanks for your reply however!Foolproof systems don't take into account the ingenuity of fools -
sprkymrk Member Posts: 4,884 ■■■□□□□□□□Your welcome.
Do you have an easy way to obtain a list of all your server names/ip's, like an export from AD? It would take me less than 30 minutes to copy that executable to all 450 of my network computers with a simple command line:for /f %C in (c:\temp\computernames.txt) do copy c:\temp\uptime.exe \\%C\admin$\
Are your computers widely distributed, or all on a high speed LAN?All things are possible, only believe. -
misterbob Member Posts: 1 ■□□□□□□□□□You can pipe the find command.
Example (on English windows):net stats srv | find "since"
And there you have just one line -
Sie Member Posts: 1,195That could work...
I would have to look into getting it signed off to deply it across all the servers.
Will see what happens. Thanks for your help.Foolproof systems don't take into account the ingenuity of fools -
sprkymrk Member Posts: 4,884 ■■■□□□□□□□misterbob wrote:You can pipe the find command.
Example (on English windows):net stats srv | find "since"
And there you have just one line
That's a nice one misterbob.
There is a difference in the output, but it's the same information.
C:\Documents and Settings\Mark>net stats workstation | find "since"
Statistics since 10/20/2007 8:39 AM
C:\Documents and Settings\Mark>uptime
\\357MAGNUM has been up for: 8 day(s), 1 hour(s), 55 minute(s), 55 second(s)All things are possible, only believe. -
Sie Member Posts: 1,195Thank you very much.
That should work fine
I pressume this runs based the service so aslong as the service hasnt been restarted / stopped shouldnt be any problems.
I cant think why it would on any of these servers so I will do some testing.
Thanks again both of you!!Foolproof systems don't take into account the ingenuity of fools