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

How to get current bandwidth of firewall policy via SNMP

Hi all,

Can help me to get current bandwidth of firewall policy like below picture via OID SNMP. 

 
 

Screenshot_4.png

Now, I have retrieved the value of fgFwPolByteCount, but it count is from the time the policy became active. Do you have any ideas for getting current bandwidth? Thank you for any feedback

2 REPLIES 2
AnthonyH
Staff
Staff

Hello tomi_it,

 

Could please review this document:

https://community.fortinet.com/t5/FortiGate/Technical-Tip-How-to-calculate-the-SNMP-OID-value-for-cu...

Technical Support Engineer,
Anthony.
tomi_it

Sorry. According to your guidance, I couldn't find any OID returning the value of bytes collected over 1 minute. The fgFwPolStatsEntry doesn't return any unique numerical value?!

The MIB file that I downloaded from the device only interprets like this:

FgFwPolStatsEntry ::= SEQUENCE {
    fgFwPolID               FnIndex,
    fgFwPolPktCount         Counter32,
    fgFwPolByteCount        Counter32,
    fgFwPolLastUsed         DisplayString,
    fgFwPolPktCountHc       Counter64,
    fgFwPolByteCountHc      Counter64
}

fgFwPolID OBJECT-TYPE
    SYNTAX      FnIndex
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION 
        "Firewall policy ID. Only enabled policies are present in this table. Policy IDs are only unique within a virtual domain."
    ::= { fgFwPolStatsEntry 1 }

fgFwPolPktCount OBJECT-TYPE
    SYNTAX      Counter32
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION 
        "Number of packets matched to policy (passed or blocked, depending on policy action). Count is from the time the policy became active."
    ::= { fgFwPolStatsEntry 2 }

fgFwPolByteCount OBJECT-TYPE
    SYNTAX      Counter32
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION 
        "Number of bytes in packets matching the policy. See fgFwPolPktCount."
    ::= { fgFwPolStatsEntry 3 }

 

 

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors