Re: How to pass --MORE--
by FloydATC (Deacon) on Feb 13, 2015 at 10:48 UTC
|
On devices such as Cisco and HP switches/routers, you can adjust the "terminal length" or similar to prevent the --MORE-- prompt from appearing.
#term len 0
#show config
On Juniper devices, you can pipe any command output into "no-more" for the same result.
> show configuration | no-more
Check your particular OS/system for similar possibilities. This is a far simpler approach than trying to work around the problem on the receiving end.
-- FloydATC
Time flies when you don't know what you're doing
| [reply] [d/l] [select] |
|
|
Hi, we are try to get configuration backup of a Voice Device on network, it doesn't give all output on screen and there is no terminal length or any other term length command option option so we need to press enter when see --MORE-- ann try to get all input into a txt file is it possible?
| [reply] |
|
|
| [reply] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: How to pass --MORE--
by Corion (Patriarch) on Feb 13, 2015 at 10:06 UTC
|
Depending on how you connect to the remote device, Net::Telnet can also respond to a --MORE-- prompt.
Please show us the relevant parts of your code and the relevant parts of the Net::Telnet debug log so we can help you better.
| [reply] [d/l] |
Re: How to pass --MORE--
by Anonymous Monk on Feb 13, 2015 at 09:46 UTC
|
Use Expect; modify the commands to not page output; try setting $PAGER to something that won't cause output to be paged to begin with. I personally would go for second & first options, in that order.
| [reply] |
Re: How to pass --MORE--
by salva (Canon) on Feb 13, 2015 at 10:48 UTC
|
Read the documentation for that device and learn how to disable pagination. | [reply] |
Re: How to pass --MORE--
by QM (Parson) on Feb 13, 2015 at 09:45 UTC
|
Welcome to the monastary!
What system/OS are you on? (I recall an IBM TS system with smart monitors that said "--MORE--". I can't remember the fix for that.)
See How To Ask A Question (Simple English) (RFC).
-QM
--
Quantum Mechanics: The dreams stuff is made of
| [reply] |
|
|
Hi,
I worked on windows, we are try to get configuration backup of a Voice Device on network, it doesn't give all output on screen and there is no terminal length option so we need to press enter when see --MORE-- adn try to get all input into a txt file is it possible?
| [reply] |
Re: How to pass --MORE--
by Happy-the-monk (Canon) on Feb 13, 2015 at 09:50 UTC
|
Depending on the commands you are running remotely, there may be switches to tell them they are not being run interactively and change that behaviour - have you tried that?
Cheers, Sören
Créateur des bugs mobiles - let loose once, run everywhere.
(hooked on the Perl Programming language)
| [reply] |