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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

tcl and vty issue

Hi

I am trying to write a small tcl script that intends to send several pings and to check their results.

I am doing very basic tests and running into trouble.

So I am using a Cisco 1812 running IOS version 15.1(2)T1 and here are the tcl lines (similar to several examples in blogs):

set pingOut [exec "ping 192.168.4.1"]

puts stdout "*** $pingOut ***"

The weird thing is that it works first and I get something like

#puts stdout "*** $pingOut ***"

***
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.4.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms ***

but then after running the same code a few times I only get the following:

#puts stdout "*** $pingOut ***"

***  ***
Now if I reboot the router or add new vty's it works again. Though, "clear line" doesn't solve the issue. Also I would like to be able to run this bit of code several times without the need to do any manual cleaning. Any idea if I am missing something or if there is a bug in relation to this behaviour?

Thanks and regards,

Frederic

Everyone's tags (4)
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: tcl and vty issue

This is CSCtg89622.  It only affects 15.1(2)T, and will be fixed in the next 15.1T release.  The only workaround is to downgrade to 15.1(1)T for the time being.

2 REPLIES
Cisco Employee

Re: tcl and vty issue

This is CSCtg89622.  It only affects 15.1(2)T, and will be fixed in the next 15.1T release.  The only workaround is to downgrade to 15.1(1)T for the time being.

New Member

Re: tcl and vty issue

Hi Joseph

I downgraded to 15.1(1)T and I don't get the issue anymore. Thanks a lot for your help.


Regards,


Frederic

458
Views
0
Helpful
2
Replies
CreatePlease to create content