<?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: Exporting all the rules and sub rules in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/exporting-all-the-rules-and-sub-rules/m-p/525720#M108707</link>
    <description>&lt;P&gt;Just to provide an update - support concluded the best way to export this information would be to manually export the security and NAT rules as CSV from every firewall GUI rather than going through Panorama.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Logic being the firewall has the final set of all the rules including device specific rules so that will be the most "clean"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Going through API - they were able to confirm the browser shouldn't output anything useful and one needs to go through Excel to potentially import the data.&amp;nbsp; Since our setup has a self-signed certificate that Excel does not allow bypassing it seems like a dead end there.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also if you have any scripts or converters please share.&amp;nbsp; I keep running into the post that says do a search you will find 4 or 5 and I can tell you it looks like the converter written in Python for PAN-OS 7 doesn't work with OS 10 configs.&amp;nbsp; There is another Python one that seems to only work with device configs.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jan 2023 20:33:19 GMT</pubDate>
    <dc:creator>AWongCA</dc:creator>
    <dc:date>2023-01-03T20:33:19Z</dc:date>
    <item>
      <title>Exporting all the rules and sub rules</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/exporting-all-the-rules-and-sub-rules/m-p/525291#M108632</link>
      <description>&lt;P&gt;I have been tasked with exporting all the rules from our Palo Altos for monthly review purposes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Panorama has shared rules as well as rules in each device group. Our firewalls have rules on them as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Support suggests using the PDF/CSV option on the shared rules. We have 10+ shared and sub device groups, and 20+ PA220s.&amp;nbsp; Obviously this will work and will be a fantastic mess of CSV files but it will be good data. Tedious and mistake prone.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;I have looked into the API approach &lt;A href="https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000PNutCAG" target="_blank"&gt;https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000PNutCAG&lt;/A&gt;&amp;nbsp;. I have a feeling this may be outdated with version 10 software.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;I have tried to convert the XML backup files using a powershell script I found here which worked but then I was informed we need to include the NAT rules as well&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 27 Dec 2022 23:38:44 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/exporting-all-the-rules-and-sub-rules/m-p/525291#M108632</guid>
      <dc:creator>AWongCA</dc:creator>
      <dc:date>2022-12-27T23:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting all the rules and sub rules</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/exporting-all-the-rules-and-sub-rules/m-p/525309#M108636</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/186829"&gt;@AWongCA&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks for sharing! sorting through csv files can be tedious. You should be able to use &lt;A href="https://docs.paloaltonetworks.com/pan-os/10-1/pan-os-panorama-api/get-started-with-the-pan-os-xml-api" target="_self"&gt;XML API.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 03:37:41 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/exporting-all-the-rules-and-sub-rules/m-p/525309#M108636</guid>
      <dc:creator>JayGolf</dc:creator>
      <dc:date>2022-12-28T03:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting all the rules and sub rules</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/exporting-all-the-rules-and-sub-rules/m-p/525720#M108707</link>
      <description>&lt;P&gt;Just to provide an update - support concluded the best way to export this information would be to manually export the security and NAT rules as CSV from every firewall GUI rather than going through Panorama.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Logic being the firewall has the final set of all the rules including device specific rules so that will be the most "clean"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Going through API - they were able to confirm the browser shouldn't output anything useful and one needs to go through Excel to potentially import the data.&amp;nbsp; Since our setup has a self-signed certificate that Excel does not allow bypassing it seems like a dead end there.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also if you have any scripts or converters please share.&amp;nbsp; I keep running into the post that says do a search you will find 4 or 5 and I can tell you it looks like the converter written in Python for PAN-OS 7 doesn't work with OS 10 configs.&amp;nbsp; There is another Python one that seems to only work with device configs.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 20:33:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/exporting-all-the-rules-and-sub-rules/m-p/525720#M108707</guid>
      <dc:creator>AWongCA</dc:creator>
      <dc:date>2023-01-03T20:33:19Z</dc:date>
    </item>
  </channel>
</rss>

