[c-nsp] Cisco - TCL script document

Netfortius netfortius at gmail.com
Mon Sep 11 08:19:42 EDT 2006


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


More information about the cisco-nsp mailing list