Re: Ping Script

From: Hansang Bae (hbae@xxxxxxxxxx)
Date: Fri Dec 28 2001 - 01:00:02 GMT-3


   
At 11:13 AM 12/28/2001 +0800, Ivan wrote:
>I've read from the posting about Ping Script.
>Can anyone show me how to create a PING Script.

You can use any scripting language you want. Even simple NT 'DOS' script
will do in a pinch

for /L %i in (1,1,254) do ping 192.168.1.%i -n 2 -L 1472 > c:\foobar.txt

/L tells the FOR DO loop to use the values in the ( )
(1,1,254) is (Start value, Increment value, Ending value)
/L and -L are unrelated. I just like to use the maximum size ping packets.

(If you use it in a batch file, use %%i instead of %i)

hsb



This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:32:48 GMT-3