<?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: FW Monitoring through XML API in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/fw-monitoring-through-xml-api/m-p/6132#M175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roland,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The currently available API in 4.1.x does not allow you to query single specific values from the output returned.&amp;nbsp; The operational commands available through the API simply map to the equivalent commands available through the CLI.&amp;nbsp; The application calling the API would need to parse the output to limit the response to just the value required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-- Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jul 2012 18:03:55 GMT</pubDate>
    <dc:creator>kfindlen</dc:creator>
    <dc:date>2012-07-27T18:03:55Z</dc:date>
    <item>
      <title>FW Monitoring through XML API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/fw-monitoring-through-xml-api/m-p/6129#M172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get the cluster states of our two PA Firewalls (active/passive) through the XML API. I am particular interested in the "state" values of both members. The only thing I was able to retrieve was &lt;A class="active_link" href="https://10.0.0.34/api/?type=op&amp;amp;cmd=%3Cshow%3E%3Chigh-availability%3E%3Call%3E%3C%2Fall%3E%3C%2Fhigh-availability%3E%3C%2Fshow%3E" title="https://10.0.0.34/api/?type=op&amp;amp;cmd=%3Cshow%3E%3Chigh-availability%3E%3Call%3E%3C%2Fall%3E%3C%2Fhigh-availability%3E%3C%2Fshow%3E"&gt;https://hostname/api/?type=op&amp;amp;cmd=%3Cshow%3E%3Chigh-availability%3E%3Call%3E%3C%2Fall%3E%3C%2Fhigh-availability%3E%3C%2Fshow%3E&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for monitoring purpose (PRTG) I just need the "&amp;lt;local-info&amp;gt;&amp;lt;state&amp;gt;" part of the whole output. How can I do that ? What is the API URL for just that information ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2012 14:39:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/fw-monitoring-through-xml-api/m-p/6129#M172</guid>
      <dc:creator>gafrol</dc:creator>
      <dc:date>2012-07-26T14:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: FW Monitoring through XML API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/fw-monitoring-through-xml-api/m-p/6130#M173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's a little example in panxapi(1) from PAN-perl which shows how to get to some data in type=op XML output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;Print operational command variable using shell pipeline.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;$ (panxapi -t pa-200 -Xpro 'show system info';&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&amp;gt; echo 'print $VAR1-&amp;gt;{system}-&amp;gt;{"av-version"},"\n"') | perl&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;op: success&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;641-875&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also try to find what you are looking for in sysd (show system state ...) which doesn't get everything wrapped in XML when using&amp;nbsp; the API type=op request.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2012 23:12:07 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/fw-monitoring-through-xml-api/m-p/6130#M173</guid>
      <dc:creator>ksteves1</dc:creator>
      <dc:date>2012-07-26T23:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: FW Monitoring through XML API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/fw-monitoring-through-xml-api/m-p/6131#M174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, but I need an API URL&amp;nbsp; a script does not help in that case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2012 06:35:51 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/fw-monitoring-through-xml-api/m-p/6131#M174</guid>
      <dc:creator>gafrol</dc:creator>
      <dc:date>2012-07-27T06:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: FW Monitoring through XML API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/fw-monitoring-through-xml-api/m-p/6132#M175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roland,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The currently available API in 4.1.x does not allow you to query single specific values from the output returned.&amp;nbsp; The operational commands available through the API simply map to the equivalent commands available through the CLI.&amp;nbsp; The application calling the API would need to parse the output to limit the response to just the value required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-- Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2012 18:03:55 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/fw-monitoring-through-xml-api/m-p/6132#M175</guid>
      <dc:creator>kfindlen</dc:creator>
      <dc:date>2012-07-27T18:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: FW Monitoring through XML API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/fw-monitoring-through-xml-api/m-p/6133#M176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note that there are some configuration mode commands that can be performed via type=op API requests.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, check and save.&amp;nbsp; This isn't documented as far as I know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ panxapi -t pa-200 -Xxo 'check pending-changes'&lt;/P&gt;&lt;P&gt;op: success&lt;/P&gt;&lt;P&gt;&amp;lt;response status="success"&amp;gt;&amp;lt;result&amp;gt;no&amp;lt;/result&amp;gt;&amp;lt;/response&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ panxapi -t pa-200 -Xxo 'save config'&lt;/P&gt;&lt;P&gt;op: success&lt;/P&gt;&lt;P&gt;&amp;lt;response status="success"&amp;gt;&amp;lt;result&amp;gt;Config saved to .snapshot.xml&amp;lt;/result&amp;gt;&amp;lt;/response&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 23:28:54 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/fw-monitoring-through-xml-api/m-p/6133#M176</guid>
      <dc:creator>ksteves1</dc:creator>
      <dc:date>2012-08-01T23:28:54Z</dc:date>
    </item>
  </channel>
</rss>

