RE: TCL ping script with tos and byte size option?

From: CharlesB (cbalik@adelphia.net)
Date: Sun Aug 27 2006 - 20:05:43 ART


First, get in the tcl level

r5#tcl
r5#tcl?
tclquit tclsh

r5#tclsh
r5(tcl)#

Then, paste your script.

r5#tclsh
r5(tcl)#foreach i {
+>(tcl)#150.3.1.1
+>(tcl)#150.3.2.2
+>(tcl)#150.3.3.3
+>(tcl)#150.3.4.4
+>(tcl)#150.3.5.5
+>(tcl)#150.3.6.6
+>(tcl)#150.3.7.7
+>(tcl)#150.3.8.8
+>(tcl)#192.10.3.6
+>(tcl)#204.12.3.4
+>(tcl)#54.3.2.6
+>(tcl)#} { puts [ exec "ping $i" ] }

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.3.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 84/85/88 ms

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.3.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 112/114/116 ms

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/60/60 ms

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.3.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/30/32 ms

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]On Behalf Of F
R
Sent: Friday, August 25, 2006 10:25 AM
To: Niche
Cc: ccielab@groupstudy.com
Subject: Re: TCL ping script with tos and byte size option?

All,

i have question about this tcl script..
if i have tcl script like this :

foreach i {
200.0.0.1
200.0.1.1
200.0.2.1
} { puts [ exec "ping $i" ] }

where i input the script or how to implement this scrip..
sorry my question is very basicly..

thanks,
beat

On 8/23/06, Niche <jackyliu419@gmail.com> wrote:
>
> Hi guys,
>
> Anyone know how to specify TOS value and the ping packet size in
> normal TCL ping script?
>
> Cheers~
> Jacky
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Fri Sep 01 2006 - 15:41:58 ART