Anyone know of a ping tool that allows to import a list of computer names to ping?
Printable View
Anyone know of a ping tool that allows to import a list of computer names to ping?
Script it.. It isn't that hard.. Windows batch file or *nix shell script?
Fealing generouse today:
http://www.microsoft.com/technet/scr....mspx?mfr=true
Networking>>Client side managment>>Retrieving Network Configuration Information>>Ping Multiple Computers.
nmap will also do it using the -sP switch.
http://insecure.org/nmap/man/man-host-discovery.html
take a look at this
http://www.download.com/Colasoft-Pin...-10600552.html
Command Promp:
Type Ping xxx.xxx.xxx.xx(IP Address) ENTER
krytonic, I believe the guy has a long list of ips that he is intending to use so simply doing that command over and over would be cumbersome. Whereas a tool that he can simply copy and paste the ip addresses to would be much simpler.
To answer the op question I dont know of any particular tool, I am more partial to writing code when I need to do things. It seems that you have plenty of suggestions already. If you need some perl or c++ code give me a shout and I will toss you something together.
It would take about 10 minutes to script it. I would use VBS. Here is a quick link to an example vbs file that does what you want. http://http://www.microsoft.com/tech....mspx?mfr=true
X-scan ^.^
Well, none were what I was looking for. LinLover is correct. I want to be able to import, say, an Active Directory extract of computer names in .txt file and ping all of them.
I found a gui-based app a few years ago that did this but it's like a needle in a haystack now. I'm surprised people don't make stuff like this.
I like using Angry IP scanner. It is free and fast.
I made a batch file similar to this one and it works great:
http://www.computing.net/programming...rum/14766.html
100's of handy little ping tools here:
http://www.freedownloadscenter.com/B...opy-files.html
All free too.
We just wrote our own in VB.NET. Fairly easy to do, even with a rudimentary understanding of the language.
lol that was excessive. The framework for .net that is loaded into memory is huge. Here is what I wrote before it works fine.
file: PINGresults.txt - make a blank file
file: HOSTS.txt - add each host with a new line for each host not commas or anything like that
file: PingAll.cmd -
Its quick, its dirty, its simple, its easy. Just put the hosts in hosts.txt and run pingall.txt and it will ping all of them and it log the ones that did not respond in pingresults.txtCode:@Echo Off
TITLE Ping Test
SET MachineList=HOSTS.txt
SET ResultsFile=PINGresults.txt
CLS
ECHO.
IF NOT EXIST "%MachineList%" (
ECHO Cannot locate Machine List: %MachineList%
PAUSE>NUL
GOTO :EOF
)
FOR /f "tokens=*" %%M in (%MachineList%) do CALL :CHECK "%%M"
GOTO :EOF
:CHECK
SET Machine=%~1
SET Machine=%Machine: =%
PING -n 1 %Machine%>NUL
Echo Processing %Machine%
IF %ERRORLEVEL% EQU 0 ECHO %Machine% did respond at %Time%>>%ResultsFile%
EXIT /B
:EOF
Well, the pinging part was just a small part of a larger picture. There are many other things we're doing with this particular program that can't really be scripted : info gathering, remote task-management, etc...basically a techie 'all-in-one' program.
sam-spade tools? hehe
Or something to that effect. You could pull from a csv file if you wanted toCode:On Error Resume Next
If Wscript.Arguments.Count = 0 Then
Wscript.Echo "You must enter the computer name when starting this script."
Wscript.Quit
End If
strComputer = Wscript.Arguments.Item(0)
Set objShell = CreateObject("WScript.Shell")
strCommand = "%comspec% /c ping -n 3 -w 1000 " & strComputer & ""
Set objExecObject = objShell.Exec(strCommand)
Do While Not objExecObject.StdOut.AtEndOfStream
strText = objExecObject.StdOut.ReadAll()
If Instr(strText, "Reply") > 0 Then
' =====================================================================
' Insert your code here
' =====================================================================
Set objComputer = GetObject("WinNT://" & strComputer & "")
objComputer.Filter = Array("User")
For Each objUser in objComputer
Wscript.Echo objUser.Name
Next
' =====================================================================
' End
' =====================================================================
Else
Wscript.Echo strComputer & " could not be reached."
End If
Loop
I realize that this thread is a bit old... but nmap will do that too.Quote:
Originally Posted by not_it
nmap -sP -iL c:\cnames.txt
You may just have to format the export from AD. But, that is easy enough.
If you want a GUI, then there are several to choose from.
http://insecure.org/nmap/
Two more free tools to add to the list
http://sourceforge.net/projects/wnrtool/
http://www.tools4ever.com/products/free/freeping/
A ISP I use to work for used a program called whatsup. A little too expensive in my opinion but it can monitor everything under the sun and page the network admin when something fails. Also generates lots of graphs and charts for management.
http://www.ipswitch.com/products/whatsup/
Simple one line batch file.
FOR /F "tokens=1 delims=," %%a in (c:\temp\myiplist.txt) do ping -n 1 %%a >> c:\temp\pinganswers.txt