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

Command which shows output in cli whatever you do in gui

  • March 6, 2018
  • 1 reply
  • 11173 views

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.

1 reply

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