- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
12-27-2022 03:38 PM
I have been tasked with exporting all the rules from our Palo Altos for monthly review purposes.
Panorama has shared rules as well as rules in each device group. Our firewalls have rules on them as well.
12-27-2022 07:37 PM
Hi @AWongCA ,
thanks for sharing! sorting through csv files can be tedious. You should be able to use XML API.
01-03-2023 10:09 AM - edited 01-03-2023 12:33 PM
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.
Logic being the firewall has the final set of all the rules including device specific rules so that will be the most "clean"
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. Since our setup has a self-signed certificate that Excel does not allow bypassing it seems like a dead end there.
Also if you have any scripts or converters please share. 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. There is another Python one that seems to only work with device configs.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!