[TriLUG] to all the TCL junkies

Bob Emerson bob.remerson at gmail.com
Sun Mar 15 12:46:37 EDT 2009


That is a nice little description. But is there anyone who has done this?
I'm trying to work up perl to validate some settings on all my switches, but
having a little tcl script to do this would be nice also.

On Wed, Mar 11, 2009 at 11:11 AM, Ryan Leathers <rleathers at americanri.com>wrote:

> A couple of things Greg
>
> This is a fairly recent addition to IOS (the last 4 or 5 years I
> believe) so its not surprising  that a 15 year veteran might not notice it.
>
> The answer to your ssh question is NO. IOS only implements the TCL core.
> Don't expect to do everything you can think of using extra libraries.
> Thats not possible in IOS. For example, you can send HTTP get, but post
> isn't available since that function is not part of core. You can't do
> anything requiring UDP or any other more exotic protocol since all of
> these things would require extra libraries not available to IOS.
>
> Here is a tutorial page I've found useful
> http://wiki.nil.com/Tclsh_on_Cisco_IOS_tutorial
>
>
> Ryan
>
>
>
>
>
>
>
>
>
> Greg Brown wrote:
> > I just learned after, oh, fifteen years at least working with Cisco gear
> > there is a TCL shell lurking that is built into IOS.
> >
> > Really:
> >
> > rtpnxxxxx#tclsh
> > rtpnxxxxx(tcl)#puts "Hello, World!\n"
> > Hello, World!
> >
> >
> > rtpnxxxxx(tcl)#
> >
> > Is anyone using this?  If so, for what?  Would it be possible to open a
> > socket on a IOS device, listen for a SSH connection and dump info back
> and
> > forth?
> >
> > I'm looking for a problem to match this solution.
> >
> > Greg
> > --
> > TriLUG mailing list        :
> http://www.trilug.org/mailman/listinfo/trilug
> > TriLUG FAQ  : http://www.trilug.org/wiki/Frequently_Asked_Questions
> >
>
> --
> TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG FAQ  : http://www.trilug.org/wiki/Frequently_Asked_Questions
>



-- 
"Live life like you will die tomorrow, learn like you will live forever" --
Gandhi



More information about the TriLUG mailing list