RE: Tcl scripting

From: Brian Dennis (bdennis@internetworkexpert.com)
Date: Thu Aug 24 2006 - 12:44:16 ART


That looks like it requires Tk which is the GUI part of TCL/Tk. Tk
isn't in the IOS that I know of.

Below is a link to the enhancements for TCL that were added to 12.3T.

Cisco IOS Scripting with Tcl
http://www.cisco.com/en/US/products/sw/iosswrel/ps5207/products_feature_
guide09186a00801a75a7.html

Lastly if you are not sure what TCL is and are curious as to if you need
to know it or not for the CCIE lab the answer is no.

HTH,

Brian Dennis, CCIE #2210 (R&S/ISP-Dial/Security)
bdennis@internetworkexpert.com

Internetwork Expert, Inc.
http://www.InternetworkExpert.com
Toll Free: 877-224-8987
Direct: 775-745-6404 (Outside the US and Canada)

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Victor Cappuccio
Sent: Thursday, August 24, 2006 5:41 AM
To: 'Leigh Harrison'
Cc: 'chris'; ccielab@groupstudy.com
Subject: RE: Tcl scripting

Hehehehe Leigh I'm going to try this on one of my routers for subnet and
broadcast calculation ;)
 
http://en.wikibooks.org/wiki/Programming:Tcl_Tcl/Tk_examples#A_little_sl
ide_
rule

-----Mensaje original-----
De: Leigh Harrison [mailto:ccileigh@gmail.com] Enviado el: Jueves, 24 de
Agosto de 2006 06:52 a.m.
Para: Victor Cappuccio
CC: 'chris'; ccielab@groupstudy.com
Asunto: Re: Tcl scripting

Hey Chris,

Have a look at this free wikibook for some tips on tcl.
http://en.wikibooks.org/wiki/Programming:Tcl

Hope that helps,
LH

Victor Cappuccio wrote:
> Chris, the RSH could be a pain below the arm, but one you get it if
> easy
>
> The only important part of the scrip is this exec rsh $ip "sho run |
> include hostname"
>
> That means connect to the IP Address ($IP) and do a show run and only
> show me the hostname of the device I'm queering
>
> Is the same as rsh 1.1.1.1 show run | in hostname While the other part

> of the script the Brians had done over there, is not
so
> important to remember
>
> You can still use macros at the switches to accomplish a ping test
> Something like conf t macro name ping do ping 1.1.1.1 do ping 2.2.2.2
> @
>
> macro global apply ping
>
> or at the routers the same principle as the page but not so Formatted,

> and more easier to remember :D
>
> tclsh
> foreach i {
> 1.1.1.1 <-- this addresses can be taken using show ip alias or
show

> 2.2.2.2 ip int brief
> } { ping $i rep 1 }
>
> If you have the IEWB they at WB Vol 2 Ver 3 they use this test in
> every of their lab (Great Work BTW), And I just saw the new validation

> and Verification from Vol 1 and they are pretty good doing the same.
>
> HTH
> Victor.-
>
>
>
> -----Mensaje original-----
> De: nobody@groupstudy.com [mailto:nobody@groupstudy.com] En nombre de
chris
> Enviado el: Miircoles, 23 de Agosto de 2006 07:09 p.m.
> Para: ccielab@groupstudy.com
> Asunto: Tcl scripting
>
> COuld someone preferably the auther of the following tcl script please

> provide a fully commented version
> http://www.internetworkexpert.com/resources/tclshrsh.htm
> how does it work i dont understand what every line does - is their a
> good book on tcl i should pick up ?
>
> ______________________________________________________________________
> _ Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
> ______________________________________________________________________
> _ Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Fri Sep 01 2006 - 15:41:58 ART