Skip to main content
tomi_it
New Member
May 7, 2024
Question

How to get current bandwidth of firewall policy via SNMP

  • May 7, 2024
  • 1 reply
  • 1332 views

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

1 reply

AnthonyH
Staff
Staff
May 7, 2024
tomi_it
tomi_itAuthor
New Member
May 8, 2024

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 }