"set cli terminal height 500" not work

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

"set cli terminal height 500" not work

L1 Bithead

"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....

1 accepted solution

Accepted Solutions

L7 Applicator

 

@Shaun_Louw 

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 feedbackit 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:

https://live.paloaltonetworks.com/t5/general-topics/increase-paste-buffer-on-pan-or-other-import-met...

 

https://live.paloaltonetworks.com/t5/general-topics/run-multiple-local-script-commands-in-cli/m-p/37...

 

I hope this helps.

LIVEcommunity team member
Stay Secure,
Joe
Don't forget to Like items if a post is helpful to you!

View solution in original post

5 REPLIES 5

L3 Networker

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.

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?

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.

L7 Applicator

 

@Shaun_Louw 

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 feedbackit 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:

https://live.paloaltonetworks.com/t5/general-topics/increase-paste-buffer-on-pan-or-other-import-met...

 

https://live.paloaltonetworks.com/t5/general-topics/run-multiple-local-script-commands-in-cli/m-p/37...

 

I hope this helps.

LIVEcommunity team member
Stay Secure,
Joe
Don't forget to Like items if a post is helpful to you!

Thank you @jdelio !!

  • 1 accepted solution
  • 6430 Views
  • 5 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!