Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
biltjc
New Contributor

Show Policy in CLI

Hello,

 

I used with Juniper to show a policy list based on search criterias.

I'd like to do the same with my fortigate but I don't find how to do.

 

I'm doing : get firewall policy

But the result is only ID's.

 

Is there a way to get policy ?

12 REPLIES 12
Dave_Hall
Honored Contributor

Latest FortiOS firmware updated grep to include context (option -f) setting.

 

i.e. show firewall policy | grep -f wan1

 

 

NSE4/FMG-VM64/FortiAnalyzer-VM/6.0 (FWF30E/FW92D/FGT200D/FGT101E/FGT81E)/ FAP220B/221C

NSE4/FMG-VM64/FortiAnalyzer-VM/6.0 (FWF30E/FW92D/FGT200D/FGT101E/FGT81E)/ FAP220B/221C
emnoc
Esteemed Contributor III

And one more thing to go along with the show for any part of the cfg tree. If you use the "show full" you will get the full cfg details.

 

 

e.g of usage

 

show full-configuration firewall policy 12

 

or

 

config firewall policy

   show full-configuration

 

 

PCNSE 

NSE 

StrongSwan  

PCNSE NSE StrongSwan
biltjc
New Contributor

Thanks everybody for your tips, it's very interesting and helpful.

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors