Ask Experts Questions for FREE Help!
Ask    ||    Answer
 
Advanced  
 

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Networking   »   Ping detail

 
Thread Tools Search this Thread Display Modes
Question
 
 
#1  
Old Aug 16, 2009, 03:52 AM
Arunmathi
New Member
Arunmathi is offline
 
Join Date: Aug 2009
Posts: 1
Arunmathi See this member's comment history on his/her Profile page.
Ping detail

Is it possible to ping all the branch routers and the area routers of the company simultaneously?
If yes, in what language the program should be written for pinging?(all router's wan and lan ip are already known)

Reply With Quote
 
     

Answers
 
 
Old Aug 18, 2009, 02:25 PM   #2  
Network Expert
chuckhole is offline
 
Join Date: Jan 2008
Location: Houston, TX
Posts: 850
chuckhole See this member's comment history on his/her Profile page.
Call chuckhole via Skype™
Is this for a basic network monitoring system? What kind of results do you want to see? Do you want to add any action items/notifications in case of a failure? How many devices are you monitoring?

Check out SolarWinds or WhatUp Gold to name a few.

If you are wanting to do this yourself, then check out VBScript or Windows PowerShell. You can use the Windows Management Instrumentation (WMI) ping command to perform a scripted single ping. I do this in our logon scripts before attempting to make drive connections to shares.

Here is a VBScript version (paste the contents below to a text file and name it with a .VBS extension). Change the strServer = "ServerName" to your actual device name or IP address. Launch it a command prompt by typing the full name of the file.

strServer = "ServerName"
strWMIService = "ON"
Err.Clear
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
If Err.Number <> "0" then
Err.Clear
strWMIService = "OFF"
End if

if strWMIService = "ON" then
Set colItems = objWMIService.ExecQuery("Select * from Win32_PingStatus Where Address = '" & strServer & "'")
For Each objItem in colItems
If objItem.StatusCode = 0 Then
MachineStatus = True
Else
MachineStatus = False
End if
Next
if MachineStatus = True then
Wscript.Echo strServer & " is responding"
else
Wscript.Echo strServer & " is NOT responding"
end if
else
Wscript.Echo "There was an error in the WMI Service on this computer."
end if
  Reply With Quote
 
     

Your Answer
Email me when someone replies to my answer
Join Login





Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

 
Similar Sponsors


Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page

Similar Threads
can't see web pages but able to ping
(1 replies)
Cannot ping or access network PC
(2 replies)
ping issue
(2 replies)
Wont ping
(14 replies)
My psp dongle won't ping
(0 replies)

Search this Thread

Advanced Search

Bookmarks

Sponsors



Copyright ©2003 - 2009, Ask Me Help Desk.
All times are GMT -8. The time now is 02:47 AM.