Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

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

Re: TCL with CSM

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

New Member

Re: TCL with CSM

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

Cisco Employee

Re: TCL with CSM

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.

New Member

Re: TCL with CSM

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

New Member

Re: TCL with CSM

Does anyone has an idea for this ?

Thank you very much

157
Views
5
Helpful
5
Replies
作成コンテンツを作成するには してください