Welcome Guest.   Make a donation to an author on the site December 22, 2014, 07:37:22 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Read the full one-year retrospective report on DonationCoder.com.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Need replacement for MS Uptime.exe  (Read 3349 times)
Stoic Joker
Honorary Member
**
Posts: 5,450



View Profile WWW Give some DonationCredits to this forum member
« on: November 15, 2011, 06:01:17 PM »

Greetings
   For many years one of my favorite utilities has been the incredibly brilliant and tiny MS Uptime.exe. It will give the current uptime of either LM, or any machine on the network. It will also dump the event logs (local or remote) of all the shutdown/reboot/BSOD & boot events which made creating a (up)timeline a snap for troubleshooting.

  But... It was written back in 1999, and is (for whatever reason) no longer reliable. It tends to crash when trying to get a list of when/why the (local or remote) machine was rebooted.

Here is a sample of it output (run locally):



  Lacking the time to scratch write it myself, I was hoping someone knew of a comparable alternative that was currently available (that works). CLI is preferable, but I'll suffer through a GUI if I have to.
Logged
Josh
Charter Honorary Member
***
Posts: 3,345



View Profile Give some DonationCredits to this forum member
« Reply #1 on: November 15, 2011, 06:03:44 PM »

http://uptimeexe.codeplex.com/#
Logged

Strength in Knowledge
Stoic Joker
Honorary Member
**
Posts: 5,450



View Profile WWW Give some DonationCredits to this forum member
« Reply #2 on: November 15, 2011, 06:23:40 PM »


That's only for getting the current uptime for local machine...And it is a .NET app (total deal breaker). The absolute last thing I ever want to even consider doing is installing anything on an unstable machine, especially if it's a server.

I'm looking for something that can query both local and remote machines. And that can do a complete dump of the event log boot records (as shown above).
Logged
PhilB66
Supporting Member
**
Posts: 1,510


View Profile Give some DonationCredits to this forum member
« Reply #3 on: November 15, 2011, 06:52:20 PM »

NTToolkit - http://netikus.net/produc...s_nttoolkit.html?SESSION=

PSTools - http://technet.microsoft....-us/sysinternals/bb896649
Logged
Josh
Charter Honorary Member
***
Posts: 3,345



View Profile Give some DonationCredits to this forum member
« Reply #4 on: November 15, 2011, 06:58:38 PM »

Was getting ready to suggest psinfo. It works really well too. I actually forgot I could use it for that until I read about the newest sysinternals releases.

Good find Phil!

WOW! Just checked out NTToolkit, another great find! Now to make it portable!
Logged

Strength in Knowledge
Stoic Joker
Honorary Member
**
Posts: 5,450



View Profile WWW Give some DonationCredits to this forum member
« Reply #5 on: November 15, 2011, 08:36:40 PM »


Thanks, but neither fits the requirements.

NTToolkit is dependent on VC9 runtime files, and its uptime only does LM. I need to be able to check the uptime of a remote machine, and optionally dump the event logs for either a LM or a remote machine.

PSTools I currently already use for other things...Specifically PsExec which is incredibly handy for all sorts of things. Unfortunately PsInfo is dependent on the Remote Registry service being started on the remote machine ... And while it is relatively trivial to launch the service manually as/if needed ... It really doesn't qualify (with the extra steps) as a quick answer. It also will not dump the event logs.

The output from the screenshot above would typically only take about 2 seconds even when run against a remote machine, and its only requirement was that the target machine must be running. That is the type of quick answer I'm looking for.
Logged
Josh
Charter Honorary Member
***
Posts: 3,345



View Profile Give some DonationCredits to this forum member
« Reply #6 on: November 15, 2011, 08:43:22 PM »

From a command prompt

systeminfo | find "Time:"
systeminfo /s \\192.168.1.1 | find "Time:"
Logged

Strength in Knowledge
Stoic Joker
Honorary Member
**
Posts: 5,450



View Profile WWW Give some DonationCredits to this forum member
« Reply #7 on: November 15, 2011, 10:56:06 PM »

From a command prompt

systeminfo | find "Time:"
systeminfo /s \\192.168.1.1 | find "Time:"

Um...
Quote
C:\Users\Stoic Joker>systeminfo /s \\192.168.0.4 | find "Time:"
System Boot Time:          10/4/2011, 7:01:38 PM

...Yes, I am too lazy to do-the-math... smiley

...Are you trying to subtly point me at the apparent fact that I'm going to have to write the damn thing myself?  cheesy
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.038s | Server load: 0.03 ]