Description

It is necessary to enable the count option on policies to make SNMP grab MIB under jnxJsPolicyStatsEntry .

Symptoms

SNMP get polling does not return any result of MIB jnxJsPolicyStatsEntry .

There are many MIB objects under jnxJsPolicyStatsEntry , such as:

jnxJsPolicyStatsCreationTime
jnxJsPolicyStatsInputBytes
jnxJsPolicyStatsInputByteRate
jnxJsPolicyStatsOutputBytes
jnxJsPolicyStatsOutputByteRate
jnxJsPolicyStatsInputPackets
jnxJsPolicyStatsInputPacketRate
jnxJsPolicyStatsOutputPackets
jnxJsPolicyStatsOutputPacketRate
jnxJsPolicyStatsNumSessions
jnxJsPolicyStatsSessionRate
jnxJsPolicyStatsSessionDeleted
jnxJsPolicyStatsLookups

Solution

In order to poll those MIB objects, enable the count option on the policy.

Syntax:
count
Hierarchy Level :
[edit security policies from-zone zone-name to-zone zone-name policy policy-name then]
Description :
Enables a count, in bytes or kilobytes, of all network traffic that the security policy allows to pass through the device.

After this is configured, you will able to get the SNMP result.

WARNING:   Be aware that this command can cause high CPU usage.