How to escape a line feed in login banner via CLI?

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

How to escape a line feed in login banner via CLI?

L0 Member

What is the escape character/ sequence for LF or CR/LF in cli mode?

Via web interface it is possible to create a multiline login banner with line breaks that looks like the example below.

line 1 test

line 2 login

line 3 banner

This shows up tidy during login via cli and webinterface

$ ssh -l admin

line 1 test

line 2 login

line 3 banner


When configure the set config-output-format show the following code

admin@PA-500# show deviceconfig system

set deviceconfig system login-banner "line 1 test

line 2 login

line 3 banner


However, using this code will result into one line only

"line 1 test" and errors Unknown command: line for the remaining lines.


Accepted Solutions

Hello Todd,

Unfortunately this issue was never resolved. The only way to implement a 'clean' multiline login banner that shows up with the intended formatting on CLI and GUI login is to create it via web interface.


View solution in original post


L3 Networker

admin@PA-4050# set deviceconfig system login-banner "test <br> test3 <br> test56 <br>"

I am afraid that solves it only for the login via web interface.

Via CLI it results into the following banner:

$ ssh -l admin



That is because the you are using html so this will only affect the web ui. The ssh session will show you the entire string. If you also want to have this appear via ssh. please login to the web ui --> device --> setup --> configure login banner.

Thank you for the fast answer.

If I want the line breaks to show correctly during CLI login, I have to use the Web UI to configure the login banner?

There is no way to set the same configuration via CLI?

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!