<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to escape a line feed in login banner via CLI? in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-escape-a-line-feed-in-login-banner-via-cli/m-p/14912#M10938</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the escape character/ sequence for LF or CR/LF in cli mode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Via web interface it is possible to create a multiline login banner with line breaks that looks like the example below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;line 1 test&lt;/P&gt;&lt;P&gt;line 2 login&lt;/P&gt;&lt;P&gt;line 3 banner&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This shows up tidy during login via cli and webinterface&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ ssh -l admin 192.168.1.1&lt;/P&gt;&lt;P&gt;line 1 test&lt;/P&gt;&lt;P&gt;line 2 login&lt;/P&gt;&lt;P&gt;line 3 banner&lt;/P&gt;&lt;P&gt;Password:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When configure the set config-output-format show the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;admin@PA-500# show deviceconfig system &lt;/P&gt;&lt;P&gt;set deviceconfig system login-banner "line 1 test&lt;/P&gt;&lt;P&gt;line 2 login&lt;/P&gt;&lt;P&gt;line 3 banner&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, using this code will result into one line only&lt;/P&gt;&lt;P&gt;"line 1 test" and errors Unknown command: line for the remaining lines.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Sep 2010 14:39:07 GMT</pubDate>
    <dc:creator>panwmod</dc:creator>
    <dc:date>2010-09-27T14:39:07Z</dc:date>
    <item>
      <title>How to escape a line feed in login banner via CLI?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-escape-a-line-feed-in-login-banner-via-cli/m-p/14912#M10938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the escape character/ sequence for LF or CR/LF in cli mode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Via web interface it is possible to create a multiline login banner with line breaks that looks like the example below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;line 1 test&lt;/P&gt;&lt;P&gt;line 2 login&lt;/P&gt;&lt;P&gt;line 3 banner&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This shows up tidy during login via cli and webinterface&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ ssh -l admin 192.168.1.1&lt;/P&gt;&lt;P&gt;line 1 test&lt;/P&gt;&lt;P&gt;line 2 login&lt;/P&gt;&lt;P&gt;line 3 banner&lt;/P&gt;&lt;P&gt;Password:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When configure the set config-output-format show the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;admin@PA-500# show deviceconfig system &lt;/P&gt;&lt;P&gt;set deviceconfig system login-banner "line 1 test&lt;/P&gt;&lt;P&gt;line 2 login&lt;/P&gt;&lt;P&gt;line 3 banner&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, using this code will result into one line only&lt;/P&gt;&lt;P&gt;"line 1 test" and errors Unknown command: line for the remaining lines.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 14:39:07 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-escape-a-line-feed-in-login-banner-via-cli/m-p/14912#M10938</guid>
      <dc:creator>panwmod</dc:creator>
      <dc:date>2010-09-27T14:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to escape a line feed in login banner via CLI?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-escape-a-line-feed-in-login-banner-via-cli/m-p/14913#M10939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-priority:99;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman","serif";}
