Posted on 2009-02-18 06:38:21-08 by oliver in response to 9993
Re: Timeout during command execution
Hi Brian,

There are two ways to set a longer timeout, as mentioned in the manual.

The first is on a per-command basis, you issue something like:

$s->cmd(String => 'copy running-config tftp', Timeout => 60);

Or you can set it globally (i.e. will be used for all subsequent commands), and this is done via the Net::Telnet method:

$s->timeout(60);

I hope this helps,

regards,
oliver.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.