- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
09-19-2021 11:00 PM
Hello,
I am looking for a command in PAN-OS for view one rule created by GUI but I can't find it.
I want to view a rule configured searching it by rule name or by rule number. Best the first option.
Anybody can help me?
Thanks in advance
09-20-2021 01:37 AM - edited 09-20-2021 01:38 AM
Hi @carlostg ,
Below commands should help you to see the policies configured on the firewall. You can filter the output by putting required filter after pipe (|) to see exact matching policies.
show running security-policy
show running nat-policy
e.g. If you want to see only names on the security policy without any details, then you can try below syntax. Accordingly you can try different match conditions to filter the security polices.
show running security-policy | match index
Hope it helps!
09-20-2021 01:51 AM - edited 09-20-2021 01:54 AM
Thank you @SutareMayur .
I tried
show running security-policy | match hello
but it doesn't work. It doesn't show me anything
I also tried
show running security-policy | match rule eq hello
and It says invalid syntax
I have a rule name hello to test
I want to view the rule named hello with all the details
Could anybody help me?
09-20-2021 03:01 AM
Hello,
Maybe the link can help for you https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000ClaCCAS
Check it and let me if it was helped
09-20-2021 06:32 AM
Thanks @Alpalo but It didn't help me
show running security-policy | match hello
Doesn't show anything
I can't execute this command in configure mode as the procedure mentioned, I have no this command.
Here are my permissions in CLI
show cli permissions
Admin role: superuser
Device administrator: True
Query prefix: (null)
Session hide user: False
Session hide IP: False
Accessible Virtual System: all
Version info:
sw-version: 9.1.7
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!