From: parthiban@afilaindia.com
Date: Tue May 22 2007 - 05:45:11 ART
Try this one,
tclsh
foreach i {
202.144.22.6
202.144.22.7
202.144.22.8
202.144.22.9
} { puts [ exec "ping $i" ] }
Rgds,
Parthiban Devadass
Quoting To Be CCIE <ccierocks@gmail.com>:
> Group,
>
> I'm wondering if people can share the best way to run the tcl scripts to do
> the ping test. This is what I have been doing so far:
>
>
> 1) I go the the router/switch through the terminal server and enter this
> command:
>
> sh ip int brie | ex unass
>
> 2) I copy all the ip address assigned in the column while holding the ALT
> key and paste them into a text document for each router and switch.
>
> 3) To get in to tcl script I enter "tclsh"
>
> 4) Copy and paste all the address from the text document
>
> foreach address {
>
> 155.32.1.1
>
> 155.32.11.1
>
> 155.32.12.1
>
> 155.32.2.2
>
> 155.32.3.3
>
> } {ping $address}
>
> 5) Enter "exit" to get out the tcl prompt.
>
> I'm wondering if people can comment if this is the most effective way to do
> it in the CCIE exam?
>
> Thanks,
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
This archive was generated by hypermail 2.1.4 : Fri Jun 01 2007 - 06:55:21 ART