jpk236 has asked for the wisdom of the Perl Monks concerning the following question:

Is there a way to increase the LOGIN timeout for the Net::Appliance::Session module?

You can adjust the timeout when running commands, but I haven't found a way to adjust the timeout when establishing the actual session.

Thanks.

Replies are listed 'Best First'.
Re: Net::Appliance::Session Login Timeout
by wjw (Priest) on Jun 20, 2014 at 03:59 UTC

    Have not used this module, but reading the docs, this

    timeout => $seconds Configures a global default timeout value, in seconds, for interaction with the remote device. The default is 10 seconds. You can also set timeout on a per-command or per-macro call (see below).

    implies that 'all interactions' would include the login. Is it not working that way?

    ..curious..

    ...the majority is always wrong, and always the last to know about it...

    Insanity: Doing the same thing over and over again and expecting different results...

    A solution is nothing more than a clearly stated problem...otherwise, the problem is not a problem, it is a facct

      From my testing, this timeout value does not control the value when establishing the session. It only controls the value when running commands.

      The timeout value when establishing the session is always 10 seconds no matter what value I supply here.
Re: Net::Appliance::Session Login Timeout
by jpk236 (Monk) on Jun 20, 2014 at 12:04 UTC
    Also, I have tried to pass the transport-specific Timeout parameters through the constructor, such as this for 'SSH':
    connect_options => { opts => [ '-o', 'ConnectTimeout=100', ], },
    When establishing the session it still times out after 10 seconds:
    [ 11.389935] pr failed: [read timed-out at /usr/lib/perl5/site_perl/5 +.10.0/Net/CLI/Interact/Transport/Wrapper/Net_Telnet.pm line 35
    I can't find it, but I'm thinking there must be an 'alarm 10' (or something like this) buried somewhere in the module.