Skip to main content
Hideki_Uemura
New Member
September 5, 2019
Question

Command to output traffic statistics for each policy

  • September 5, 2019
  • 2 replies
  • 11597 views

Is there a command to output traffic statistics for each policy?

2 replies

OneOfUs
New Member
September 9, 2019

diagnose firewall iprope show 00100004 <policy-id>

 

diagnose firewall iprope show 00100004 3
idx=3 pkts/bytes=1572149/799803449 asic_pkts/asic_bytes=1501236/796584164 nturbo_pkts/nturbo_bytes=0/0 flag=0x0 hit count:12981
    first:2019-05-24 08:23:47 last:2019-09-04 07:55:43
 established session count:0
    first est:2019-05-24 08:23:47 last est:2019-09-04 07:45:39
Hideki_Uemura
New Member
September 10, 2019

Thank you for the wonderful answer. You have made my way to the future.

emnoc
New Member
September 10, 2019

The API would give the same details and would not require pre-knowledge of the policyid#

 

e.g api entry point 

 

https://192.168.1.99/api/v2/monitor/firewall/policy/

 

Details would look similar to ;

 

    {

      "policyid":2,

      "uuid":"47cd84ec-ce3d-51e9-2d18-6ba8026ba89f",

      "active_sessions":430,

      "bytes":2643426116,

      "packets":35395089,

      "last_used":1568085842,

      "first_used":1567773847,

      "hit_count":29104,

      "session_last_used":1568085842,

      "session_first_used":1567773897,

      "session_count":4294967273

    }

 

 

EvGmail
New Member
October 29, 2020