TCL Scripting to verify Connectivity

Unanswered Question
Jun 28th, 2007

Im trying to run a tcl script to verify connectivity in my test lab but I can seem to get it to work. It takes all the commands but it never begins to ping my devices? Can anybody offer and assistance?

Here is the script im running:

tclsh

foreach address {

10.1.1.1

10.1.1.5

10.1.1.9

10.1.2.1

10.1.2.5

10.1.2.9

10.1.3.1

10.1.3.5

10.1.3.9

10.1.102.1

10.1.102.2

10.1.103.1

10.1.103.3

10.1.203.2

10.1.203.3

} { ping $address }

Then nothing happens....attached is a SS of the output.

Attachment: 
I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Edison Ortiz Fri, 06/29/2007 - 11:29

foreach address {

10.1.1.1

10.1.1.5

10.1.1.9

10.1.2.1

10.1.2.5

10.1.2.9

10.1.3.1

10.1.3.5

10.1.3.9

10.1.102.1

10.1.102.2

10.1.103.1

10.1.103.3

10.1.203.2

10.1.203.3

} {puts [exec "ping $address"] }

Actions

This Discussion