Re: How to use the TCL Script for verifying connectivity

From: ismail el-shalh (ishelh_mdsa@yahoo.com)
Date: Sun Sep 10 2006 - 02:45:14 ART


  Wow Wow, this is the first time I know that I can do TCL from inside the router :)
   
  Thanks sabrina, thanks Victor
   
   
   
  Rack1R5(tcl)#foreach i {
+>137.1.15.1
+>150.1.1.1
+>} {puts [exec "ping $i"]}
  Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 137.1.15.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/21/24 ms
  Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/22/24 ms

   
   
   
  sabrina pittarel <sabri_esame@yahoo.com> wrote:
  Hi,

Rack1R2#tclsh
Rack1R2(tcl)#foreach i {
+>130.1.124.1
+>130.1.124.4
+>} { ping $i }

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 130.1.124.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/40/40 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 130.1.124.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 80/80/80 ms
Rack1R2(tcl)#



This archive was generated by hypermail 2.1.4 : Sun Oct 01 2006 - 16:55:40 ART