cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
697
Views
0
Helpful
1
Replies

Passing TCL statements using Rancid

Jonn cos
Level 4
Level 4

Hi all experts.

I am trying to pass the following configuration using RANCID tool

tclsh

set ip_address [exec "sh run int tun 1 | in ip address"]

ios_config "int tun 1" "shut" "int tun 2" "\$ip_address"

But when i perform the above, after getting the tcl prompt, anything i enter, doesnt take any effect. Why is this so ? any workaround for this pls ?

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

I seem to recall you had a problem with RANCID and Tcl before.  I thought you said an upgrade fixed it (https://supportforums.cisco.com/message/3260179#3260179).  What changed between then and now?  Do the commands work if you enter them manually?  Remember to add an "end" as the last argument to ios_config.

Review Cisco Networking for a $25 gift card