<?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 Application list via show running security-policy is incomplete in Next-Generation Firewall Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/next-generation-firewall/application-list-via-show-running-security-policy-is-incomplete/m-p/1222150#M5622</link>
    <description>&lt;P&gt;Hey guys, I need to export a bunch of security rules of one of our FWs (PA-5250; 10.2.10-h9). I decided to do this via cli, but certain rules seem to have an incomplete list of applications. It looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;application/service [0:ms-scheduler/tcp/any/any 1:ms-scheduler/udp/any/any 2:ms-netlogon/tcp/any/49152-65535 3:ms-netlogon/tcp/any/135 4:ms-netlogon/tcp/any/139 5:ms-netlogon/tcp/any/445 6:ms-netlogon/tcp/any/1025-5000 7:ms-netlogon/udp/any/137 8:ms-netlogon/udp/any/138 9:ms-netlogon/udp/any/445 10:netbios-ss/tcp/any/139 11:msrpc-base/tcp/any/any 12:msrpc-base/udp/any/any 13:ms-ds-smb-base/tcp/any/139 14:ms-ds-smb-base/tcp/any/445 15:ms-ds-smb-base/udp/any/445 16:mssql-db-base/tcp/any/1433 17:mssql-db-base/udp/any/1433 18:mssql-mon/udp/any/1434 19:ms-service-contro/tcp/any/any 20:ms-wmi/tcp/any/any 21:windows-remote-ma/tcp/any/5985 22:windows-remote-ma/tcp/any/5986 23:ms-ds-smbv3/tcp/any/139 24:ms-ds-smbv3/tcp/any/445 25:ms-ds-smbv3/udp/any/445 26:ms-remote-registr/tcp/any/any 27:ms-remote-registr/udp/any/any 28:ms-event-log/tcp/any/any 29:ms-event-log/udp/any/any 30:ms-local-user-man/tcp/any/any 31:ms-local-user-man/udp/any/any ... ]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See how it ends with "..."? There seems to be a limit of about ~930 characters. I already tried to set the output-format to xml, but I'm not sure, if i did it correctly since there is no change in format. I used: "&lt;FONT face="courier new,courier"&gt;set cli config-output-format xml&lt;/FONT&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After running "&lt;FONT face="courier new,courier"&gt;show running security-policy is incomplete&lt;/FONT&gt;" there is no change.&lt;/P&gt;&lt;P&gt;After switching to configure-mode via "&lt;FONT face="courier new,courier"&gt;configure&lt;/FONT&gt;" and running "&lt;FONT face="courier new,courier"&gt;show rulebase security rules&lt;/FONT&gt;" it doesn't give me any output. Same when I switch back to default output format. Am I doing something wrong? Are there other ways to achieve what I need (export all applications of a certain security rule)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2025 08:39:43 GMT</pubDate>
    <dc:creator>Sergio_Voigt</dc:creator>
    <dc:date>2025-02-27T08:39:43Z</dc:date>
    <item>
      <title>Application list via show running security-policy is incomplete</title>
      <link>https://live.paloaltonetworks.com/t5/next-generation-firewall/application-list-via-show-running-security-policy-is-incomplete/m-p/1222150#M5622</link>
      <description>&lt;P&gt;Hey guys, I need to export a bunch of security rules of one of our FWs (PA-5250; 10.2.10-h9). I decided to do this via cli, but certain rules seem to have an incomplete list of applications. It looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;application/service [0:ms-scheduler/tcp/any/any 1:ms-scheduler/udp/any/any 2:ms-netlogon/tcp/any/49152-65535 3:ms-netlogon/tcp/any/135 4:ms-netlogon/tcp/any/139 5:ms-netlogon/tcp/any/445 6:ms-netlogon/tcp/any/1025-5000 7:ms-netlogon/udp/any/137 8:ms-netlogon/udp/any/138 9:ms-netlogon/udp/any/445 10:netbios-ss/tcp/any/139 11:msrpc-base/tcp/any/any 12:msrpc-base/udp/any/any 13:ms-ds-smb-base/tcp/any/139 14:ms-ds-smb-base/tcp/any/445 15:ms-ds-smb-base/udp/any/445 16:mssql-db-base/tcp/any/1433 17:mssql-db-base/udp/any/1433 18:mssql-mon/udp/any/1434 19:ms-service-contro/tcp/any/any 20:ms-wmi/tcp/any/any 21:windows-remote-ma/tcp/any/5985 22:windows-remote-ma/tcp/any/5986 23:ms-ds-smbv3/tcp/any/139 24:ms-ds-smbv3/tcp/any/445 25:ms-ds-smbv3/udp/any/445 26:ms-remote-registr/tcp/any/any 27:ms-remote-registr/udp/any/any 28:ms-event-log/tcp/any/any 29:ms-event-log/udp/any/any 30:ms-local-user-man/tcp/any/any 31:ms-local-user-man/udp/any/any ... ]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See how it ends with "..."? There seems to be a limit of about ~930 characters. I already tried to set the output-format to xml, but I'm not sure, if i did it correctly since there is no change in format. I used: "&lt;FONT face="courier new,courier"&gt;set cli config-output-format xml&lt;/FONT&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After running "&lt;FONT face="courier new,courier"&gt;show running security-policy is incomplete&lt;/FONT&gt;" there is no change.&lt;/P&gt;&lt;P&gt;After switching to configure-mode via "&lt;FONT face="courier new,courier"&gt;configure&lt;/FONT&gt;" and running "&lt;FONT face="courier new,courier"&gt;show rulebase security rules&lt;/FONT&gt;" it doesn't give me any output. Same when I switch back to default output format. Am I doing something wrong? Are there other ways to achieve what I need (export all applications of a certain security rule)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 08:39:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/next-generation-firewall/application-list-via-show-running-security-policy-is-incomplete/m-p/1222150#M5622</guid>
      <dc:creator>Sergio_Voigt</dc:creator>
      <dc:date>2025-02-27T08:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Application list via show running security-policy is incomplete</title>
      <link>https://live.paloaltonetworks.com/t5/next-generation-firewall/application-list-via-show-running-security-policy-is-incomplete/m-p/1222177#M5623</link>
      <description>&lt;H6&gt;&lt;EM&gt;&lt;FONT color="#800000"&gt;Can you try using&amp;nbsp;&lt;SPAN class="hljs-built_in"&gt;set&lt;/SPAN&gt; cli config-output-format &lt;SPAN class="hljs-built_in"&gt;set&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;EM&gt;&lt;FONT color="#800000"&gt;using set format&lt;/FONT&gt;&lt;/EM&gt;&lt;/H6&gt;
