simple ping test?

  • Thread starter Thread starter jas
  • Start date Start date
J

jas

I have multiple servers, printers all over the WAN that I would like to
ping on occasion to check the link is still alive, etc.

Im thinking something along the lines of maybe a simple batch file I can
call to ping the required devices in turn but to output the results into
a single file, is that possible or are there better ways of doing this?
Im only talking of 5 - 20 devices currently depending what im checking
at the time.
 
jas said:
I have multiple servers, printers all over the WAN that I would like to
ping on occasion to check the link is still alive, etc.

Im thinking something along the lines of maybe a simple batch file I can
call to ping the required devices in turn but to output the results into
a single file, is that possible or are there better ways of doing this?
Im only talking of 5 - 20 devices currently depending what im checking
at the time.

You could do something like this:

@echo off
set Servers=c:\Servers.txt
set Results=c:\Results.txt

if exist %Results% del %Results%
for /F %%a in (%Servers%) do ping %%a -n 1 >> %Results%
c:\Tools\blat %Results% -f .. -to ..

Place the IP addresses of your servers into c:\Servers.txt, then
schedule the batch file to run every 24 hours. It will send you
a summary report of all the servers it pinged. "blat.exe" is a
Command Line mailer that you can download from the Internet.
 
Back
Top