Solved

Ping Batch File

Posted on 2013-06-25
3
376 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
  • 2
3 Comments
 
LVL 39

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 39

Expert Comment

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

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

We were having a lot of "Heartbeat Alerts" in our SCOM environment, now "Heartbeat" in a SCOM environment for those of you who might not be familiar with SCOM is a packet of data sent from the agent to the management server on a regular basis, basic…
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now