As an example of what you can scrape, you could do the following within the
parenthesis:

FOR /F "tokens=6 delims== " %%I IN ('findstr /I /C:"Average = "
%TEMP%\SpeedTest.txt') DO SET SpdTst=%%I


This capture the average ping round-trip time, and would allow you to
potentially flag latency problems, even if all the pings are successful.

--
Espi


On Thu, Nov 6, 2014 at 12:38 PM, David McSpadden <[email protected]> wrote:

>  Thanks guys.
>
> This helps.
>
>
>
>
>
> *From:* [email protected] [mailto:
> [email protected]] *On Behalf Of *Micheal Espinola Jr
> *Sent:* Thursday, November 06, 2014 3:07 PM
> *To:* ntsysadm
> *Subject:* Re: [NTSysADM] Dirty batch for up servers
>
>
>
> In its simplest form:
>
>
>
>  PING #.#.#.#>%TEMP%\SpeedTest.txt
>
> IF "%ERRORLEVEL%" NEQ "0" ()
>
>
>
> Echoing to a text file gives you the opportunity to scrape for any verbose
> output if you need to.  Within the parenthesis, you can do whatever you
> want based on a ping failure.
>
>
>   --
> Espi
>
>
>
>
>
> On Thu, Nov 6, 2014 at 8:13 AM, David McSpadden <[email protected]> wrote:
>
> I want to run a windows batch the just does a ping.
>
> If the ping returns good data do nothing but if the ping fails set an
> error code I can look for and address it outside the batch.
>
> Anyone have or can point me to a . b a t script that does this already??
>
> Thanks
>
>
>
> This e-mail and any files transmitted with it are property of Indiana
> Members Credit Union, are confidential, and are intended solely for the use
> of the individual or entity to whom this e-mail is addressed. If you are
> not one of the named recipient(s) or otherwise have reason to believe that
> you have received this message in error, please notify the sender and
> delete this message immediately from your computer. Any other use,
> retention, dissemination, forwarding, printing, or copying of this email is
> strictly prohibited.
>
>
>
> Please consider the environment before printing this email.
>
>
>
> This e-mail and any files transmitted with it are property of Indiana
> Members Credit Union, are confidential, and are intended solely for the use
> of the individual or entity to whom this e-mail is addressed. If you are
> not one of the named recipient(s) or otherwise have reason to believe that
> you have received this message in error, please notify the sender and
> delete this message immediately from your computer. Any other use,
> retention, dissemination, forwarding, printing, or copying of this email is
> strictly prohibited.
>
> Please consider the environment before printing this email.
>

Reply via email to