&lt;H6&gt;&lt;EM&gt;&lt;FONT color="#800000"&gt;here the example :&lt;/FONT&gt;&lt;/EM&gt;&lt;/H6&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;H6&gt;&lt;EM&gt;&lt;FONT color="#800000"&gt;&lt;SPAN class="hljs-built_in"&gt;set&lt;/SPAN&gt; shared application MyApp category business-systems &lt;/FONT&gt;&lt;/EM&gt;&lt;/H6&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;H6&gt;&lt;EM&gt;&lt;FONT color="#800000"&gt;&lt;SPAN class="hljs-built_in"&gt;set&lt;/SPAN&gt; shared application MyApp subcategory collaboration &lt;/FONT&gt;&lt;/EM&gt;&lt;/H6&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;H6&gt;&lt;EM&gt;&lt;FONT color="#800000"&gt;&lt;SPAN class="hljs-built_in"&gt;set&lt;/SPAN&gt; shared application MyApp technology browser-based &lt;/FONT&gt;&lt;/EM&gt;&lt;/H6&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;H6&gt;&lt;EM&gt;&lt;FONT color="#800000"&gt;&lt;SPAN class="hljs-built_in"&gt;set&lt;/SPAN&gt; shared application MyApp risk 3 &lt;/FONT&gt;&lt;/EM&gt;&lt;/H6&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;H6&gt;&lt;EM&gt;&lt;FONT color="#800000"&gt;&lt;SPAN class="hljs-built_in"&gt;set&lt;/SPAN&gt; shared application MyApp default port tcp/8080&lt;/FONT&gt;&lt;/EM&gt;&lt;/H6&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;H6&gt;&lt;EM&gt;&lt;FONT color="#800000"&gt; &lt;SPAN class="hljs-built_in"&gt;set&lt;/SPAN&gt; shared application MyApp &lt;SPAN class="hljs-built_in"&gt;timeout&lt;/SPAN&gt; 30 &lt;/FONT&gt;&lt;/EM&gt;&lt;/H6&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;H6&gt;&lt;EM&gt;&lt;FONT color="#800000"&gt;&lt;SPAN class="hljs-built_in"&gt;set&lt;/SPAN&gt; shared application MyApp tcp-timeout 60&lt;/FONT&gt;&lt;/EM&gt;&lt;/H6&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;H6&gt;&lt;EM&gt;&lt;FONT color="#800000"&gt; &lt;SPAN class="hljs-built_in"&gt;set&lt;/SPAN&gt; shared application MyApp udp-timeout 30&lt;/FONT&gt;&lt;/EM&gt;&lt;/H6&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;H6&gt;&lt;EM&gt;&lt;FONT color="#800000"&gt; &lt;SPAN class="hljs-built_in"&gt;set&lt;/SPAN&gt; shared application MyApp tcp-keep-alive &lt;SPAN class="hljs-built_in"&gt;yes&lt;/SPAN&gt; &lt;/FONT&gt;&lt;/EM&gt;&lt;/H6&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;H6&gt;&lt;EM&gt;&lt;FONT color="#800000"&gt;&lt;SPAN class="hljs-built_in"&gt;set&lt;/SPAN&gt; shared application MyApp enable-default &lt;SPAN class="hljs-built_in"&gt;yes&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/H6&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;H6&gt;&lt;EM&gt;&lt;FONT color="#800000"&gt; &lt;SPAN class="hljs-built_in"&gt;set&lt;/SPAN&gt; shared application MyApp description &lt;SPAN class="hljs-string"&gt;"Custom business app running on TCP 8080"&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/H6&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 11:21:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/next-generation-firewall/application-list-via-show-running-security-policy-is-incomplete/m-p/1222177#M5623</guid>
      <dc:creator>Mudhireddy</dc:creator>
      <dc:date>2025-02-27T11:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Application list via show running security-policy is incomplete</title>
      <link>https://live.paloaltonetworks.com/t5/next-generation-firewall/application-list-via-show-running-security-policy-is-incomplete/m-p/1222381#M5630</link>
      <description>&lt;P&gt;Hello Suresh, many thanks for replying. Unfortunately this didn't change the output format at all. Could it be that there is some kind of configuration on the FW, that makes it reject giving output for the command "show rulesbase security rules" or reject the "set"-command? Because whatever format I change it to, I won't show anything. With the exceptance of "show running security-policy" which gives the incomplete output as mentioned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interestingly, with the XML API Browser I'm able to get what i need. A full output of all the enabled applications of a certain rule. Like this:&lt;/P&gt;&lt;P&gt;&amp;lt;application&amp;gt;&lt;BR /&gt;&amp;lt;member&amp;gt;ms-ds-smb-base&amp;lt;/member&amp;gt;&lt;BR /&gt;&amp;lt;member&amp;gt;ms-ds-smbv2&amp;lt;/member&amp;gt;&lt;BR /&gt;&amp;lt;member&amp;gt;ms-ds-smbv3&amp;lt;/member&amp;gt;&lt;BR /&gt;&amp;lt;member&amp;gt;ms-service-controller&amp;lt;/member&amp;gt;&lt;BR /&gt;&amp;lt;member&amp;gt;msrpc&amp;lt;/member&amp;gt;&lt;BR /&gt;&amp;lt;member&amp;gt;mssql-db&amp;lt;/member&amp;gt;&lt;BR /&gt;&amp;lt;member&amp;gt;mssql-mon&amp;lt;/member&amp;gt;&lt;BR /&gt;&amp;lt;member&amp;gt;netbios-ss&amp;lt;/member&amp;gt;&lt;BR /&gt;&amp;lt;/application&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With a little Excel magic this can easily be extracted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;show&amp;gt;&amp;lt;config&amp;gt;&amp;lt;running&amp;gt;&amp;lt;xpath&amp;gt;&amp;lt;/xpath&amp;gt;&amp;lt;/running&amp;gt;&amp;lt;/config&amp;gt;&amp;lt;/show&amp;gt;&lt;/P&gt;&lt;P&gt;Via xpath I should also be able to get the output for a certain entry in the configuration, but it keeps giving me errors for whatever xpath I give. What's the correct xml command format?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 07:37:27 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/next-generation-firewall/application-list-via-show-running-security-policy-is-incomplete/m-p/1222381#M5630</guid>
      <dc:creator>Sergio_Voigt</dc:creator>
      <dc:date>2025-03-03T07:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Application list via show running security-policy is incomplete</title>
      <link>https://live.paloaltonetworks.com/t5/next-generation-firewall/application-list-via-show-running-security-policy-is-incomplete/m-p/1222415#M5632</link>
      <description>&lt;P&gt;You're on the right track using the XML API Browser to extract information. If you're trying to retrieve the enabled applications for a specific security rule using XPath, the correct XML command format should follow this structure:&lt;/P&gt;
