| Solution | - Set up SNMP under System -> FortiGate -> SNMP and enable SNMP, and configure as per Guide.
- Use the following SNMP OID to retrieve the traffic volume: 1.3.6.1.4.1.12356.101.5.1.2.1.1.3
- Use an SNMP walk tool to retrieve the traffic volume.
For example: "SnmpWalk.exe -r:192.14.47.8 -v:3 -sn:snmptest -os:1.3.6.1.4.1.12356.101.5 -op:1.3.6.1.4.1.12356.101.6"  Result: OID=.1.3.6.1.4.1.12356.101.5.1.2.1.1.3.1.0, Type=Counter32, Value=2793896 OID=.1.3.6.1.4.1.12356.101.5.1.2.1.1.3.1.1, Type=Counter32, Value=0 OID=.1.3.6.1.4.1.12356.101.5.1.2.1.1.3.1.2, Type=Counter32, Value=0 OID=.1.3.6.1.4.1.12356.101.5.1.2.1.1.3.1.3, Type=Counter32, Value=0 OID=.1.3.6.1.4.1.12356.101.5.1.2.1.1.3.1.4, Type=Counter32, Value=0 OID=.1.3.6.1.4.1.12356.101.5.1.2.1.1.3.1.5, Type=Counter32, Value=0 OID=.1.3.6.1.4.1.12356.101.5.1.2.1.1.3.1.6, Type=Counter32, Value=0 OID=.1.3.6.1.4.1.12356.101.5.1.2.1.1.3.1.7, Type=Counter32, Value=0 OID=.1.3.6.1.4.1.12356.101.5.1.2.1.1.3.1.8, Type=Counter32, Value=0 OID=.1.3.6.1.4.1.12356.101.5.1.2.1.1.3.1.9, Type=Counter32, Value=0 OID=.1.3.6.1.4.1.12356.101.5.1.2.1.1.3.1.10, Type=Counter32, Value=0 OID=.1.3.6.1.4.1.12356.101.5.1.2.1.1.3.1.11, Type=Counter32, Value=3682945731
Note: The last digit in the OID represents the policy ID. |