&lt;/style&gt;
&lt;![endif]--&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;admin@PA-4050# set deviceconfig system login-banner "test &amp;lt;br&amp;gt; test3 &amp;lt;br&amp;gt; test56 &amp;lt;br&amp;gt;"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 22:31:30 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-escape-a-line-feed-in-login-banner-via-cli/m-p/14913#M10939</guid>
      <dc:creator>jnguyen</dc:creator>
      <dc:date>2010-09-27T22:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to escape a line feed in login banner via CLI?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-escape-a-line-feed-in-login-banner-via-cli/m-p/14914#M10940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am afraid that solves it only for the login via web interface.&lt;/P&gt;&lt;P&gt;Via CLI it results into the following banner:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ ssh -l admin 192.168.1.1&lt;/P&gt;&lt;P&gt;test&amp;lt;br&amp;gt;test3&amp;lt;br&amp;gt;test56&amp;lt;br&amp;gt;Password:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 22:49:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-escape-a-line-feed-in-login-banner-via-cli/m-p/14914#M10940</guid>
      <dc:creator>panwmod</dc:creator>
      <dc:date>2010-09-27T22:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to escape a line feed in login banner via CLI?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-escape-a-line-feed-in-login-banner-via-cli/m-p/14915#M10941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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 --&amp;gt; device --&amp;gt; setup --&amp;gt; configure login banner.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 23:07:17 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-escape-a-line-feed-in-login-banner-via-cli/m-p/14915#M10941</guid>
      <dc:creator>jnguyen</dc:creator>
      <dc:date>2010-09-27T23:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to escape a line feed in login banner via CLI?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-escape-a-line-feed-in-login-banner-via-cli/m-p/14916#M10942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the fast answer.&lt;/P&gt;&lt;P&gt;If I want the line breaks to show correctly during CLI login, I have to use the Web UI to configure the login banner?&lt;/P&gt;&lt;P&gt;There is no way to set the same configuration via CLI?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 01:16:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-escape-a-line-feed-in-login-banner-via-cli/m-p/14916#M10942</guid>
      <dc:creator>panwmod</dc:creator>
      <dc:date>2010-09-28T01:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to escape a line feed in login banner via CLI?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-escape-a-line-feed-in-login-banner-via-cli/m-p/14917#M10943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need check with engineering.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 20:37:42 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-escape-a-line-feed-in-login-banner-via-cli/m-p/14917#M10943</guid>
      <dc:creator>jnguyen</dc:creator>
      <dc:date>2010-09-28T20:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to escape a line feed in login banner via CLI?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-escape-a-line-feed-in-login-banner-via-cli/m-p/14918#M10944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning. Has there been any update on this? I currently have a 10 line login banner I am attempting to script and I have the same result; it all appears on one line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following, as entered, errors after the first line (obviously):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set deviceconfig system login-banner "COMPANY networks and systems are assets of the&lt;/P&gt;&lt;P&gt;corporation and are to be used by authorized personnel for&lt;/P&gt;&lt;P&gt;business purposes only.&amp;nbsp; COMPANY routinely monitors these&lt;/P&gt;&lt;P&gt;systems to protect them from unauthorized use and to&lt;/P&gt;&lt;P&gt;ensure system integrity.&amp;nbsp; COMPANY is committed to full&lt;/P&gt;&lt;P&gt;compliance with all data privacy laws and requires the same&lt;/P&gt;&lt;P&gt;of its employees.&amp;nbsp; Individuals suspected of abusing their&lt;/P&gt;&lt;P&gt;access rights are subject to having their activities monitored&lt;/P&gt;&lt;P&gt;and content reviewed."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Removing the "returns" or new line presents this ALL in one line :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"COMPANY networks and systems are assets of the corporation and are to be used by authorized personnel for business purposes only.&amp;nbsp; COMPANY routinely&lt;/P&gt;&lt;P&gt;monitors these systems to protect them from unauthorized use and to ensure system integrity.&amp;nbsp; COMPANY is committed to full compliance with all data privacy laws and requires the same of its employees.&amp;nbsp; Individuals suspected of abusing their access rights are subject to having their activities monitored and content reviewed."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 14:27:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-escape-a-line-feed-in-login-banner-via-cli/m-p/14918#M10944</guid>
      <dc:creator>TKocian</dc:creator>
      <dc:date>2012-12-19T14:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to escape a line feed in login banner via CLI?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-escape-a-line-feed-in-login-banner-via-cli/m-p/14919#M10945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Todd,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 04:35:26 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-escape-a-line-feed-in-login-banner-via-cli/m-p/14919#M10945</guid>
      <dc:creator>panwmod</dc:creator>
      <dc:date>2013-01-04T04:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to escape a line feed in login banner via CLI?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-escape-a-line-feed-in-login-banner-via-cli/m-p/547143#M111774</link>
      <description>&lt;P&gt;&lt;SPAN&gt;You can do this with a carriage return (aka CR aka character code 13). I am not really clear when that is a \r or ^M, but this worked on a mac using a iTerm. Now, realize that it is not actually the characters ^ (caret) followed by the letter M, that is only how it shows in the terminal. On a Mac I pressed and held ctrl, then pressed V (released) followed by M (released both ctrl and M). This results in the terminal that looka like the two characters ^M, but is actually a single character on the terminal. I know that is confusing, but long and short, &lt;STRONG&gt;it is not&lt;/STRONG&gt;&amp;nbsp;the two characters ^M.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here is an example of how it looks like in the terminal.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;admin@pa-220-1# set deviceconfig system login-banner "line 1^Mline 2^Mline 3"&lt;/P&gt;
&lt;P&gt;[edit]&lt;BR /&gt;admin@pa-220-1# show deviceconfig system&lt;BR /&gt;set deviceconfig system login-banner "line 1&lt;BR /&gt;line 2&lt;BR /&gt;line 3"&lt;BR /&gt;[edit]&lt;BR /&gt;admin@pa-220-1#&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2023 18:42:36 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-escape-a-line-feed-in-login-banner-via-cli/m-p/547143#M111774</guid>
      <dc:creator>kcelenza</dc:creator>
      <dc:date>2023-06-24T18:42:36Z</dc:date>
    </item>
  </channel>
</rss>

