snmp-server enable traps linkmode

This command enables Link Up/Down traps for the entire switch. When enabled, link traps are sent only if the Link Trap flag setting associated with the port is enabled. show snmp

Default enabled
Format snmp-server enable traps linkmode
Mode Global Config