Question

Utility that counts network device reboots

Asked by: howei

I need an utility which would show exactly how many times a faulty machine has rebooted during the day time. Kind a ping with recording feature.

Is there anything that would do this that is low cost or free?

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2006-04-11 at 10:57:30ID21810129
Tags

ping

Topic

Miscellaneous Networking

Participating Experts
7
Points
300
Comments
22

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Sporadic Reboots
    A friend I know has a Acer computer with a K6-233 processor running Win95. It has an integrated AGI rage pro graphics chip. When left off overnight and then turned on in the morning it will run fine for a while but then will start rebooting all on it's own.It also locks up a ...
  2. Spontaneous rebooting
    If I recall correctly, I've only seen this in Win95 machines but I really suspect power issues. A machine could be in use or it could be idle - out of the blue it reboots. This phenomena is very intermittent. I've searched high and low for info. on this - including MSKB - ...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: jabiiiPosted on 2006-04-11 at 11:18:40ID: 16429771

You should just look at the event logs of the PC.
Or if it's a network device have the reboot notices emailed to you....
what type of device?

 

by: Intense_AngelPosted on 2006-04-11 at 11:21:32ID: 16429801

You can do this with a script.  And it is free.

 

by: fm250Posted on 2006-04-11 at 11:32:27ID: 16429924

if the machine running winxp or 2000 you can check  that under Event Viewer >> system
if it is a linux machine you can check system log file  under /var/log

 

by: howeiPosted on 2006-04-11 at 11:35:09ID: 16429946

Nope. This is firewall and I am pinging it but need to know the daily reboot count.

Angel
What kind a script would do this?

 

by: jabiiiPosted on 2006-04-11 at 11:43:51ID: 16430031

What type of firewall? Most already retain this information in their logs....

 

by: jabiiiPosted on 2006-04-11 at 11:44:14ID: 16430034

Or the ability to tell you via email or other if rebooted.

 

by: Intense_AngelPosted on 2006-04-11 at 11:46:18ID: 16430059

A vbscript....I will help you with it shortly.

 

by: howeiPosted on 2006-04-11 at 12:20:10ID: 16430351

Sonicwall.

It is logging too much information and sending to the email account.
I just need a simple daily count of reboot events.

 

by: fm250Posted on 2006-04-11 at 12:28:08ID: 16430424

Angel
you can filter only the lines that have info about the reboot and sent it to you or save it somewhere else where you can read it.  very simple script can do that for you if you have it configured to save the log file.
you need to provide what kind of OS and the format for the log file to let other people help you. if not saved what kind of firewall, cicso pix for example. so be specific

hope this helps!

 

by: Intense_AngelPosted on 2006-04-11 at 12:51:55ID: 16430654

Here is a script that I just finished up for you.  Copy the code into a text file and rename it to pings.vbs.  To edit the script right click on it and edit.  You will need to do this for each device you want to monitor, because you need to put the ip address of the device your pinging into the script.  For each device you monitor the script will need to be placed in its on folder, it then writes continue to write to a file it will create called pings.txt.  Also....I did not add timing to the script...we can if you want, but you can just run it at certain times from your scheduler.


Here is the code.....

Option Explicit
'*
Const cVBS = "pings.vbs"
Const cTMP = "pings.tmp"
Const cTXT = "pings.txt"
Const cDOM = "150.202.72.43"
Const cIF1 = "Request timed out"
'*
Dim strOTF
strOTF = ""
Dim strRUN
strRUN = "%comspec% /c ping " & cDOM & " > " & cTMP
'*
Dim objWSH
Set objWSH = CreateObject("Wscript.Shell")
objWSH.Run strRUN, 0, true
Set objWSH = Nothing
'*
Dim objFSO
Set objFSO = CreateObject("Scripting.FileSystemObject")
Call Got()
If strOTF <> "" Then Call Put()
Set objFSO = Nothing

Sub Got()
Dim objOT1
Set objOT1 = objFSO.OpenTextFile(cTMP,1)
strOTF = objOT1.ReadAll
If InStr(strOTF,cIF1) = 0 Then strOTF = ""
Set objOT1 = Nothing
objFSO.DeleteFile cTMP
End Sub

Sub Put()
Dim objOT2
Set objOT2 = objFSO.OpenTextFile(cTXT,8,True)
objOT2.WriteLine(Now() & " : " & strOTF)
Set objOT2 = Nothing
End Sub

 

