<?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: Rest API and import in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/rest-api-and-import/m-p/22499#M16423</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fair enough.&lt;/P&gt;&lt;P&gt;I have over 50,000 objects and two device groups.&lt;/P&gt;&lt;P&gt;I just increased panorama to 2 CPUs and 4 GB memory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Aug 2013 16:17:53 GMT</pubDate>
    <dc:creator>hkp</dc:creator>
    <dc:date>2013-08-29T16:17:53Z</dc:date>
    <item>
      <title>Rest API and import</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/rest-api-and-import/m-p/22493#M16417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to add a lot of addresses (around 10,000) to my firewalls.&amp;nbsp; I have them in a list and have created a script to add them one at a time.&amp;nbsp; The problem is that this takes a long time.&amp;nbsp; I then tried to add them all, but my URI was too long.&amp;nbsp; So now I can add about 50 at a time.&amp;nbsp; It still takes a while.&lt;/P&gt;&lt;P&gt;I also know that with the import command I can import a full config.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is this: Is there a way with the import command that I can add several addresses at once?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 15:54:09 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/rest-api-and-import/m-p/22493#M16417</guid>
      <dc:creator>hkp</dc:creator>
      <dc:date>2013-08-27T15:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API and import</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/rest-api-and-import/m-p/22494#M16418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a reason that you need to do this with the API? If this is a one-time event, you could do it pretty quickly through the CLI using the "scripting-mode" function.&amp;nbsp; Here's what it looks like on a PA-4020 running 5.0.6 (via SSH console):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;admin@pa4020&amp;gt; set cli scripting-mode on&lt;/P&gt;&lt;P&gt;admin@pa4020&amp;gt; configure&lt;/P&gt;&lt;P&gt;(now paste in the 10000 lines of objects)&lt;/P&gt;&lt;P&gt;admin@pa4020# set address object00001 ip-netmask 1.1.1.1&lt;/P&gt;&lt;P&gt;admin@pa4020# set address object00002 ip-netmask 1.1.1.2&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;admin@pa4020# &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also did the same thing on a PA-5050.&amp;nbsp; The first 3000 will go pretty quick, and after that it will slow down quite a bit.&amp;nbsp; The PA4020 was processing about 3-4 new objects/sec, while the PA5050 was adding about 7-8 entries/sec.&amp;nbsp; Should be do-able in ~20 minutes if I had to extrapolate.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 16:40:07 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/rest-api-and-import/m-p/22494#M16418</guid>
      <dc:creator>jvalentine</dc:creator>
      <dc:date>2013-08-27T16:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API and import</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/rest-api-and-import/m-p/22495#M16419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could also export your configuration, add the objects manually in xml format and import again.&lt;/P&gt;&lt;P&gt;Shouldn't be hard to create a script to get the objects in PAN xml format:&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;entry name="device_name"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ip-netmask&amp;gt;10.1.1.1/32&amp;lt;/ip-netmask&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/entry&amp;gt;&lt;/P&gt;&lt;P&gt;Or you can load a partial configuration, but I have no experience with this yet.&lt;/P&gt;&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/docs/DOC-1874"&gt;How to Load Partial Configs PAN-OS 4.0 &lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 06:12:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/rest-api-and-import/m-p/22495#M16419</guid>
      <dc:creator>${userLoginName}</dc:creator>
      <dc:date>2013-08-28T06:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API and import</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/rest-api-and-import/m-p/22496#M16420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what I finally did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now that I have all my addresses in Panorama adding a single address at a time takes over a minute.&lt;/P&gt;&lt;P&gt;Is that expected behavior?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 20:51:51 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/rest-api-and-import/m-p/22496#M16420</guid>
      <dc:creator>hkp</dc:creator>
      <dc:date>2013-08-28T20:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API and import</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/rest-api-and-import/m-p/22497#M16421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please answer the following questions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;How many objects do you have in total?&lt;/LI&gt;&lt;LI&gt;How many device groups do you have?&lt;/LI&gt;&lt;LI&gt;What is the RAM and CPU allocated to Panorama?&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 21:17:23 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/rest-api-and-import/m-p/22497#M16421</guid>
      <dc:creator>mschuricht</dc:creator>
      <dc:date>2013-08-28T21:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API and import</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/rest-api-and-import/m-p/22498#M16422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As mschuricht is implying, having a lot of objects in your configuration can cause an additional load / configuration latency on your device. When adding an address, the device will parse the entire configuration file to check if the objects already exists etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 11:33:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/rest-api-and-import/m-p/22498#M16422</guid>
      <dc:creator>${userLoginName}</dc:creator>
      <dc:date>2013-08-29T11:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API and import</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/rest-api-and-import/m-p/22499#M16423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fair enough.&lt;/P&gt;&lt;P&gt;I have over 50,000 objects and two device groups.&lt;/P&gt;&lt;P&gt;I just increased panorama to 2 CPUs and 4 GB memory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 16:17:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/rest-api-and-import/m-p/22499#M16423</guid>
      <dc:creator>hkp</dc:creator>
      <dc:date>2013-08-29T16:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API and import</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/rest-api-and-import/m-p/22500#M16424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;50K objects is quite large. Are you actually using all of those objects?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems like a case for consolidation if possible to subnets and ranges where applicable as well as removing any unused objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a script to identify unused objects to aid in a diagnosis: &lt;A href="https://live.paloaltonetworks.com/docs/DOC-3932"&gt;Unused and Duplicate Address Object Script&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would probably recommend moving to 5.1 for 64 bit support if you cannot reduce the number of objects. 5.1 requires 4 CPU cores and 4GB RAM at minimum. For a larger config it is recommended to move to 16GB of RAM. The release notes outline the recommended requirements as well as upgrade procedure if you decide to go this route.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 17:43:21 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/rest-api-and-import/m-p/22500#M16424</guid>
      <dc:creator>mschuricht</dc:creator>
      <dc:date>2013-08-29T17:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API and import</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/rest-api-and-import/m-p/22501#M16425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see what you did there... Trying to trick me into reading the documentation.&amp;nbsp; &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://live.paloaltonetworks.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They will all be used.&amp;nbsp; I upgraded to 5.1, but didn't actually read the release notes.&amp;nbsp; Heading off to do that now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 18:26:51 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/rest-api-and-import/m-p/22501#M16425</guid>
      <dc:creator>hkp</dc:creator>
      <dc:date>2013-08-29T18:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API and import</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/rest-api-and-import/m-p/22502#M16426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a quick example script for the Office Pro IP ranges.. this would be expanded as needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set tag Office365-OP&lt;/P&gt;&lt;P&gt;set address Office365-OP01 tag Office365-OP ip-netmask 65.52.98.231&lt;/P&gt;&lt;P&gt;set address Office365-OP02 tag Office365-OP ip-netmask 157.55.44.71&lt;/P&gt;&lt;P&gt;set address Office365-OP03 tag Office365-OP ip-netmask 157.55.160.109&lt;/P&gt;&lt;P&gt;set address-group Office365-OP tag Office365 dynamic filter 'Office365-OP'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Dec 2014 00:10:51 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/rest-api-and-import/m-p/22502#M16426</guid>
      <dc:creator>kkeeton</dc:creator>
      <dc:date>2014-12-20T00:10:51Z</dc:date>
    </item>
  </channel>
</rss>

