<?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: Script to create multiple nodes on PANOS in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/script-to-create-multiple-nodes-on-panos/m-p/314765#M81160</link>
    <description>&lt;P&gt;Couple ways you can do it, as&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/27580"&gt;@OtakarKlier&lt;/a&gt;&amp;nbsp;has already mentioned:&lt;/P&gt;&lt;P&gt;CLI:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;set address "My Server" ip-netmask 192.168.1.1/32 &lt;/LI-CODE&gt;&lt;P&gt;You could set all of your set statements how you want and paste them in, which would work fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Configuration File:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# FQDN #
            &amp;lt;entry name="updates.cuasvc.com"&amp;gt;
              &amp;lt;fqdn&amp;gt;updates.cuasvc.com&amp;lt;/fqdn&amp;gt;
              &amp;lt;tag&amp;gt;
                &amp;lt;member&amp;gt;Barracuda-Updates&amp;lt;/member&amp;gt;
              &amp;lt;/tag&amp;gt;
            &amp;lt;/entry&amp;gt;
# Netmask #
            &amp;lt;entry name="Test-GlobalProtect"&amp;gt;
              &amp;lt;ip-netmask&amp;gt;172.16.253.128/25&amp;lt;/ip-netmask&amp;gt;
              &amp;lt;tag&amp;gt;
                &amp;lt;member&amp;gt;GlobalProtect&amp;lt;/member&amp;gt;
              &amp;lt;/tag&amp;gt;
            &amp;lt;/entry&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;You can locate where these go in your configuration file easier if you search for &amp;lt;address-group&amp;gt; since &amp;lt;address&amp;gt; is referenced a bit in the configuration file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;API:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://192.168.1.1/api/?key=MYAPIKEY&amp;amp;type=config&amp;amp;action=set&amp;amp;xpath=/config/shared/address/entry[@name='Google-DNS']&amp;amp;element=&amp;lt;ip-netmask&amp;gt;8.8.8.8/32&amp;lt;/ip-netmask&amp;gt; &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use any of these methods to build out your address object base quickly. Personally; I'm a big fan of modifying the configuration file itself and feeding it back into the firewall, because you can put the configuration file into Git, but I also find XML easy to work with.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Mar 2020 18:46:59 GMT</pubDate>
    <dc:creator>BPry</dc:creator>
    <dc:date>2020-03-05T18:46:59Z</dc:date>
    <item>
      <title>Script to create multiple nodes on PANOS</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/script-to-create-multiple-nodes-on-panos/m-p/314422#M81123</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a quick way to script / create 50+ nodes on a PA Firewall (azure based)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 16:23:57 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/script-to-create-multiple-nodes-on-panos/m-p/314422#M81123</guid>
      <dc:creator>alo_palto</dc:creator>
      <dc:date>2020-03-04T16:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Script to create multiple nodes on PANOS</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/script-to-create-multiple-nodes-on-panos/m-p/314577#M81135</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/134850"&gt;@alo_palto&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Are you just talking about creating large numbers of address objects?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 00:54:51 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/script-to-create-multiple-nodes-on-panos/m-p/314577#M81135</guid>
      <dc:creator>BPry</dc:creator>
      <dc:date>2020-03-05T00:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Script to create multiple nodes on PANOS</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/script-to-create-multiple-nodes-on-panos/m-p/314649#M81140</link>
      <description>&lt;P&gt;Exactly yes!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 09:34:20 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/script-to-create-multiple-nodes-on-panos/m-p/314649#M81140</guid>
      <dc:creator>alo_palto</dc:creator>
      <dc:date>2020-03-05T09:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Script to create multiple nodes on PANOS</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/script-to-create-multiple-nodes-on-panos/m-p/314742#M81150</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;You could export the config, modify/add the objects, and then import it. I dont see a way to do it with the API, but I could be wrong. Also can be done with Panorama.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 17:53:05 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/script-to-create-multiple-nodes-on-panos/m-p/314742#M81150</guid>
      <dc:creator>OtakarKlier</dc:creator>
      <dc:date>2020-03-05T17:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Script to create multiple nodes on PANOS</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/script-to-create-multiple-nodes-on-panos/m-p/314765#M81160</link>
      <description>&lt;P&gt;Couple ways you can do it, as&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/27580"&gt;@OtakarKlier&lt;/a&gt;&amp;nbsp;has already mentioned:&lt;/P&gt;&lt;P&gt;CLI:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;set address "My Server" ip-netmask 192.168.1.1/32 &lt;/LI-CODE&gt;&lt;P&gt;You could set all of your set statements how you want and paste them in, which would work fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Configuration File:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# FQDN #
            &amp;lt;entry name="updates.cuasvc.com"&amp;gt;
              &amp;lt;fqdn&amp;gt;updates.cuasvc.com&amp;lt;/fqdn&amp;gt;
              &amp;lt;tag&amp;gt;
                &amp;lt;member&amp;gt;Barracuda-Updates&amp;lt;/member&amp;gt;
              &amp;lt;/tag&amp;gt;
            &amp;lt;/entry&amp;gt;
# Netmask #
            &amp;lt;entry name="Test-GlobalProtect"&amp;gt;
              &amp;lt;ip-netmask&amp;gt;172.16.253.128/25&amp;lt;/ip-netmask&amp;gt;
              &amp;lt;tag&amp;gt;
                &amp;lt;member&amp;gt;GlobalProtect&amp;lt;/member&amp;gt;
              &amp;lt;/tag&amp;gt;
            &amp;lt;/entry&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;You can locate where these go in your configuration file easier if you search for &amp;lt;address-group&amp;gt; since &amp;lt;address&amp;gt; is referenced a bit in the configuration file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;API:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://192.168.1.1/api/?key=MYAPIKEY&amp;amp;type=config&amp;amp;action=set&amp;amp;xpath=/config/shared/address/entry[@name='Google-DNS']&amp;amp;element=&amp;lt;ip-netmask&amp;gt;8.8.8.8/32&amp;lt;/ip-netmask&amp;gt; &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use any of these methods to build out your address object base quickly. Personally; I'm a big fan of modifying the configuration file itself and feeding it back into the firewall, because you can put the configuration file into Git, but I also find XML easy to work with.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 18:46:59 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/script-to-create-multiple-nodes-on-panos/m-p/314765#M81160</guid>
      <dc:creator>BPry</dc:creator>
      <dc:date>2020-03-05T18:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Script to create multiple nodes on PANOS</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/script-to-create-multiple-nodes-on-panos/m-p/315492#M81267</link>
      <description>&lt;P&gt;Thanks guys, i went ahead and done it manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for slow reply here. Ill rereview next time i have a batch to add.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Out of curiousity, how does one go about exporting and reimporting the config file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 16:43:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/script-to-create-multiple-nodes-on-panos/m-p/315492#M81267</guid>
      <dc:creator>alo_palto</dc:creator>
      <dc:date>2020-03-10T16:43:18Z</dc:date>
    </item>
  </channel>
</rss>

