The set interface optics-monitor enable command enables or disables optical module monitoring and alerting for all switch interfaces. This guide uses the H3C S6820 switch as an example to show how to block alarms for non-H3C certified modules. When a third-party optical module is installed on an H3C switch, the module can normally link up, but port logs. You can disable the alarm function for an optical module to prevent the optical module from reporting alarms when its optical power exceeds the threshold. View the diagnostic information display logbuffer and find that the interface has multiple alarms and has been fluctuating.