- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
03-16-2021 04:41 PM
"set cli terminal height 500" appears to not work for me.
Anyone else find this?
Am I doing something wrong?
Thanking you for any reply....
03-18-2021 08:23 AM - edited 03-18-2021 12:01 PM
This is a great question that has been asked before in different ways.
When you use the command
set cli scripting-mode on
It should allow you to post many lines without issues, well over 500 lines.
This command is intended to Copy the config and then Paste it in without the traditional CLI responses. And those configs can be thousands of lines.
"When performing this kind of operation, the easiest way to get a good bearing on the configuration we're about to deploy is to resort to a comfortable text editor that allows us to easily scroll, highlight, and wrangle the multitude of lines into something comprehensible and accurate. Some text editors may add unexpected and invisible line breaks or formatting that could cause issues when importing the configuration. Of course, invisible formatting can result in error messages and some work in finding lines that need to be repaired, so the copy/paste operation will work.
For normal administrative operations, the CLI is set to interact with the administrator and provide feedback—it will not correct any commands and will output error messages if a command is incorrect, even if the command itself is accurate but invisible line breaks are present. To allow a long list of set commands to be submitted without worrying about line breaks, enable scripting mode.
> set cli scripting-mode on
Scripting mode suppresses any special characters used for formatting when accepting input from the CLI and also stops interacting with the administrator's commands (it will no longer try to autocomplete commands). This prevents error messages from appearing, and prevents the entire paste function from failing if one line has incorrect formatting or unsupported characters."
Other discussions:
I hope this helps.
03-17-2021 03:05 AM
Hi there,
What are you trying to achieve with this commands. It is usually used in conjunction with setting the terminal width when pasting in configuration.
If you are trying to increase the amount of output shown on the terminal, maybe set cli pager off is what you are looking for?
cheers,
Seb.
03-17-2021 11:51 PM
Thanks for reply
I am trying to achieve the setting of the width for when pastign in config
For example settting management interface ip address at build time
I cannot ee the whole command.
So this command seems to be the equivielent of termial width 512 in cisco ios.
Accept that it seems to have no effect what so ever.
Does it work for you?
03-18-2021 07:44 AM
Hello again,
To stop the line wrap use the command set cli scripting-mode on
Keep in mind that when this setting is enabled the autocomplete function does not work in either the view of configuration levels.
cheers,
Seb.
03-18-2021 08:23 AM - edited 03-18-2021 12:01 PM
This is a great question that has been asked before in different ways.
When you use the command
set cli scripting-mode on
It should allow you to post many lines without issues, well over 500 lines.
This command is intended to Copy the config and then Paste it in without the traditional CLI responses. And those configs can be thousands of lines.
"When performing this kind of operation, the easiest way to get a good bearing on the configuration we're about to deploy is to resort to a comfortable text editor that allows us to easily scroll, highlight, and wrangle the multitude of lines into something comprehensible and accurate. Some text editors may add unexpected and invisible line breaks or formatting that could cause issues when importing the configuration. Of course, invisible formatting can result in error messages and some work in finding lines that need to be repaired, so the copy/paste operation will work.
For normal administrative operations, the CLI is set to interact with the administrator and provide feedback—it will not correct any commands and will output error messages if a command is incorrect, even if the command itself is accurate but invisible line breaks are present. To allow a long list of set commands to be submitted without worrying about line breaks, enable scripting mode.
> set cli scripting-mode on
Scripting mode suppresses any special characters used for formatting when accepting input from the CLI and also stops interacting with the administrator's commands (it will no longer try to autocomplete commands). This prevents error messages from appearing, and prevents the entire paste function from failing if one line has incorrect formatting or unsupported characters."
Other discussions:
I hope this helps.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!