<?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: CLI - invalid syntax errors when pasting in config in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/cli-invalid-syntax-errors-when-pasting-in-config/m-p/67218#M39470</link>
    <description>&lt;P&gt;Thanks a lot!&amp;nbsp; Done the ACE but it doesn't mention this at all!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I love cli scripting-mode!&lt;/P&gt;</description>
    <pubDate>Fri, 23 Oct 2015 16:30:57 GMT</pubDate>
    <dc:creator>RobSmith</dc:creator>
    <dc:date>2015-10-23T16:30:57Z</dc:date>
    <item>
      <title>CLI - invalid syntax errors when pasting in config</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/cli-invalid-syntax-errors-when-pasting-in-config/m-p/67152#M39436</link>
      <description>&lt;P&gt;Good evening&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I often have to configure a hundred new address objects at a time and then add them to an address group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I prepare the config by using Excel to combine columns with different values until I have the string of txt that I can paste into the CLI to add these objects to the PA.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example of some of the lines of code I end up with:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;set vsys vsys11 address net_1.2.3.0 ip-netmask 1.2.3.0/24&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;set vsys vsys11 address net_2.2.3.0 ip-netmask 2.2.3.0/24&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;set vsys vsys11 address net_3.2.3.0 ip-netmask 3.2.3.0/24&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Each line of code is formatted in the same way and I know this is the correct format for adding an address object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, when I copy and paste multiple lines of CLI code into the configure prompt - I get invalid syntax errors with some lines of code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sometimes the PA does not include the whole string or misses off the /24 netmask at the end so the PA throws an invalid syntax error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I paste each line of code in individually, I do not get any errors but I'm trying to save time here so want to be able to paste in 100+lines of code at once with confidence that there will not be any errrors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm wondering if it is the text editor I'm using or perhaps my copy of Secure CRT doesn't seem to interpret the CLI copied from the clipboard properly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has anyone else ever come across this type of issue or can anyone give any advice on best practices when entering&amp;nbsp;100's of lines of code onto the CLI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any advice or feedback would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2015 17:50:25 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/cli-invalid-syntax-errors-when-pasting-in-config/m-p/67152#M39436</guid>
      <dc:creator>RobSmith</dc:creator>
      <dc:date>2015-10-22T17:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: CLI - invalid syntax errors when pasting in config</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/cli-invalid-syntax-errors-when-pasting-in-config/m-p/67158#M39440</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;While i havent tried to perform this on a PAN, I know in switches and routers when I do this i always have to double check since the paste operation isnt always perfect. This is with different vendors. I usually end up just copying smaller groups to get what I need accomplished. Perhaps the following links may help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/t5/Configuration-Articles/How-to-Import-and-Export-Address-and-Address-Objects/ta-p/56124" target="_blank"&gt;https://live.paloaltonetworks.com/t5/Configuration-Articles/How-to-Import-and-Export-Address-and-Address-Objects/ta-p/56124&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/t5/Documentation-Articles/Dynamic-Address-Objects/ta-p/61300" target="_blank"&gt;https://live.paloaltonetworks.com/t5/Documentation-Articles/Dynamic-Address-Objects/ta-p/61300&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2015 18:44:08 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/cli-invalid-syntax-errors-when-pasting-in-config/m-p/67158#M39440</guid>
      <dc:creator>OtakarKlier</dc:creator>
      <dc:date>2015-10-22T18:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: CLI - invalid syntax errors when pasting in config</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/cli-invalid-syntax-errors-when-pasting-in-config/m-p/67159#M39441</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This solution might help you:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/t5/Discussions/Increase-paste-buffer-on-PAN-or-other-import-methods/m-p/18370/highlight/true#M13400" target="_self"&gt;https://live.paloaltonetworks.com/t5/Discussions/Increase-paste-buffer-on-PAN-or-other-import-methods/m-p/18370/highlight/true#M13400.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Benjamin&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2015 18:47:30 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/cli-invalid-syntax-errors-when-pasting-in-config/m-p/67159#M39441</guid>
      <dc:creator>BenjAudy.MTL</dc:creator>
      <dc:date>2015-10-22T18:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: CLI - invalid syntax errors when pasting in config</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/cli-invalid-syntax-errors-when-pasting-in-config/m-p/67218#M39470</link>
      <description>&lt;P&gt;Thanks a lot!&amp;nbsp; Done the ACE but it doesn't mention this at all!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I love cli scripting-mode!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2015 16:30:57 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/cli-invalid-syntax-errors-when-pasting-in-config/m-p/67218#M39470</guid>
      <dc:creator>RobSmith</dc:creator>
      <dc:date>2015-10-23T16:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: CLI - invalid syntax errors when pasting in config</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/cli-invalid-syntax-errors-when-pasting-in-config/m-p/67219#M39471</link>
      <description>&lt;P&gt;Thanks for the suggestion!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2015 16:31:24 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/cli-invalid-syntax-errors-when-pasting-in-config/m-p/67219#M39471</guid>
      <dc:creator>RobSmith</dc:creator>
      <dc:date>2015-10-23T16:31:24Z</dc:date>
    </item>
  </channel>
</rss>

