Solved

Ping Batch File

Posted on 2013-06-25
3
385 Views
Last Modified: 2013-07-17
I need to create a script which will output the data to one file ...  

I need to run ping -t -n 25 -l 100 192.168.14.253   ......   I need to run this for packet sizes
100, 500, 1000, 1600, 2000   ......  

Is there anyone that has a vb or windows script to acheive this .......

Thanks ....

Joel
0
Comment
Question by:jtbrown1111
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
Kyle Abrahams earned 500 total points
ID: 39276417
This is a start:

launch.bat
===========================
start test.bat 100
start test.bat 500
start test.bat 1000


test.bat
=====================================
ping -t -n 25 -l %1  192.168.14.253  >> %1.log


Unfortunately it fails when you try to write to the same log.  Can you write to multiple logs?
Perhaps add a timestamp and merge them later?
0
 

Author Comment

by:jtbrown1111
ID: 39276461
what I came up with is

for %a in (500, 750, 1000, 1600, 2000) do ping -t -n 5 -l %a 192.168.14.253 > >c:\ping.txt

seems to work fine if I create a blank file first ...... ..........        Thanks everyone
0
 
LVL 40

Expert Comment

by:Kyle Abrahams
ID: 39278170
confirm that you get the 750 and 1000 values?
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question