Re: TCL script

From: Leo Boulton (lb.ccie@gmail.com)
Date: Wed Sep 20 2006 - 09:55:21 ART


Fabio:
A typical TCL script for pinging sevearl IPs is:

R# tclsh
R(tclsh)# for each i {
192.168.1.1
192.168.1.2
192.168.1.3
200.1.2.3
200.1.2.4
} { puts [ exec "ping $i"]}

However, I have to mention a disclaimer. When you enter the tclsh mode, the
router will accept other commands, but sometimes would do weird stuff with
those commands. For example, on some IOS versions, if you configure a
Route-Map with match and set statements under the tclsh# prompt, the set
statements will not show up on the running config. Therefore you have to be
very cautios when using tcl scripts. Make sure you exit the tclsh mode
before entering commands.

-LB

On 9/19/06, Fabio Rodrigues <fleandror2@gmail.com> wrote:
>
> Notepad and Windows Calculator are allowed.
>
> Does anyone have a good TCL that can share ?
>
> Tks.
>
> ----- Original Message -----
> From: "Naveed Khan" <naveed_k@hotmail.com>
> To: <ccielab@groupstudy.com>
> Sent: Tuesday, September 19, 2006 11:37 PM
> Subject: TCL script
>
>
> > Hello
> > Please let me know in lab exam notepad is allowed? If is not allowed how
> > could
> > cut and paste tcl script on all routers and switches.
> > Naveed
> >
> > _______________________________________________________________________
> > 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 : Sun Oct 01 2006 - 16:55:41 ART