Re: Modified TCL Script for CCIE LAB

From: Mathew Fernando (mathewfer@gmail.com)
Date: Sat Jul 22 2006 - 09:13:46 ART


Hi

Good. Looks simple.

By the way, does it work on new IOSs of CAT-3550 also?

mathew

On 7/22/06, Magmax <magmax@bigpond.net.au> wrote:
> Guys,
>
>
>
> Rack1R3#tclsh
>
> Rack1R3(tcl)#
>
> Rack1R3(tcl)#foreach i {
>
> +>
>
> +>150.1.3.3
>
> +>150.1.6.6
>
> +>144.1.34.4
>
> +>144.1.34.3
>
> +>144.1.24.2
>
> +>144.1.24.4
>
> +>144.1.46.4
>
> +>144.1.46.6
>
> +>54.1.10.6
>
> +>54.1.10.254
>
> +>200.0.0.1
>
> +>200.0.1.1
>
> +>200.0.2.1
>
> +>200.0.3.1
>
> +>
>
> +>} {ping $i source loopback0 repeat 10 timeout 1}
>
>
>
> Type escape sequence to abort.
>
> Sending 10, 100-byte ICMP Echos to 150.1.3.3, timeout is 1 seconds:
>
> Packet sent with a source address of 150.1.3.3
>
> !!!!!!!!!!
>
> Success rate is 100 percent (10/10), round-trip min/avg/max = 1/2/4 ms
>
> Type escape sequence to abort.
>
> Sending 10, 100-byte ICMP Echos to 150.1.6.6, timeout is 1 seconds:
>
> Packet sent with a source address of 150.1.3.3
>
> !!!!!!!!!!
>
> Success rate is 100 percent (10/10), round-trip min/avg/max = 1/3/4 ms
>
> Type escape sequence to abort.
>
> Sending 10, 100-byte ICMP Echos to 144.1.34.4, timeout is 1 seconds:
>
> Packet sent with a source address of 150.1.3.3
>
> !!!!!!!!!!
>
> Success rate is 100 percent (10/10), round-trip min/avg/max = 1/2/4 ms
>
> Type escape sequence to abort.
>
> Sending 10, 100-byte ICMP Echos to 144.1.34.3, timeout is 1 seconds:
>
> Packet sent with a source address of 150.1.3.3
>
> !!!!!!!!!!
>
> Success rate is 100 percent (10/10), round-trip min/avg/max = 1/2/4 ms
>
> Type escape sequence to abort.
>
> Sending 10, 100-byte ICMP Echos to 144.1.24.2, timeout is 1 seconds:
>
> Packet sent with a source address of 150.1.3.3
>
> !!!!!!!!!!
>
> Success rate is 100 percent (10/10), round-trip min/avg/max = 60/60/60 ms
>
> Type escape sequence to abort.
>
> Sending 10, 100-byte ICMP Echos to 144.1.24.4, timeout is 1 seconds:
>
> Packet sent with a source address of 150.1.3.3
>
> !!!!!!!!!!
>
> Success rate is 100 percent (10/10), round-trip min/avg/max = 1/2/4 ms
>
> Type escape sequence to abort.
>
> Sending 10, 100-byte ICMP Echos to 144.1.46.4, timeout is 1 seconds:
>
> Packet sent with a source address of 150.1.3.3
>
> !!!!!!!!!!
>
> Success rate is 100 percent (10/10), round-trip min/avg/max = 1/3/4 ms
>
> Type escape sequence to abort.
>
> Sending 10, 100-byte ICMP Echos to 144.1.46.6, timeout is 1 seconds:
>
> Packet sent with a source address of 150.1.3.3
>
> !!!!!!!!!!
>
> Success rate is 100 percent (10/10), round-trip min/avg/max = 1/3/4 ms
>
> Type escape sequence to abort.
>
> Sending 10, 100-byte ICMP Echos to 54.1.10.6, timeout is 1 seconds:
>
> Packet sent with a source address of 150.1.3.3
>
> !!!!!!!!!!
>
> Success rate is 100 percent (10/10), round-trip min/avg/max = 1/3/4 ms
>
> Type escape sequence to abort.
>
> Sending 10, 100-byte ICMP Echos to 54.1.10.254, timeout is 1 seconds:
>
> Packet sent with a source address of 150.1.3.3
>
> !!!!!!!!!!
>
> Success rate is 100 percent (10/10), round-trip min/avg/max = 68/68/72 ms
>
> Type escape sequence to abort.
>
> Sending 10, 100-byte ICMP Echos to 200.0.0.1, timeout is 1 seconds:
>
> Packet sent with a source address of 150.1.3.3
>
> !!!!!!!!!!
>
> Success rate is 100 percent (10/10), round-trip min/avg/max = 68/68/72 ms
>
> Type escape sequence to abort.
>
> Sending 10, 100-byte ICMP Echos to 200.0.1.1, timeout is 1 seconds:
>
> Packet sent with a source address of 150.1.3.3
>
> !!!!!!!!!!
>
> Success rate is 100 percent (10/10), round-trip min/avg/max = 68/68/68 ms
>
> Type escape sequence to abort.
>
> Sending 10, 100-byte ICMP Echos to 200.0.2.1, timeout is 1 seconds:
>
> Packet sent with a source address of 150.1.3.3
>
> !!!!!!!!!!
>
> Success rate is 100 percent (10/10), round-trip min/avg/max = 68/68/72 ms
>
> Type escape sequence to abort.
>
> Sending 10, 100-byte ICMP Echos to 200.0.3.1, timeout is 1 seconds:
>
> Packet sent with a source address of 150.1.3.3
>
> !!!!!!!!!!
>
> Success rate is 100 percent (10/10), round-trip min/avg/max = 68/68/72 ms
>
> Rack1R3(tcl)#
>
>
>
> Thanks to Scott for showing me TCL.
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>

-- 
Thanks

Mathew



This archive was generated by hypermail 2.1.4 : Tue Aug 01 2006 - 07:13:48 ART