09-27-2010 07:39 AM
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 192.168.1.1
line 1 test
line 2 login
line 3 banner
Password:
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.
01-03-2013 08:35 PM
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.
Thanks
09-27-2010 03:31 PM
admin@PA-4050# set deviceconfig system login-banner "test <br> test3 <br> test56 <br>"
09-27-2010 03:49 PM
I am afraid that solves it only for the login via web interface.
Via CLI it results into the following banner:
$ ssh -l admin 192.168.1.1
test<br>test3<br>test56<br>Password:
Thanks
09-27-2010 04:07 PM
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.
09-27-2010 06:16 PM
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?
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!