|Actually the ping operation is one part of the script, and comparing it with the exact IP and than write the particular character is other.|
for /f %%I in (ping) do (ping -n 1 %%I | find "Reply" >> nul
if errorlevel 1 echo %%I wan IP was Down >> logfail)
for /f "tokens=1 delims= " %%g in (logfail) do (
if %%g==10.10.10.10 echo FM02 server is down >> logosspingfail
if %%g==126.96.36.199 echo FM01 server is down >> logosspingfail )
@echo off > displayping.html
for /f "tokens=1 delims= " %%g in (logosspingfail) do @ECHO %%g >> displayping.html
so this is the example what i want,
i am having more that 250 IP so to remember ip on display is typical task, i.e. i want to compare it with ""if "" and than display the character only.
the Problem is - " one device is having 2 IP i want that if any of the IP is down it should display message, both IP down the same message should display."
i think now you are getting me wat exactly i want.
Hope for your response.
thanks for the earlier response