<?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 Bulk creation of host objects in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/bulk-creation-of-host-objects/m-p/8502#M6277</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We need to create a large number host objects (i.e. IP address objects).&amp;nbsp; Tech support only pointed us to a KP article "Using the XML API" which is Greek to me.&amp;nbsp; Does anyone have any suggestions/solutions?&amp;nbsp; I would think that someone would have needed to do this before me and found a way.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jan 2012 20:04:01 GMT</pubDate>
    <dc:creator>legeremt</dc:creator>
    <dc:date>2012-01-06T20:04:01Z</dc:date>
    <item>
      <title>Bulk creation of host objects</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/bulk-creation-of-host-objects/m-p/8502#M6277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We need to create a large number host objects (i.e. IP address objects).&amp;nbsp; Tech support only pointed us to a KP article "Using the XML API" which is Greek to me.&amp;nbsp; Does anyone have any suggestions/solutions?&amp;nbsp; I would think that someone would have needed to do this before me and found a way.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2012 20:04:01 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/bulk-creation-of-host-objects/m-p/8502#M6277</guid>
      <dc:creator>legeremt</dc:creator>
      <dc:date>2012-01-06T20:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk creation of host objects</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/bulk-creation-of-host-objects/m-p/8503#M6278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the XML API is a great feature so im sure youre right and there'll be tons of people with scripts laying around that may help you out (i may even be one of them lol) - have you got a little more detail about what format the input is (as im guessing if you were trying to migrate from another vendor such as netscreen/cisco/checkpoint support would have passed you on to the migration tool) - so are you looking at reading in from a csv/newline seperated file/xml doc/db table or something?&lt;/P&gt;&lt;P&gt;Have you also tried the simple approach of mangling the text with find/replace in a text editor to get it into the appropriate format (using the cli admin guide as your reference (e.g set address "&lt;EM&gt;address-name" ﻿&lt;/EM&gt;ip-netmask (or ip-range/fqdn and with optional descritpion field) &lt;EM&gt;ip/mask &lt;/EM&gt;(or &lt;EM&gt;fqdn))) &lt;/EM&gt;and then cutting/pasting into the device via the command line?&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;damian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2012 07:42:57 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/bulk-creation-of-host-objects/m-p/8503#M6278</guid>
      <dc:creator>dsouthard</dc:creator>
      <dc:date>2012-01-07T07:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk creation of host objects</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/bulk-creation-of-host-objects/m-p/8504#M6279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We did not use the migration tool as we wanted to build from scratch (to avoid importing 15 years worth of "old" objects and rules).&amp;nbsp; So, we want to be able to create hundreds of new address objects.&amp;nbsp; If there was a way of using XML API to make it easier that would be great.&amp;nbsp; As for doing something via the CLI, I have a vague idea as to what you are saying.&amp;nbsp; One thing that comes to mind though is the CLI command "set address" does not seem have the options for a description or more importantly the option to specify an object as "shared".&amp;nbsp; If these options are possible to be included in the command, is it possible to script from a text file?&amp;nbsp; Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 14:53:50 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/bulk-creation-of-host-objects/m-p/8504#M6279</guid>
      <dc:creator>legeremt</dc:creator>
      <dc:date>2012-01-09T14:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk creation of host objects</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/bulk-creation-of-host-objects/m-p/8505#M6280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: Default Monospace,Courier New,Courier,monospace; font-size: 10pt;"&gt;I&amp;nbsp; know the joys of 'old' objects - thats essentially why i had to write&amp;nbsp; some scripts to clean up my netscreen configs - however as we ran out of&amp;nbsp; time for our migration and needed to get something into production&amp;nbsp; quickly, im about to write some more stuff to clean up my palo ;O)&lt;BR /&gt;&lt;BR /&gt;As&amp;nbsp; an example to clarify the manual approach of mangling an input file&amp;nbsp; with a text editor to get the right format, have a quick look at the&amp;nbsp; palo document below on importing firewall configurations into panorama -&amp;nbsp; the first few steps give the general idea...this kind of approach has&amp;nbsp; saved my arse many times for many different firewall types over the&amp;nbsp; years ;O)&lt;BR /&gt;&lt;A href="https://live.paloaltonetworks.com/docs/DOC-1742" target="_blank"&gt;https://live.paloaltonetworks.com/docs/DOC-1742&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;in&amp;nbsp; either case (CLI or API), youll likely need some form of text based&amp;nbsp; input that you can manipulate - are you able to generate such a file and&amp;nbsp; if so, do you want to post a line or two as an example so people can&amp;nbsp; determine if they have anything that will help you parse it?&lt;BR /&gt;&lt;BR /&gt;cheers&lt;BR /&gt;damian&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 19:37:45 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/bulk-creation-of-host-objects/m-p/8505#M6280</guid>
      <dc:creator>dsouthard</dc:creator>
      <dc:date>2012-01-09T19:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk creation of host objects</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/bulk-creation-of-host-objects/m-p/8506#M6281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;e.g. you can use excel to generate lines. For example from this field,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;="set device-group ""DEVICE_GROUP"" address name-"&amp;amp;C52&amp;amp;"-field description """&amp;amp;B52&amp;amp;""" ip-range "&amp;amp;M52&amp;amp;"-"&amp;amp;N52 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can get this line of text:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set device-group "DEVICE_GROUP address name-SOME-field description "some text" ip-range 192.168.1.1-192.168.1.23&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can drag the field down to replate across different source lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, your sysadmin friends may be perl, awk, sed, *sh, ed, vi, vim etc. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 10:22:51 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/bulk-creation-of-host-objects/m-p/8506#M6281</guid>
      <dc:creator>RNC</dc:creator>
      <dc:date>2012-01-10T10:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk creation of host objects</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/bulk-creation-of-host-objects/m-p/8507#M6282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks RNC.&amp;nbsp; This was exactly what I was looking for.&amp;nbsp; I had seen the "set" commands in the CLI guide but there was not much for explanation/detail/examples.&amp;nbsp; After some more trial and error and speaking with a great new engineer with PAN support I was able to achieve what I wanted.&amp;nbsp; Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 15:27:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/bulk-creation-of-host-objects/m-p/8507#M6282</guid>
      <dc:creator>legeremt</dc:creator>
      <dc:date>2012-01-30T15:27:12Z</dc:date>
    </item>
  </channel>
</rss>

