Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

TCL with CSM

Unanswered Question
Aug 13th, 2008
User Badges:

Hi All

I try to use TCL script with CSM Netconfig.

My script start with the tclsh command, but each time I try to use a function (ex.: while) that required to lets the brace open I have the following error



set x 0

while {$x < 10} {+>missing close-brace




incr x


If I put this with CLI everythings goes OK. I don't have the "+>missing close-brace" error, but it's appear that the Netconfig want to have the { and the } on the same line.

Does anyone already have this issue ?

Thanks you very much for your help.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Gilles Dufour Thu, 08/14/2008 - 00:04
User Badges:
  • Cisco Employee,

you should not put tclsh at the beginning.

You can download sample scripts from the software download page.

Look at the file c6slb-apc.4-2-1.tcl


martindesrosiers Thu, 08/14/2008 - 04:25
User Badges:

Thanks for your reply

But if I remove the tclsh command, how can I enter in the embedded tcl cisco's interpreter ?

Does it exist another way to call tcl script ?

Does the way to call tcl script from CSM is different from router CLI ways ?

Thanks Gilles

Gilles Dufour Thu, 08/14/2008 - 04:42
User Badges:
  • Cisco Employee,

The script can only be used for creating probes and nothing else.

When you define the probe type to be script, the CSM knows this is a TCL script.

No need for tclsh.


martindesrosiers Tue, 08/26/2008 - 04:44
User Badges:

But, If i want to modify the router's running config based on a TCL condition, how can I do that without tclsh command ?

Thank you very much for your help Gilles


This Discussion