Skip to main content
ss198939
New Member
March 6, 2018
Question

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

emnoc
New Member
March 6, 2018

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

ss198939
ss198939Author
New Member
March 13, 2018
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
New Member
March 13, 2018

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

 

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT