From: Jim Feldman (Jim.Feldman@amex.com)
Date: Thu Oct 06 2005 - 12:40:09 GMT-3
Thanks, Bob. I'll try it.
-----Original Message-----
From: Bob Sinclair [mailto:bob@bobsinclair.net]
Sent: Thursday, October 06, 2005 11:38 AM
To: Jim Feldman
Subject: Re: Ping Script should work but doesn't
Jim,
Some IOS seem to require the "puts" syntax as below. Without it, the pings
actually happen (check debug icmp) but the result does not display. Give it
a shot.
foreach addr {
172.16.123.1
172.16.123.2
127.16.123.3
} {puts [exec "ping $addr"]}
HTH,
Bob Sinclair
CCIE #10427, CCSI 30427, CISSP
www.netmasterclass.net <http://www.netmasterclass.net>
----- Original Message -----
From: Jim <mailto:Jim.Feldman@amex.com> Feldman
To: Ccie Lab (E-mail) <mailto:ccielab@groupstudy.com>
Sent: Thursday, October 06, 2005 10:49 AM
Subject: Ping Script should work but doesn't
Hi guys,
I'm running the following script which I've run dozens of times before on
other routers without problems but for some reason I can't figure out,
nothing's doing on the router below.
Any one have any ideas?
foreach i {
216.221.208.144
216.221.208.133
216.221.208.132
216.221.208.129} {ping $i}
22T08-CORP-R01#sh ver
Cisco IOS Software, 2600 Software (C2691-ADVIPSERVICESK9-M), Version
12.3(11)T5,
RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
<http://www.cisco.com/techsupport>
Copyright (c) 1986-2005 by Cisco Systems, Inc.
Compiled Sat 02-Apr-05 22:40 by yiyan
ROM: System Bootstrap, Version 12.2(8r)T2, RELEASE SOFTWARE (fc1)
22T08-CORP-R01 uptime is 1 week, 5 days, 1 minute
System returned to ROM by reload
System image file is "flash:c2691-advipservicesk9-mz.123-11.T5.bin"
TIA, Jim
This archive was generated by hypermail 2.1.4 : Sun Nov 06 2005 - 22:00:49 GMT-3