Multi Critera Show Command

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.

Multi Critera Show Command

L0 Member

One problem I'm running into with the Palo cli is the ability to search the configuration for configuration matching on multiple criteria.  For instance, I'd like to display output showing all disabled security policies that include a description.

I can search for disabled policies (show | match "disabled yes") OR I can search for policies with descriptions (show | match description), but I can't link the two.

This type of cli search was possible in Junos usine multiple pipes but I haven't found a way to do it on the PA's.  Has anyone found a solution to this?

1 REPLY 1

L7 Applicator

You can match for an or operator using the \ as an escape key.  But unfortunately you cannot multiple pipe for the and option that I know of.  I generally run what I think will be the smaller of the two matches for an and operation then use the terminal search to find the second one.

 

This would match interface or ethernet

show config saved running-config.xml | match interface\|ethernet

Steve Puluka BSEET - IP Architect - DQE Communications (Metro Ethernet/ISP)
ACE PanOS 6; ACE PanOS 7; ASE 3.0; PSE 7.0 Foundations & Associate in Platform; Cyber Security; Data Center
  • 3484 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!