Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
New Contributor

OID to extract the content from "Comments" field from Fortigate interface

Hello everybody,

Does anyone know if it is possible via SNMP to extract the "Comments" content from Fortigate Interface, do you know what OID checks this field?

I really appreciate any help you can provide.



Hey Thiago,

to my knowledge there is no OID to get the comments field from a FortiGate interface; you can get VDOM and IP/subnet, but that's about it.

You can get the FortiGate MIB files from FortiGate GUI:
You will find all available traps and OIDs listed there.

+++ Divide by Cucumber Error. Please Reinstall Universe and Reboot +++

While I don't see an OID for this, you could leverage the API.  I'm on FOS 7.0 so if you are on a different version then your steps might be slightly different.


Follow these instructions to create an API user with a token (don't lose the token). (you can disable the PKI Group setting if you aren't using it)


Then using Curl or another method, issue this API call:

curl -X 'GET' \
'https://<fgt_ip_fqdn_here>:<port_here>/api/v2/cmdb/system/interface?format=name%7Cdescription&vdom=root&access_token=<insert_your_api_token_here>' -H 'accept: application/json'


Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Top Kudoed Authors