Skip to main content
riteshpv
Staff
Staff
May 15, 2025

Technical Tip: Receiving Link Trap Status Alerts for All Ports

  • May 15, 2025
  • 0 replies
  • 614 views
Description This article explains the reason for receiving SNMP trap alerts related to port status changes (link up/down) on FortiSwitch devices and discusses whether it is possible to disable such alerts.
Scope FortiSwitch OS versions: 7.6.1, 7.4.6, 7.2.10, 7.0.11.
Solution

When SNMP trap functionality is enabled in the SNMP configuration, FortiSwitch sends a trap notification to the configured SNMP server whenever there is a port status change (for example, link up or link down).

 

Sample SNMP Configuration:

 

config system snmp community
    edit 1
        set events cpu-high mem-low log-full intf-ip ent-conf-change sensor-fault sensor-alarm fan-detect psu-status ip-conflict
            config hosts
                edit 1
                    set interface ''
                    set ip 10.10.10.10 255.255.255.255 <-- SNMP server IP.
                    set source-ip 0.0.0.0
                next
            end
        set name "test"
        set query-v1-port 161
        set query-v1-status enable
        set query-v2c-port 161
        set query-v2c-status enable
        set status enable
        set trap-v1-lport 162
        set trap-v1-rport 162
        set trap-v1-status enable <-- SNMP trap v1 enabled.
        set trap-v2c-lport 162
        set trap-v2c-rport 162
        set trap-v2c-status enable <-- SNMP trap v2 enabled.
    next
end


Disabling Specific Trap Events:

Certain trap events can be excluded from the set of events list to prevent their corresponding traps. For example, to disable traps related to 'psu-status', remove it from the event list of the SNMP config:

 

    set events cpu-high mem-low log-full intf-ip ent-conf-change sensor-fault sensor-alarm fan-detect ip-conflict


However, there is no available option to disable or suppress traps specifically related to port link status changes (link up/down). These traps are generated by default whenever a port status change occurs and cannot be filtered through SNMP event configuration.

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!