by: jabiiiPosted on 2006-04-11 at 13:56:57ID: 16431338

 

by: howeiPosted on 2006-04-11 at 14:30:44ID: 16431636

Angel
I did like you said. Copied to Desktop, put in the folder, put the ping destionation IP in the script, double click on it but I don't see much happening neither the text file is created?

 

by: catoaguilarPosted on 2006-04-11 at 14:30:49ID: 16431637

First of all, a faulty firewall rebooting several times a day should only be used as a door stopper.

Now, if it has SNMP configured, you may ask the boot time (uptime) and with a small script, you may get the time of boot (actual time minus uptime) and compare it with last uptime recorded to check if it has booted during the period and keep counting and reset the counter every day and send an email at midnight with the number of reboots during the last day.

 

by: Intense_AngelPosted on 2006-04-11 at 14:47:45ID: 16431750

The text file won't be created unless the device is down, then it will continue to append to the same txt file everytime it detects nothing.

To test it, put a bogus ip address in the script and then try it, give it a little time because it goes through the ping and timeout sequence.

 

by: The--CaptainPosted on 2006-04-12 at 02:52:46ID: 16434542

Ping is not a tool for determining reboots.  Ping may fail due to a wide variety of conditions, one of which may be a device reset/reboot.

If your device supports SNMP, that would be a much more preferable tool to determine when your device is rebooting (and it can give you tons of additional info as well).

Do not use ping for this, unless you have absolutely no other options.

Cheers,
-Jon



 

by: jabiiiPosted on 2006-04-12 at 05:25:30ID: 16435320

being the FW already logs this event I would just filter the logs for it..... would save you time/effort.
you could even have a script than ran against your logs pulling that info out and dumping it to a file....so you only had to check that file..

 

by: pseudocyberPosted on 2006-04-12 at 06:14:50ID: 16435693

I agree with catoaguilar and Th--Captain

SNMP was designed to do exactly what you want.

We use SolarWinds Orion to do this - it monitors key devices and reports on utilization, reboots, etc.  It can also report on other things which an SNMP MIB may monitor - such as memory, disk, and processor utilization, interface throughput utilization, link up/down, high ping response times, etc.

SolarWinds makes a smaller portion of this capability which is client based instead of server based.

Orion:  http://www.solarwinds.net/Orion/Index.htm
Network Performance Monitor:  http://www.solarwinds.net/Tools/Network_Monitoring/Network_Perf_Monitor/index.htm

 

by: ksearchPosted on 2006-04-12 at 12:23:43ID: 16439552

There's a free utility from microsoft called uptime.  download it, and you can run it against the local machine, or any other box.  Several parameters to give more/less information.

http://www.microsoft.com/technet/archive/winntas/downloads/uptime.mspx?mfr=true

 

by: howeiPosted on 2006-04-12 at 12:37:04ID: 16439695

A lots of good info here guys. Great bunch!

Angel
I am not sure if this script is workin. Should it show in Task Manager?

SNMP
I have no experince messing with it. It sounds good. Have no money for Solar Winds now...

 

by: Intense_AngelPosted on 2006-04-12 at 12:45:29ID: 16439777

It is a very brief test and you most likely won't catch it in task manager.

The only way to verify it is working for you is..... put the script named pings.vbs in a folder all by itself, double click it and you will see a pings.tmp file created then deleted.  If it could get a response back then you will get nothing else....if it did not get a response back you will see a file created pings.txt, open that and it will give time and date of no response.

If you want to make sure it is creating the text file you need to put an ip address in the script that is bogus..like 197.34.78.5...run it and you will see the text file created.  

If you enter the script in the task scheduler to run however often everytime it cannot get a response back from your target it will add an additional line to your text file....pings.txt.

 

by: The--CaptainPosted on 2006-04-12 at 14:10:54ID: 16440486

>SNMP
>I have no experince messing with it. It sounds good.

We can get more specific if you can provide more details about your equipment.

You don't need SolarWinds to handle SNMP (it just makes it easier).

Cheers,
-Jon

 

by: pseudocyberPosted on 2006-04-13 at 03:47:48ID: 16444208

There are "free" tools to monitor networks which run on Linux.  They also rely on SNMP.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...