From: Geoff Zinderdine (geoffz@xxxxxxx)
Date: Wed Nov 21 2001 - 05:37:57 GMT-3
> You can do what you're asking many different ways. Procomm has a
scripting
> language and keystroke recording. You might be able to do it with DOS
batch
> files if you have access to the Cisco Dial-out Utility (or similar com: to
telnet
> driver). The biggest problem you'll have is getting the timing right. A
write
> erase (and other commands) will need a delay after it or the next command
will be
> lost.
>
> Rodgers Moore, CCIE# 8153
Expect really is the best way to script stuff like this as it was designed
with automating interactive processes in mind. The Expect application will
wait until it receives a response that matches the regex that you wish it to
react to. To write a simple script to accomplish what you want wouldn't
take very long to learn. You may not want to add learning a scripting
language to your plate in the middle of CCIE training, but you certainly
would not regret adding this particular language to your palette once you
get a feel for it. Expect needs Tcl which you can get from ActiveState at
www.activestate.com for just about any OS for free. Expect you can download
from http://expect.nist.gov also for free.
The only book you would want to read about Expect is 'Exploring Expect' by
Don Libes, who also happened to invent Expect, though there are many good
online tutorials. As for commercial applications, I believe VanDyke
Technologies has included expect scripting in Secure CRT.
Regards,
Geoff Zinderdine
This archive was generated by hypermail 2.1.4 : Fri Jun 21 2002 - 06:45:20 GMT-3