[TriLUG] to all the TCL junkies

Nick Goldwater nick at src-dst.com
Sun Mar 15 15:38:59 EDT 2009


Just set "term length 0" and you won't get the "--Mark--".
Nick

----- "Greg Brown" <gwbrown1 at gmail.com> wrote:

| From: "Greg Brown" <gwbrown1 at gmail.com>
| To: "Triangle Linux Users Group General Discussion" <trilug at trilug.org>
| Sent: Sunday, March 15, 2009 3:32:25 PM GMT -05:00 US/Canada Eastern
| Subject: Re: [TriLUG] to all the TCL junkies
|
| Well I'm finding that tclsh isn't implemented on all Cisco routers.
| In fact most that I have tried do not yet support this feature.
| Shame, really, because the 'show run' done through tclsh doesn't put
| those annoying "--Mark--" lines like it does if you run the same
| command from the enable prompt.  This would have made backing up the
| configs from the protected devices (behind firewalls) much easier.
| 
| Greg
| 
| 
| On 3/15/09, Bob Emerson <bob.remerson at gmail.com> wrote:
| > 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
| >
| > --
| >  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



More information about the TriLUG mailing list