<?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: Exporting NAT configuration in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/exporting-nat-configuration/m-p/42546#M31238</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, took me another hour of digging, but I eventually found it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The trick was to get a full copy of the config downloaded locally and view it in Notepad++ in XML mode, then I started collapsing the config elements so that I was only viewing from levels 1 through 5 - and thats when I could see the path....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;devices&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;entry name="localhost.localdomain"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;device-group&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;entry name="DMZ"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pre-rulebase&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;lt;nat&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XML and I definitely have a love/hate relationship.&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://live.paloaltonetworks.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Nov 2012 17:06:52 GMT</pubDate>
    <dc:creator>jsilvia</dc:creator>
    <dc:date>2012-11-13T17:06:52Z</dc:date>
    <item>
      <title>Exporting NAT configuration</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/exporting-nat-configuration/m-p/42544#M31236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I'm wanting to get the XML out of the firewall for specific DMZ's so that I can assemble IPAM updates from the XML.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now, if I ssh into Panorama, go into config mode, and issue this command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;show device-group DMZ pre-rulebase nat rules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I get the output I want, however, doing it interactively isn't what I want - what I'd like to do is convert this into an API call, so I can fetch this with a URL...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the API browser however, I cannot seem to duplicate this..export &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 18:49:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/exporting-nat-configuration/m-p/42544#M31236</guid>
      <dc:creator>jsilvia</dc:creator>
      <dc:date>2012-11-12T18:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting NAT configuration</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/exporting-nat-configuration/m-p/42545#M31237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use that url : &lt;/P&gt;&lt;P&gt;/api/?type=op&amp;amp;cmd=&amp;lt;show&amp;gt;&amp;lt;config&amp;gt;&amp;lt;running&amp;gt;&amp;lt;xpath&amp;gt;devices/entry[@name='localhost.localdomain']/device-group/entry[@name='DMZ']/pre-rulebase/nat&amp;lt;/xpath&amp;gt;&amp;lt;/running&amp;gt;&amp;lt;/config&amp;gt;&amp;lt;/show&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;go on &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://YOUR.PANORAMA.IP/php/rest/browse.php/op::show::config::running::xpath"&gt;http://YOUR.PANORAMA.IP/php/rest/browse.php/op::show::config::running::xpath&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change the xml content with:&lt;/P&gt;&lt;P&gt;&amp;lt;show&amp;gt;&amp;lt;config&amp;gt;&amp;lt;running&amp;gt;&amp;lt;xpath&amp;gt;devices/entry[@name='localhost.localdomain']/device-group/entry[@name='DMZ']/pre-rulebase/nat&amp;lt;/xpath&amp;gt;&amp;lt;/running&amp;gt;&amp;lt;/config&amp;gt;&amp;lt;/show&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;click submit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 16:17:21 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/exporting-nat-configuration/m-p/42545#M31237</guid>
      <dc:creator>cviaud</dc:creator>
      <dc:date>2012-11-13T16:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting NAT configuration</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/exporting-nat-configuration/m-p/42546#M31238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, took me another hour of digging, but I eventually found it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The trick was to get a full copy of the config downloaded locally and view it in Notepad++ in XML mode, then I started collapsing the config elements so that I was only viewing from levels 1 through 5 - and thats when I could see the path....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;devices&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;entry name="localhost.localdomain"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;device-group&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;entry name="DMZ"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pre-rulebase&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;lt;nat&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XML and I definitely have a love/hate relationship.&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://live.paloaltonetworks.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 17:06:52 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/exporting-nat-configuration/m-p/42546#M31238</guid>
      <dc:creator>jsilvia</dc:creator>
      <dc:date>2012-11-13T17:06:52Z</dc:date>
    </item>
  </channel>
</rss>

