Fortigate ifIndex – How to Check the ifIndex on a Fortigate 1500D

firewallfortigatefortinet

What is the exact command to check the port ifIndex that is used by SNMP to reflect trap at SNMP host at 1500D Fortigate?

The command diagnose sys device list root displays the index which isn't unique for every port.

The command diagnose hardware deviceinfo nic Portno also displays various hardware parameters related to port but not ifIndex.

How can I check the ifIndex on a Fortigate 1500D device?

Version: FortiGate-1500D v5.4.4,build1117,170209 

Best Answer

The following should show you the snmp-index for each interface on the Fortigate. You can also modify this field if you so choose.

# config system interface
(interface) # show