The documentation I have found for those devices (
here and
here) is not very friendly. In any case, they look too sophisticated to lack a setting to disable pagination. What do you get when you run
help at the CLI?
Anyway, supposing pagination can not be disabled, I would try the following ways:
1. You may be able to download the configuration file through the web interface. Even if that means doing some web-scraping, getting the file would be a reliable operation.
2. Those devices support the TR-069 management protocol (a SOAP interface). If it is enabled you could also use it to download the configuration file.
3. Maybe, the file is also downloadable using TFTP or SCP.
4. Finally, you can use some module as Expect or Net::Telnet to send the command to the device and then repeatedly wait for the --MORE-- prompt and send CRLFs. Then you will have to remove the prompts from the output, but be careful, because it would be easy to mangle the configuration.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.