[c-nsp] Cisco - TCL script document

Phil Mayers p.mayers at imperial.ac.uk
Sun Sep 10 18:26:30 EDT 2006


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.


More information about the cisco-nsp mailing list