Is there a CLI command to show total disabled rule count

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Is there a CLI command to show total disabled rule count

L4 Transporter

Is there a CLI command to show total  count  of rules disabled for policies  versus having to count them one by one?

1 accepted solution

Accepted Solutions

L7 Applicator

The following CLI command will approximate what you want:

show config running | match "disabled yes"

 

Note that this will be all rules that are disabled, not just security policy. If you want to check just the security policies, you'll want to save the running config xml from the firewall and just search that section (with grep or a text editor). 

View solution in original post

3 REPLIES 3

L7 Applicator

The following CLI command will approximate what you want:

show config running | match "disabled yes"

 

Note that this will be all rules that are disabled, not just security policy. If you want to check just the security policies, you'll want to save the running config xml from the firewall and just search that section (with grep or a text editor). 

L0 Member

This output is not really clear to understand.

If you don't mind to use GUI, I believe it is easier than CLI.

Enter filter, then count the number of rules. Note that you need to decrease 2 rules from output. It always contains 2 default rules.

Image 007.png

  • 1 accepted solution
  • 3075 Views
  • 3 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!