Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

How can I script a ping test to a number of hosts?

I would like to test the network links from the perspective of the host's receivers, Windows and Linux boxes. I am looking for an analysis of packet losses.

Is there a good way to test this? Would a ping test do it? Can a ping test be scripted from the router?

There are no errors on the receive ports of the switches, 6513s and 4506s.

By the way, I now believe in cleaning the fiber ends prior to inserting them in ports. I have use optics alcohol cleaning pads, but this is discouraged by Cisco. They also discourage liquid air. They prefer the dry cartriges.

I purchased a Fluke DTX-1800 cable tester. This gives me a pulse of the link quality. I live in the aerospace world.


Re: How can I script a ping test to a number of hosts?


I would advice the use of SLA monitoring in ur equipment. just need to check out that its available in ur IOS.

Check the command "ip sla".

Secondly there are host of tools comming which can monitor through pings link DUDE and WhatsUP.

Hope that will help.



New Member

Re: How can I script a ping test to a number of hosts?

Thanks for the reply. I don't have the VoIP software SLA though. I couldn't locate DUDE either. We do have WhatsUP but it will present a problem in my case because I can only reach the devices from their default gateways because of firewalls running on these hosts.

There are a couple of new options though. One is tclsh. This stands for Tool control language shell. It is available in IOS 12.3(2)T.

R1#tclsh. This page shows you how to use the command and another command called "macro".

I don't have either capability in my version. So I am still researching.