How to export a list of disabled security policies

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Please sign in to see details of an important advisory in our Customer Advisories area.

How to export a list of disabled security policies

L2 Linker

Hey all;

 

This is probably a question that's been asked before but I'm wondering if there is a way to export a list of all security policies currently disabled.  I'd like to have a short list for review.  I've only been able to find the CLI to show unused security policies, and from the Policies section I can list all "disabled eq yes" but no way to create a file or quicklist of disabled policies.

 

I found this article, but it's a tad time consuming, I was hoping there was an easier method that someone could share?

 

Export a List of Address Objects or Security Policies and Import into a Spreadshee​t

 

Appreciate the help!

 

Carter

1 REPLY 1

L4 Transporter

https://live.paloaltonetworks.com/t5/SDK-API-Articles/rules-edit-php-to-manage-edit-rules-from-CLI/t...

 

php rules-edit.php in=api://1.2.3.4 actions=exportToExcel:mysheet.xls location=MyDeviceGroup 'filter=(rule is.disabled)'

  • 2357 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!