<?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: Can't import policy from firewall to Panorama using panxapi in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/can-t-import-policy-from-firewall-to-panorama-using-panxapi/m-p/19422#M497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your show and set command (the one I quoted) look correct, so I think it may be something else.&amp;nbsp; need to see the error message in the XML response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Oct 2013 23:19:44 GMT</pubDate>
    <dc:creator>ksteves1</dc:creator>
    <dc:date>2013-10-10T23:19:44Z</dc:date>
    <item>
      <title>Can't import policy from firewall to Panorama using panxapi</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/can-t-import-policy-from-firewall-to-panorama-using-panxapi/m-p/19419#M494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've already imported all objects successfully with panxapi (part of PAN-Perl), and have manually created all zones referenced in security policy. But for some reason I keep getting error code 12 when I try to import policy. I've tried the xpath syntax from the Panorama-Device-Migration guide and also variations on the xpath based off what I see when using the API browser. Any idea what's wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the syntax from the conversion guide…&lt;/P&gt;&lt;P&gt;mint-alternate ~ # panxapi -h $pan -S ./temp_security.xml "/config/devices/entry/device-group/entry[@name='Primary_Burlington_PA5020']/pre-rulebase"&lt;/P&gt;&lt;P&gt;set: HASH(0x1dfa9b8) status="error" code="12"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also tried variations on the xpath based off what I saw in the API browser….&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;panxapi -h $pan -S ./temp_security.xml "/config/devices/entry[@name='localhost.localdomain']/device-group/entry[@name='Primary_Burlington_PA5020']/pre-rulebase/security"&lt;/P&gt;&lt;P&gt;set: HASH(0x33a5918) status="error" code="12"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mint-alternate ~ # panxapi -h $pan -S ./temp_security.xml "/config/devices/entry[@name='localhost.localdomain']/device-group/entry[@name='Primary_Burlington_PA5020']/pre-rulebase"&lt;/P&gt;&lt;P&gt;set: HASH(0x2ac8a88) status="error" code="12"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;temp_security.xml was produced with this command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;panxapi -h $fw -sxr "/config/devices/entry/vsys/entry/rulebase/security" &amp;gt; temp_security.xml&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 18:29:21 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/can-t-import-policy-from-firewall-to-panorama-using-panxapi/m-p/19419#M494</guid>
      <dc:creator>kmurphy</dc:creator>
      <dc:date>2013-10-09T18:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can't import policy from firewall to Panorama using panxapi</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/can-t-import-policy-from-firewall-to-panorama-using-panxapi/m-p/19420#M495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the HASH() is because the response XML format is not recognized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run panxapi with -x which will print the full XML response and see if&lt;/P&gt;&lt;P&gt;it shows clues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;panxapi -x -h $pan -S ./temp_security.xml "/config/devices/entry[@name='localhost.localdomain']/device-group/entry[@name='Primary_Burlington_PA5020']/pre-rulebase"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 20:49:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/can-t-import-policy-from-firewall-to-panorama-using-panxapi/m-p/19420#M495</guid>
      <dc:creator>ksteves1</dc:creator>
      <dc:date>2013-10-09T20:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can't import policy from firewall to Panorama using panxapi</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/can-t-import-policy-from-firewall-to-panorama-using-panxapi/m-p/19421#M496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok I'll try that, thanks. So is the problem more likely with the input file I'm using, or with the xpath I'm using in the command? I ask because of the description of error code 12 in the XML API guide....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;12&amp;nbsp; Invalid object&amp;nbsp; Xpath or element values provided are not complete.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 00:32:03 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/can-t-import-policy-from-firewall-to-panorama-using-panxapi/m-p/19421#M496</guid>
      <dc:creator>kmurphy</dc:creator>
      <dc:date>2013-10-10T00:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can't import policy from firewall to Panorama using panxapi</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/can-t-import-policy-from-firewall-to-panorama-using-panxapi/m-p/19422#M497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your show and set command (the one I quoted) look correct, so I think it may be something else.&amp;nbsp; need to see the error message in the XML response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 23:19:44 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/can-t-import-policy-from-firewall-to-panorama-using-panxapi/m-p/19422#M497</guid>
      <dc:creator>ksteves1</dc:creator>
      <dc:date>2013-10-10T23:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can't import policy from firewall to Panorama using panxapi</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/can-t-import-policy-from-firewall-to-panorama-using-panxapi/m-p/19423#M498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First thing to consider is that you need to be careful if trying to import the entire config as there's has to be a concept of pre and post policies in your migration XML.&amp;nbsp; Second, is more of a troubleshooting helper - enable debug (-D) in your commands to help drill down into where you're going wrong.&amp;nbsp; My initial guess would be that it's complaining about your import breaking existing validity or something along those lines...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 15:21:45 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/can-t-import-policy-from-firewall-to-panorama-using-panxapi/m-p/19423#M498</guid>
      <dc:creator>djm1001</dc:creator>
      <dc:date>2013-10-17T15:21:45Z</dc:date>
    </item>
  </channel>
</rss>

