newkij1 has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks,
I am using Net::Telnet.
I am telneting into my server to get statistics and I am trying to save it to an array and display that array.
Other commands are working fine and I can store it into an array and I am able to display.
But for a particular one command , I am getting an error that "maximum input buffer length exceeded: 1048576 bytes".
How can I increase the buffer size ?
I tried :
my $obj = Net::Telnet->new( Timeout => 10, Errmode => 'return', Max_bu +ffer_length => 50*1024*1024, Prompt => 'SomePromptthatworkswell');
I know that output of the commad is pretty big. But I dont know how to work around to increase the buffer size. Any help would be appreciated.
Thanks,
NK
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: telnet max buffer exceeded
by graff (Chancellor) on May 17, 2014 at 02:28 UTC | |
by newkij1 (Initiate) on May 19, 2014 at 17:15 UTC | |
by newkij1 (Initiate) on May 29, 2014 at 14:43 UTC | |
|
Re: telnet max buffer exceeded
by BrowserUk (Patriarch) on May 16, 2014 at 22:32 UTC | |
by newkij1 (Initiate) on May 19, 2014 at 17:09 UTC |