&lt;P&gt;&amp;lt;show&amp;gt;&lt;BR /&gt;&amp;lt;config&amp;gt;&lt;BR /&gt;&amp;lt;running&amp;gt;&lt;BR /&gt;&amp;lt;xpath&amp;gt;/config/devices/entry/vsys/entry/rulebase/security/rules/entry[@name='Rule_Name']/application&amp;lt;/xpath&amp;gt;&lt;BR /&gt;&amp;lt;/running&amp;gt;&lt;BR /&gt;&amp;lt;/config&amp;gt;&lt;BR /&gt;&amp;lt;/show&amp;gt;&lt;/P&gt;
&lt;P data-start="451" data-end="466"&gt;&lt;STRONG data-start="451" data-end="466"&gt;Key Points:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL data-start="467" data-end="738"&gt;
&lt;LI data-start="467" data-end="532"&gt;Replace &lt;CODE data-start="477" data-end="488"&gt;Rule_Name&lt;/CODE&gt; with the actual name of your security rule.&lt;/LI&gt;
&lt;LI data-start="533" data-end="608"&gt;The XPath should match the exact hierarchy of the firewall configuration.&lt;/LI&gt;
&lt;LI data-start="609" data-end="738"&gt;The path generally follows:&lt;BR data-start="638" data-end="641" /&gt;&lt;CODE data-start="643" data-end="738"&gt;/config/devices/entry/vsys/entry/rulebase/security/rules/entry[@name='Rule_Name']/application&lt;/CODE&gt;&lt;CODE data-start="643" data-end="738"&gt;&lt;/CODE&gt;curl -k -X GET "https://&amp;lt;FIREWALL_IP&amp;gt;/api/?type=config&amp;amp;action=show&amp;amp;xpath=/config/devices/entry/vsys/entry/rulebase/security/rules/entry[@name='Rule_Name']/application&amp;amp;key=&amp;lt;API_KEY&amp;gt;"
&lt;P data-start="974" data-end="1004"&gt;If you still encounter errors:&lt;/P&gt;
&lt;OL data-start="1005" data-end="1677"&gt;
&lt;LI data-start="1005" data-end="1308"&gt;
&lt;P data-start="1008" data-end="1063"&gt;&lt;STRONG data-start="1008" data-end="1040"&gt;Check the full XML structure&lt;/STRONG&gt; using a broader query:&amp;lt;show&amp;gt;&lt;BR /&gt;&amp;lt;config&amp;gt;&lt;BR /&gt;&amp;lt;running&amp;gt;&lt;BR /&gt;&amp;lt;xpath&amp;gt;/config/devices/entry/vsys/entry/rulebase/security/rules&amp;lt;/xpath&amp;gt;&lt;BR /&gt;&amp;lt;/running&amp;gt;&lt;BR /&gt;&amp;lt;/config&amp;gt;&lt;BR /&gt;&amp;lt;/show&amp;gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="1005" data-end="1308"&gt;
&lt;P data-start="1250" data-end="1308"&gt;This will return all rules—then you can refine your XPath.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="1005" data-end="1308"&gt;
&lt;P data-start="1008" data-end="1063"&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="1310" data-end="1433"&gt;
&lt;P data-start="1313" data-end="1433"&gt;&lt;STRONG data-start="1313" data-end="1340"&gt;Verify Case Sensitivity&lt;/STRONG&gt;&lt;BR data-start="1340" data-end="1343" /&gt;The XML structure is case-sensitive. Ensure &lt;CODE data-start="1390" data-end="1416"&gt;entry[@name='Rule_Name']&lt;/CODE&gt; exactly matches.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="1005" data-end="1308"&gt;
&lt;P data-start="1008" data-end="1063"&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="1435" data-end="1677"&gt;
&lt;P data-start="1438" data-end="1533"&gt;&lt;STRONG data-start="1438" data-end="1474"&gt;Use &lt;CODE data-start="1444" data-end="1447"&gt;|&lt;/CODE&gt; in case of multiple VSYS&lt;/STRONG&gt;&lt;BR data-start="1474" data-end="1477" /&gt;If you're working with multiple virtual systems, try:&amp;lt;xpath&amp;gt;/config/devices/entry/vsys/entry[@name='vsys1']/rulebase/security/rules/entry[@name='Rule_Name']/application&amp;lt;/xpath&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;BR /&gt;&lt;CODE data-start="643" data-end="738"&gt;&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 03 Mar 2025 15:40:55 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/next-generation-firewall/application-list-via-show-running-security-policy-is-incomplete/m-p/1222415#M5632</guid>
      <dc:creator>Mudhireddy</dc:creator>
      <dc:date>2025-03-03T15:40:55Z</dc:date>
    </item>
  </channel>
</rss>

