josh803316 has asked for the wisdom of the Perl Monks concerning the following question:
So my question is, how can I change the command (not login) timeout setting? I know that Net::Telnet and openssh are used by Net::Appliance::Session but I'm not sure how to access the configuration options underneath.#!/usr/bin/perl use strict; use warnings FATAL => 'all'; use Net::Appliance::Session; my $ios_device_ip = '10.1.1.1'; my $ios_username = 'user'; my $ios_password = 'pass'; my $ios_enable_password = 'enable_pass'; $|=1; my $session_obj = Net::Appliance::Session->new( Host => $ios_device_ip, Transport => 'Telnet', Dump_log => 'dump.log', Input_log => 'input.log', Output_log => 'output.log' ); # give verbose output whilst we run this script $session_obj->input_log(*STDOUT); $session_obj->connect(Name => $ios_username, Password => $ios_password +, Timeout => 1000); $session_obj->do_paging(0); $session_obj->begin_privileged($ios_enable_password); $session_obj->cmd('upgrade all ftp://anonymous@host/buildname');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Command Timeout for Net::Appliance::Session
by ahmad (Hermit) on Jul 21, 2010 at 21:43 UTC | |
by josh803316 (Beadle) on Jul 22, 2010 at 16:32 UTC | |
by Anonymous Monk on Mar 10, 2014 at 18:37 UTC | |
by Anonymous Monk on Apr 07, 2016 at 20:22 UTC | |
by Anonymous Monk on Mar 17, 2016 at 15:46 UTC |