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 

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 
diagnose sys device list root


diagnose sys device list VDOM

should do the trick.

  • Please check carefully it gives index that is repeated for more than a port – Jatinder Singh Brar Jul 2 '18 at 6:24
  • You're correct - apparently, an unused port can have the same index as a used one. I don't think there's a clear solution to this ambiguity, I'd contact support. – Zac67 Jul 2 '18 at 10:56

Use the command:

diagnose netlink interface list

It will show you the index references for the interfaces.


if=port1 family=00 type=1 index=10 mtu=1500 link=0 master=0 ref=8 state=start present flags=up broadcast run promsic multicast

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.