Computing.Net > Forums > Programming > Ping 6 ip's and e-mail me if fail

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Ping 6 ip's and e-mail me if fail

Reply to Message Icon

Name: gyi2os
Date: June 12, 2007 at 12:26:29 Pacific
OS: XP
CPU/Ram: 1gb
Product: dell
Comment:

Hi,

I need to have an easy to manage/understand batch file that will do this:

Every morning at say 9am - Send a PING to 6 different static IP's. If the IP FAILS to respond to the PING i need it to e-mail me with either the name of the computer or the IP address that failed.

i've searched and tried multiple scripts you as the forum have offered for other Ping troubles but they don't quite work for what i'm trying to get done here.

Any help would be greatly appreciated



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: June 13, 2007 at 02:41:36 Pacific
Reply:

::==
:: ping list and send FAIL email

@echo off
for /f %%I in (IPList.txt) do (
ping %%I > %temp%\#
find "Reply" < %temp%\# > nul
if errorlevel 1 echo her's where you send a report about %%I
)
::==


=====================================
If at first you don't succeed, you're about average.

M2



0

Response Number 2
Name: Shr0Om
Date: June 14, 2007 at 05:14:52 Pacific
Reply:

I havent tried exactly this one but i guess its worth a look. Its a program written in C++ that allows you to send mail from the command line:
http://dotnetjunkies.com/WebLog/joh...

If you are using exchange server its not gonna work tho.

This one seems to work with exchange, but its not free:
http://www.febooti.com/products/com...



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Ping 6 ip's and e-mail me if fail

E-mails,Ip adresses,ETc. www.computing.net/answers/programming/emailsip-adressesetc/13686.html

e-mail problem? www.computing.net/answers/programming/email-problem/5398.html

E-mail autoresponder customizing www.computing.net/answers/programming/email-autoresponder-customizing/7545.html