This task describes how to enable or disable trap generation either on the physical interface or on the port-channel interface.
See Connect to SEFOS.
SEFOS-1# configure terminal
SEFOS-1(config)# interface xl-ethernet 0/1
SEFOS-1(config-if)# snmp trap link-status
SEFOS-1(config-if)# no snmp trap link-status
SEFOS-1(config-if)# end
SEFOS-1# show interface xl-ethernet 0/1 ... Link Up/Down Trap is enabled ...
or,
SEFOS-1# show interface xl-ethernet 0/1 ... Link Up/Down Trap is disabled ...
If the trap is enabled, the switch sends trap messages to the SNMP manager on specific events such as link up, link down, and so on.