Skip to main content
Fortiswiss
New Member
March 12, 2012
Question

How to " Clear all traffic counter from CLI"

  • March 12, 2012
  • 4 replies
  • 25856 views
I tried to find information to clear all traffic counters of a VDOM There is a description on the GUI: http://kb.fortinet.com/kb/microsites/microsite.do?cmd=displayKC&externalId=FD32921 but this needs to be done for each policy... How can I do this for a whole VDOM? Thanx for any hint...

    4 replies

    Paul_Dean
    Visitor III
    March 12, 2012
    Hi Fortiswiss, The policy view has a checkbox top left (under the Create New button) which selects all policies. Once they are all selected you can right click on a policy and clear counters for all selected policies. Is that what you were after? Paul
    Fortiswiss
    New Member
    March 12, 2012
    Hi Paul, thanx This works with " MR2 Patch 9" ! But with " MR3 Patch 2" I miss this check box... (the one for all, and also for each policy) Fortiswiss
    Paul_Dean
    Visitor III
    March 12, 2012
    It' s there on my FG0C running MR3 patch 1 but not on a FG80C running MR3 patch 2. Odd.
    Jordan_Thompson_FTNT
    Staff
    Staff
    March 12, 2012
    From the CLI, you can try:- diagnose firewall iprope clear 100004 In MR3, you can achieve the same thing in the GUI by clicking on the first policy you would like to reset, hold down shift, and select the last policy. You can then right click to reset the counters.
    hklb
    Visitor III
    January 18, 2018

    Hello,

     

    Is someone has tested this command on FortiOS 5.4.7 (diagnose firewall iprope clear 100004 ) ?

     

    In my lab, the hit counter isn't reset...

     

    Lucas

    ede_pfau
    SuperUser
    SuperUser
    January 18, 2018

    Confirmed on a 60E, v5.4.7, that the counters are reset.

    Do you see reasonable values with 'diag fire iprope show 100004 <policy-ID>', compared to the GUI values?