in reply to Re^4: How to pass --MORE--
in thread How to pass --MORE--
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.
|
|---|