kendroid has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to write a script that backs up router configs. I'm able to use Net::Telnet::Cisco to log into and enable the routers. My problem is, whenever I try to remotely copy the config files (copy startup-config tftp), it waits for more input (remote host & destination filename) and doesn't give a prompt back to me.
My inclination is to use Expect.pm. In fact, if I weren't inclined to use Perl for this -- it needs to be scalabe -- I'd just use plain vanilla expect. Unfortunately, the Expect.pm documentation is *very* crummy.
Any suggestions?
Thanks muchly,
Kendrick.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Seeking Help w/ Expect.pm...
by nardo (Friar) on Apr 20, 2001 at 10:25 UTC | |
by kendroid (Beadle) on Apr 20, 2001 at 20:59 UTC | |
|
Re: Seeking Help w/ Expect.pm...
by kendroid (Beadle) on Apr 20, 2001 at 01:38 UTC |