in reply to Re^2: Can't get data from cisco router/switch when telnetting in via perl script.
in thread Can't get data from cisco router/switch when telnetting in via perl script.
If you are receiving timeouts it is most likely the default prompt matching string is not matching your router's prompt.
Please read the documentation for Net::Telnet. To make your life easier, specifically look deeper at the likes of:
$t = new Net::Telnet (Timeout => 10, Prompt => '/bash\$ $/');
Note that you'll have to change the Prompt regexp to something that matches your router's prompt.. if you provide examples of what your router's prompts look like someone can suggest a suitable regexp.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Can't get data from cisco router/switch when telnetting in via perl script.
by monarch (Priest) on Aug 21, 2007 at 09:51 UTC | |
|
Re^4: Can't get data from cisco router/switch when telnetting in via perl script.
by odha57 (Monk) on Aug 21, 2007 at 19:29 UTC |