Note that there are some explanatory texts on larger screens.

plurals
  1. POPing one computer from multiple source IPs. read Source IPs from text. write results to text or web page
    primarykey
    data
    text
    <p>I need to ping one IP from multiple source IPs and write the results to a file or HTML page for the results. i need to get the results from all 4 pings to include TTL and how many of the 4 pings dropped and the ping time.</p> <p>I know with a IPv6 you can use the -S trigger in the ping command to designate a source IP but how do you do it for a IPv4 environment.</p> <p>Setup:</p> <p>Windows 2003 server R2 Standard x64. .txt file containing 85 IPv4 address i would like to use as the source IPs 1 target IPv4 address will be run from one central server will be logged in as admin on the central server</p> <p>Desired result: HTML page that displays the results grouped by source IP Results to include all 4 ping reply times, TTL, total packets sent, total packets received and average ping time in ms</p> <p>Now let me complicate things a bit. I am not in an environment that allows me to install any additional software that is not include in the windows 2003 server R2 standard x64 normal install. It has been ages since writing .bat files and my memory is still very weak on .bat files. All IP addresses are IPv4. While I do have FQDNs for all these servers I need to use IPs (for one reason or another)</p> <p>I have the following to create the page desired and ping from one system to many but the rest is where I am having my problems since I need to ping from many to one, and the only results my script gives me is properly formatted html pages but it only says processing=done Where have I gone wrong… please help…</p> <p>Thank you</p> <p>---edit--- by changing ping to ping.exe and placing %%i in quotes - "%%i" now i get results but not in the nice format i was hoping for. it gives the results in the format of pining 127.0.0.1 with 32bytes of date: reply from .... as if was just outputing to a text file. what i would like it to do is show it in a table format. have made the changes to the code below.</p> <pre><code>@echo off echo ^&lt;HTML^&gt;^&lt;HEAD^&gt;&lt;TITLE^&gt;SERVER PING INFO^&lt;/TITLE^&gt;^&lt;/HEAD^&gt; &gt;&gt;ping-results.html echo ^&lt;BODY GBCOLOR=#FFFFFF” TEXT=”#000000” LINK+#0000FF” VLINK=#800080”^&gt; &gt;&gt;ping-results.html echo ^&lt;p align="center"^&gt;^&lt;table border="1" width="600"^&gt; &gt;&gt;ping-results.html echo ^&lt;tr^&gt;^&lt;td^&gt;^&lt;B^&gt;ping results^&lt;/td^&gt; &gt;&gt; ping-results.html for /F %%i in (c:\ping-results\serverIP.txt) do ( echo Processing %%i... ping.exe "%%i" &gt; "c:\ping-results\%%i.html" /format:htable.xsl echo ^&lt;tr^&gt;^&lt;td^&gt;%%i^&lt;/td^&gt; &gt;&gt; ping-results.html echo ^&lt;td^&gt;^&lt;a href="c:\ping-results\%%i.html"^&gt;Results^&lt;/a^&gt;^&lt;/td^&gt; &gt;&gt; ping-results.html echo ^&lt;/tr^&gt; &gt;&gt; ping-results.html ) echo ^&lt;p align="center"^&gt;^&lt;b^&gt;^&lt;font size="+1" color="Red"^&gt;^&lt;BR^&gt;Completed at &gt;&gt; ping-results.html time /T &gt;&gt; ping-results.html echo - on &gt;&gt; ping-results.html date /T &gt;&gt; ping-results.html echo ^&lt;/font^&gt;^&lt;/b^&gt;^&lt;BR^&gt;^&lt;/p^&gt; &gt;&gt; ping-results.html echo. echo DONE!! </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload