- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
08-19-2016 04:56 PM
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?
08-20-2016 05:54 AM
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
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!