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

Command which shows output in cli whatever you do in gui

Hi,

 

i forgot one command and not able to find in internet. there was one command which we run in fortigate. and after that what ever i will do in fortigate via GUI and see equivalent commands in CLI. this helps for making scripts.

3 REPLIES 3
emnoc
Esteemed Contributor III

debug cli  is what you want, go down to middle of this post on my blog

 

http://socpuppet.blogspot.com/2013/12/fortigate-tips-tricks-from-socpuppets.html

 

Examples of what to expect is present

 

Ken

PCNSE 

NSE 

StrongSwan  

ss198939
New Contributor

Great bro this resolved my question. One more question i have. I saw ur blog and hope u wud have answer I knw that policy route has a preference over static route. But do u knw a command to make sure that traffic is going only via policy route not via static route
emnoc
Esteemed Contributor III

I would use the cli cmd  diag debug flow and  monitor the lines that shows the route and route selection. I believe it indicates policy route in the display.

 

Ken

 

PCNSE 

NSE 

StrongSwan