RE: scripts

From: Antonio Soares (amsoares@netcabo.pt)
Date: Tue May 22 2007 - 07:51:38 ART


I found very usefull the tcl procedures. This way you don't need to
copy/paste the script whenever you need to run it again:

R6#tclsh
R6(tcl)#
R6(tcl)#proc ping-igp {} {
+>(tcl)#
+>(tcl)#foreach ip {
+>(tcl)#
+>(tcl)#1.1.1.1
+>(tcl)#2.2.2.2
+>(tcl)#3.3.3.3
+>(tcl)#
+>(tcl)#} {puts [ping $ip]}}

R6(tcl)#ping-igp
Translating "1.1.1.1"

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

Translating "2.2.2.2"

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

Translating "3.3.3.3"

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

R6(tcl)#ping-igp

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

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

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

R6(tcl)#
 

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of To
Be CCIE
Sent: terga-feira, 22 de Maio de 2007 7:59
To: Cisco certification
Subject: scripts

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,



This archive was generated by hypermail 2.1.4 : Fri Jun 01 2007 - 06:55:21 ART