<?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: Having trouble with panxapi in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/having-trouble-with-panxapi/m-p/5700#M154</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will want double quotes around the xpath otherwise the single quotes will be eaten by the shell.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 27 Oct 2012 09:47:15 GMT</pubDate>
    <dc:creator>ksteves</dc:creator>
    <dc:date>2012-10-27T09:47:15Z</dc:date>
    <item>
      <title>Having trouble with panxapi</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/having-trouble-with-panxapi/m-p/5699#M153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm experiencing an issue with panxapi where it returns a success code (19), but the result is actually not being received.&amp;nbsp; I'm using the -x and -g options to try and pull back the pre-rulebase on my panorama for a specific device group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The xpath works in the API browser, but when I apply the same to the panxapi command I get nothing back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is that xpath: &lt;/P&gt;&lt;P&gt; panxapi &lt;EM&gt;&amp;lt;hostname and key hidden to protect the innocent&amp;gt;&lt;/EM&gt; -x -g /config/devices/entry[@name='localhost.localdomain']/device-group/entry[@name=&lt;EM&gt;'device group name'&lt;/EM&gt;]/pre-rulebase/rules&lt;/P&gt;&lt;P&gt;Any help is appreciated... here's the output I get at the CLI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get: success&lt;/P&gt;&lt;P&gt;&amp;lt;response status="success" code="19"&amp;gt;&amp;lt;result/&amp;gt;&amp;lt;/response&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 12:23:14 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/having-trouble-with-panxapi/m-p/5699#M153</guid>
      <dc:creator>sheist</dc:creator>
      <dc:date>2012-10-24T12:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble with panxapi</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/having-trouble-with-panxapi/m-p/5700#M154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will want double quotes around the xpath otherwise the single quotes will be eaten by the shell.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Oct 2012 09:47:15 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/having-trouble-with-panxapi/m-p/5700#M154</guid>
      <dc:creator>ksteves</dc:creator>
      <dc:date>2012-10-27T09:47:15Z</dc:date>
    </item>
  </channel>
</rss>

