FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
aneshcheret
Staff
Staff
Article Id 196342
Description
This article provides a solution when SNMPwalk does not complete and stops with the message 'Error: OID not increasing'.

Solution
This error can occur if the snmp-index is configured to more than one interface.
Use the FortiGates CLI to display the interface configuration:
        #show system interface
Depending on the number of interfaces it can be difficult to spot the interfaces which are causing the problem.
Use the following command to only print the snmp-indexes:
        #show system interface | grep snmp-index
Sample output
        FGVM02 #show system interface | grep snmp-index 
                set snmp-index 1
                set snmp-index 2
                set snmp-index 3
                set snmp-index 3
                set snmp-index 5
                set snmp-index 6
                set snmp-index 7

In this example the snmp-index 3 appears twice.
To identify on which interfaces the duplicate snmp-index is configured, the following command will show the complete configuration part:
        #show system interface | grep -f ‘snmp-index 3’
Sample output
        #config system interface
            edit "port3"
                set vdom "root"
                set ip 10.191.248.17 255.255.255.224
                set allowaccess ping https ssh snmp http
                set type physical
                set snmp-index 3 <----
            next
            edit "port4"
                set vdom "root"
                set ip 10.191.7.25 255.255.255.0
                set allowaccess ping
                set type physical
                set snmp-index 3 <----
            next
        end

Change the snmp-index to an unused integer value to resolve the problem:
        #config system interface
           edit <port>   
       set snmp-index <integer>
end

Contributors