RE: TCLSH not showing results

From: Andrew Ballantyne \(aballant\) (aballant@cisco.com)
Date: Thu Jul 14 2005 - 12:24:31 GMT-3


Hi Lee,

I get the same problem. Strange, I'll may be try a 3600 with the lastest
12.2T release,

Cheers,
Andrew

-----Original Message-----
From: Lee Donald [mailto:Lee.Donald@t-systems.co.uk]
Sent: Thursday, July 14, 2005 8:24 AM
To: Andrew Ballantyne (aballant); ccielab@groupstudy.com
Subject: RE: TCLSH not showing results

Andrew,

Try this one.

tclsh

foreach address {
183.1.58.5
183.1.78.8
183.1.17.7
183.1.123.2
183.1.2.2
204.12.1.254
183.1.0.5
183.1.46.6
123.123.123.2
192.10.1.254

} {ping $address}

Regards

Lee.

-----Original Message-----
From: Andrew Ballantyne (aballant) [mailto:aballant@cisco.com]
Sent: 14 July 2005 16:14
To: ccielab@groupstudy.com
Subject: TCLSH not showing results

Hi,

This happens to be on a 7600, running the latest IOS on 12.2 and I see
similar on other devices. When I try to run an IOS command within a TCL
script I don't see the results

I run the following script...

(tcl)#foreach router {

+>192.168.2.2

+>192.168.1.1

+>} {

+>puts "ping router $router"

+>exec ping $router

+>}

ping router 192.168.2.2

ping router 192.168.1.1

But as you can see the print/puts line is printed at the right place (&
approx right time), but the ping results are not shown. Is there
something which has to be configured to run command in TCL, and see
their results?

Cheers.

Andrew



This archive was generated by hypermail 2.1.4 : Sun Sep 04 2005 - 17:00:29 GMT-3