<?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 PAN-OS Xpath in Panorama Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/panorama-discussions/pan-os-xpath/m-p/564778#M1992</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is it possible to retrieve info for security profiles and policies using XPath on Panorama-managed firewalls?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As of now, I am able to retrieve this info via panorama xml api/xpath, but not through the firewall directly.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The security policies and profiles can be viewed, directly on the firewall's GUI, but it appears empty when using XPath to retrieve.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;These are the Xpaths attempted directly on firewall:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;/config/shared/profiles&lt;/P&gt;
&lt;P&gt;/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/profiles&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2023 09:21:36 GMT</pubDate>
    <dc:creator>ahmad_zubayr</dc:creator>
    <dc:date>2023-11-08T09:21:36Z</dc:date>
    <item>
      <title>PAN-OS Xpath</title>
      <link>https://live.paloaltonetworks.com/t5/panorama-discussions/pan-os-xpath/m-p/564778#M1992</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is it possible to retrieve info for security profiles and policies using XPath on Panorama-managed firewalls?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As of now, I am able to retrieve this info via panorama xml api/xpath, but not through the firewall directly.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The security policies and profiles can be viewed, directly on the firewall's GUI, but it appears empty when using XPath to retrieve.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;These are the Xpaths attempted directly on firewall:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;/config/shared/profiles&lt;/P&gt;
&lt;P&gt;/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/profiles&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 09:21:36 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/panorama-discussions/pan-os-xpath/m-p/564778#M1992</guid>
      <dc:creator>ahmad_zubayr</dc:creator>
      <dc:date>2023-11-08T09:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: PAN-OS Xpath</title>
      <link>https://live.paloaltonetworks.com/t5/panorama-discussions/pan-os-xpath/m-p/564793#M1993</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/328086"&gt;@ahmad_zubayr&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, and no.&amp;nbsp; The NGFW stores the Panorama-pushed configuration differently than local configuration.&amp;nbsp; For example, on the NGFW "show rulebase security" in configuration mode will not show the Panorama pushed security policy.&amp;nbsp; The API is the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the CLI, you can use the commands "show config pushed-template" or "show config pushed-shared-policy" to view the Panorama config.&amp;nbsp; The same commands are available on the API.&amp;nbsp; I haven't played with it much, but I do not see a way to view only the security policy or specific objects.&amp;nbsp; You view the entire pushed policy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would love for someone else to jump in here to show a better way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are using the API, you may have the automation tools to pull out the specific pieces you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 11:52:44 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/panorama-discussions/pan-os-xpath/m-p/564793#M1993</guid>
      <dc:creator>TomYoung</dc:creator>
      <dc:date>2023-11-08T11:52:44Z</dc:date>
    </item>
  </channel>
</rss>

