cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
742
Views
5
Helpful
5
Replies

TCL with CSM

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

ex.:

tclsh

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.

5 Replies 5

Gilles Dufour
Cisco Employee
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

Gilles

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

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.

Gilles.

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

Does anyone has an idea for this ?

Thank you very much

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: