<?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 Create a xml of the current config in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/create-a-xml-of-the-current-config/m-p/163132#M52844</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to move some pre-rules to post rules in my panorama config.&lt;/P&gt;&lt;P&gt;I wanted to try and do it with load partial.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I am having issues generating the xml files&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ssh to panorama&lt;/P&gt;&lt;P&gt;set cli config-output-format xml&lt;/P&gt;&lt;P&gt;configure&lt;/P&gt;&lt;P&gt;save config to 20170625-AlexWorking.xml&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and then exit out of config&lt;/P&gt;&lt;P&gt;show config saved 20170625-AlexWorking.xml&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;doesn't show me XML.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So GUI , export to xml .. looks good, scp back onto panorma and its been converted back..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so I want to do a load partial, but I can't seem to get an xml on there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am i missing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the command I am trying to do&amp;nbsp;&lt;/P&gt;&lt;P&gt;load config partial from 20170625-AlexWorking.xml from-xpath /config/devices/entry/device-group/entry/pre-rulebase to-xpath /config/devices/entry/device-group/entry/post-rulebase mode append&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I get back&lt;/P&gt;&lt;P&gt;Server error : Failed to compose effective config to load. input file doesn't have anything at devices/entry/device-group/entry/pre-rule&lt;BR /&gt;base&lt;/P&gt;</description>
    <pubDate>Sun, 25 Jun 2017 06:26:43 GMT</pubDate>
    <dc:creator>Alex_Samad</dc:creator>
    <dc:date>2017-06-25T06:26:43Z</dc:date>
    <item>
      <title>Create a xml of the current config</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/create-a-xml-of-the-current-config/m-p/163132#M52844</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to move some pre-rules to post rules in my panorama config.&lt;/P&gt;&lt;P&gt;I wanted to try and do it with load partial.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I am having issues generating the xml files&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ssh to panorama&lt;/P&gt;&lt;P&gt;set cli config-output-format xml&lt;/P&gt;&lt;P&gt;configure&lt;/P&gt;&lt;P&gt;save config to 20170625-AlexWorking.xml&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and then exit out of config&lt;/P&gt;&lt;P&gt;show config saved 20170625-AlexWorking.xml&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;doesn't show me XML.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So GUI , export to xml .. looks good, scp back onto panorma and its been converted back..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so I want to do a load partial, but I can't seem to get an xml on there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am i missing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the command I am trying to do&amp;nbsp;&lt;/P&gt;&lt;P&gt;load config partial from 20170625-AlexWorking.xml from-xpath /config/devices/entry/device-group/entry/pre-rulebase to-xpath /config/devices/entry/device-group/entry/post-rulebase mode append&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I get back&lt;/P&gt;&lt;P&gt;Server error : Failed to compose effective config to load. input file doesn't have anything at devices/entry/device-group/entry/pre-rule&lt;BR /&gt;base&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2017 06:26:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/create-a-xml-of-the-current-config/m-p/163132#M52844</guid>
      <dc:creator>Alex_Samad</dc:creator>
      <dc:date>2017-06-25T06:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create a xml of the current config</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/create-a-xml-of-the-current-config/m-p/163139#M52845</link>
      <description>&lt;P&gt;Okay, seems like it doesn't matter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had the wrong base&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;needed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;load config partial from 20170625-AlexWorking.xml from-xpath /config/devices/entry[@name='localhost.localdomain']/device-group/entry[@name='Yieldbroker']/pre-rulebase to-xpath /config/devices/entry[@name='localhost.localdomain']/device-group/entry[@name='Yieldbroker']/post-rulebase mode append&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Got this from&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.paloaltonetworks.com/documentation/70/pan-os/cli-gsg/use-the-cli/load-a-partial-configuration" target="_blank"&gt;https://www.paloaltonetworks.com/documentation/70/pan-os/cli-gsg/use-the-cli/load-a-partial-configuration&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2017 06:41:07 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/create-a-xml-of-the-current-config/m-p/163139#M52845</guid>
      <dc:creator>Alex_Samad</dc:creator>
      <dc:date>2017-06-25T06:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create a xml of the current config</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/create-a-xml-of-the-current-config/m-p/163140#M52846</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/62286"&gt;@Alex_Samad&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would recommend that you use the Palo Alto Migration tool to connect to your firewalls via XML API. By doing so, you will be able to automatically pull your production firewall configuration straight into the Migration tool, and then transform the policies you want from pre-rules into post-rules.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once it is done, you can then generate an XML API call, and send it straight to the devices via the migration tool. All you need to do after that is to login into the appliance and hit commit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the guide that shows the detailed process.&amp;nbsp;&lt;A href="https://live.paloaltonetworks.com/t5/Migration-Tool-Articles/Migration-Tool-3-Info-and-Guide/ta-p/55294?attachment-id=1060" target="_blank"&gt;PAN_MigrationTool_users guide.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Twitter:&amp;nbsp;@willguibr&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2017 06:47:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/create-a-xml-of-the-current-config/m-p/163140#M52846</guid>
      <dc:creator>acc6d0b3610eec313831f7900fdbd235</dc:creator>
      <dc:date>2017-06-25T06:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create a xml of the current config</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/create-a-xml-of-the-current-config/m-p/163142#M52848</link>
      <description>&lt;P&gt;I will give it a try, I downloaded the vm' but thought it was a bit of over kill. Thought &amp;nbsp;xpath would / should be able to do the move from pre to post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have instead used out to set and copied that config to a text file &amp;nbsp;and changed the pre to post and re ran the commands .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2017 07:12:32 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/create-a-xml-of-the-current-config/m-p/163142#M52848</guid>
      <dc:creator>Alex_Samad</dc:creator>
      <dc:date>2017-06-25T07:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create a xml of the current config</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/create-a-xml-of-the-current-config/m-p/163143#M52849</link>
      <description>&lt;P&gt;In the scenario I described you don't have to import the xml file into the migration tool. You only need to add the device to the device list, and then double click on it to pull the configuration in. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2017 07:37:00 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/create-a-xml-of-the-current-config/m-p/163143#M52849</guid>
      <dc:creator>acc6d0b3610eec313831f7900fdbd235</dc:creator>
      <dc:date>2017-06-25T07:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create a xml of the current config</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/create-a-xml-of-the-current-config/m-p/163146#M52851</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry I think maybe I miss understood.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have already downloaded the migration tool - which seems to be a VM for VMWare.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Personally I think this might be a bit of over kill - installing a vm to do migration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Think I would rather learn to do it by hand, which is what I was trying to do by the load partial. &amp;nbsp;But I ran into some sort of issue , not really sure what, but it seemed to want to add pre-base under post-base, instead of just added the pre-base children to post-base.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I found another work around, I downloaded the XML config and then manual duplicated the sections I wanted and uploaded the modified XML.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks okay now I have 2 copies of the rules and I can delete as needed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2017 10:08:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/create-a-xml-of-the-current-config/m-p/163146#M52851</guid>
      <dc:creator>Alex_Samad</dc:creator>
      <dc:date>2017-06-25T10:08:37Z</dc:date>
    </item>
  </channel>
</rss>

