<?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 Re: R80.30 3.10 clish -f output contains ^M in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/R80-30-3-10-clish-f-output-contains-M/m-p/71224#M5446</link>
    <description>&lt;P&gt;As a follow-up to this issue, a HF was created to fix this.&amp;nbsp; I've asked for the fixed to be included in a future jumbo.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Dec 2019 15:25:58 GMT</pubDate>
    <dc:creator>Brian_Deutmeyer</dc:creator>
    <dc:date>2019-12-26T15:25:58Z</dc:date>
    <item>
      <title>R80.30 3.10 clish -f output contains ^M</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/R80-30-3-10-clish-f-output-contains-M/m-p/65602#M4998</link>
      <description>&lt;P&gt;Has anyone noticed hidden output (Processing line X out of Y ^M) when running the clish -f command from expert mode?&amp;nbsp; I noticed it on the R80.30 3.10 kernel when using clish -f somefile.txt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I built a script:&lt;/P&gt;&lt;P&gt;[Expert@gw-name:0]# cat /tmp/script-to-get-asn.sh&lt;BR /&gt;set virtual-system 1&lt;BR /&gt;show configuration bgp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. I run the script and get some output:&lt;/P&gt;&lt;P&gt;[Expert@gw-name:0]# /bin/clish -i -f /tmp/script-to-get-asn.sh 2&amp;gt; /dev/null | grep -E "set bgp external remote-as [0-9]+ on"&lt;BR /&gt;set bgp external remote-as 12345 on&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. I want to grab the ASN, but things get weird...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[Expert@gw-name:0]# /bin/clish -i -f /tmp/script-to-get-asn.sh 2&amp;gt; /dev/null | grep -E "set bgp external remote-as [0-9]+ on" | awk '{print $5}'&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;of&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. I save my output to a temp file and cat it... looks normal...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[Expert@gw-name:0]# /bin/clish -i -f /tmp/script-to-get-asn.sh 2&amp;gt; /dev/null | grep -E "set bgp external remote-as [0-9]+ on" &amp;gt; tmpfle&lt;BR /&gt;[Expert@gw-name:0]# cat tmpfle&lt;BR /&gt;set bgp external remote-as 12345 on&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5. I look closer by doing a cat with a -v or vi the file and I see text that did show up earlier along with ^M...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[Expert@gw-name:0]# cat -v tmpfle&lt;BR /&gt;Processing line 2 out of 2 ^Mset bgp external remote-as 12345 on&lt;BR /&gt;[Expert@gw-name:0]#&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's going on here?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 20:01:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/R80-30-3-10-clish-f-output-contains-M/m-p/65602#M4998</guid>
      <dc:creator>Brian_Deutmeyer</dc:creator>
      <dc:date>2019-10-22T20:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: R80.30 3.10 clish -f output contains ^M</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/R80-30-3-10-clish-f-output-contains-M/m-p/65852#M5016</link>
      <description>That seems to be...normal, as R80.20 with the 2.6 kernel also shows this behavior.&lt;BR /&gt;You can pipe it through sed to turn it into a proper linebreak.&lt;BR /&gt;Something like: /bin/clish -i -f /tmp/script-to-get-asn.sh 2&amp;gt; /dev/null | sed 's/^M/\n/'&lt;BR /&gt;Where the ^M is inserted with Ctrl-V Ctrl-M</description>
      <pubDate>Thu, 24 Oct 2019 21:25:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/R80-30-3-10-clish-f-output-contains-M/m-p/65852#M5016</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-10-24T21:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: R80.30 3.10 clish -f output contains ^M</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/R80-30-3-10-clish-f-output-contains-M/m-p/65854#M5017</link>
      <description>&lt;P&gt;I'm not seeing it in R80.10, which is why I thought it was strange.&amp;nbsp; I did update my command to use sed to replace the junk characters where I'm wiping the ^M and anything before it...&amp;nbsp;&lt;FONT&gt;sed -e 's/^.*^M//'.&amp;nbsp; Just seems odd.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 21:31:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/R80-30-3-10-clish-f-output-contains-M/m-p/65854#M5017</guid>
      <dc:creator>Brian_Deutmeyer</dc:creator>
      <dc:date>2019-10-24T21:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: R80.30 3.10 clish -f output contains ^M</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/R80-30-3-10-clish-f-output-contains-M/m-p/65859#M5018</link>
      <description>I agree it's odd and it might be worth a TAC case to report the issue.</description>
      <pubDate>Fri, 25 Oct 2019 01:37:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/R80-30-3-10-clish-f-output-contains-M/m-p/65859#M5018</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-10-25T01:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: R80.30 3.10 clish -f output contains ^M</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/R80-30-3-10-clish-f-output-contains-M/m-p/71224#M5446</link>
      <description>&lt;P&gt;As a follow-up to this issue, a HF was created to fix this.&amp;nbsp; I've asked for the fixed to be included in a future jumbo.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 15:25:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/R80-30-3-10-clish-f-output-contains-M/m-p/71224#M5446</guid>
      <dc:creator>Brian_Deutmeyer</dc:creator>
      <dc:date>2019-12-26T15:25:58Z</dc:date>
    </item>
  </channel>
</rss>

