Since it sounds like you'll need to your script to interactively respond to the remote device, I think that you need to use something like Expect.
I personally have never used expect, so I can't offer up more details on how to use expect. Based on my limited knowledge of expect, I believe that it can be used to issue a command, what for a specific response, and then issue another command based on the response received.
In reply to Re^3: Perl Script to enable Cisco
by dasgar
in thread Perl Script to enable Cisco
by Null_Route0
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |