[c-nsp] Cisco - TCL script document

Shakeel Ahmad shakeelahmad at gmail.com
Mon Sep 11 09:18:15 EDT 2006


http://search.cpan.org/dist/Net-Telnet/lib/Net/Telnet.pm

look at the third example.


On 9/11/06, Netfortius <netfortius at gmail.com> wrote:
>
> On Sunday 10 September 2006 17:26, Phil Mayers wrote:
> > Joseph Jackson wrote:
> > >  For this like this you could save time and energy writing them as
> > > expect scripts.
> >
> > Save time? Unlikely. Net::Telnet::Cisco has considerable code for
> > dealing with the standard cisco CLI output such as error messages, the
> > pager and the various prompt formats, and several useful helper methods
> > for login, enable, and so forth. Reproducing that in Expect is a waste
> > of time, and Except is anyway awful (because it's a dialect of Tcl,
> > which is awful, bringing us back to the thread topic :o)
> >
> > In my experience, just the basic loop for expect'ing a cisco would be
> > later than an entire perl+Net::Telnet::Cisco script, and much less
> > reliable to boot.
>
> How about the Net::SSH module - is that as good as the telnet one, for
> dealing
> with the Cisco output? I am asking because telnet has long *departed* (i.e
> .
> not allowed for) all my devices, and I am still doing my stuff with
> Expect ...
>
> Stefan
> _______________________________________________
> cisco-nsp mailing list  cisco-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-nsp
> archive at http://puck.nether.net/pipermail/cisco-nsp/
>


More information about the cisco-nsp mailing list