XFP/10GbE interfaces that are administratively down generate SNMP Digital Optical Monitoring (DOM) traps (JUNIPER-DOM-MIB) for low power alarm if the fiber is pulled out from the interface or the adjacent router interface is down.
SNMP DOM Traps from disabled interfaces can be ignored.
How To Reproduce
1. Configure the router to send traps (all traps) to an SNMP server.
2. Connect a fiber cable into an interface with the laser on.
3. Put the interface in disable:
#set interface xe-a/b/c disable
4. Confirm the “Laser rx power” levels is showing good:
show interface diagnostic optics xe-a/b/c
5. Disconnect the fiber from the interface or
#set interface xe-d/e/f disable
6. on the adjacent interface.
Connect the fiber into the interface or
#delete interface xe-d/e/f disable
on the adjacent interface.
After steps 5 and 6, you will see the SNMP DOM traps being generated towards the SNMP server.
DOM = Digital Optical Monitoring
##### Test log ####
Step 1. Sample configuration on the DUT.
interfaces { xe-0/0/0 { disable; unit 0; } } snmp { community public { authorization read-only; clients { 172.27.116.200/23; } } trap-group traps { categories { authentication; chassis; link; remote-operations; configuration; services; } targets { 172.27.116.200; } } }
Step 2.
SNMP manager 172.27.116.200/23 | | fxp0 cheese +------+ +------+ [Dut] | |xe-0/0/0(*disabled) xe-1/3/0(enabled)| | | |Tx -------------------------------> Rx| | | |Rx <------------------------------- Tx| | +------+ +------+
Step 3.
lab@cheese> show interfaces terse xe-0/0/0 Interface Admin Link Proto Local Remote xe-0/0/0 down down xe-0/0/0.0 up down multiservice Step 4. lab@cheese> show interfaces diagnostics optics xe-0/0/0 Physical interface: xe-0/0/0 Laser bias current : 0.000 mA Laser output power : 0.0000 mW / - Inf dBm Module temperature : 37 degrees C / 99 degrees F Laser rx power : 0.1220 mW / -9.14 dBm <<<<<<<<< Rx power is normal -- snip -- Laser rx power high alarm : Off Laser rx power low alarm : Off <<< alarm Off Laser rx power high warning : Off Laser rx power low warning : Off <<< alarm Off -- snip --
Step 5.
cheese xe-0/0/0 Rx cable is disconnected, then SNMP DOM Traps are observed on SNMP manager. Sep 26 18:03:29 JTAC-Japan snmptrapd[645]: 172.27.116.23: Enterprise Specific Trap (.1) Uptime: 1:09:22.81, IF-MIB::ifDescr.512 = STRING: xe-0/0/0, SNMPv2-SMI::enterprises.2636.3.60.1.1.1.1.3.512 = Hex-STRING: 00 04 80 , SNMPv2-SMI::enterprises.2636.3.60.1.1.1.1.1.512 = Hex-STRING: 00 06 80 , SNMPv2-SMI::enterprises.2636.3.60.1.1.1.1.2.512 = Hex-STRING: 07 DD 09 1A 12 03 1D 00 2B 09 00 Sep 26 18:03:29 JTAC-Japan snmptrapd[645]: cheezu [UDP: [172.27.116.23]:56581]: Trap , DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (416281) 1:09:22.81, SNMPv2-MIB::snmpTrapOID.0 = OID: SNMPv2-SMI::enterprises.2636.4.18.0.1, IF-MIB::ifDescr.512 = STRING: xe-0/0/0, SNMPv2-SMI::enterprises.2636.3.60.1.1.1.1.3.512 = Hex-STRING: 00 04 80 , SNMPv2-SMI::enterprises.2636.3.60.1.1.1.1.1.512 = Hex-STRING: 00 06 80 , SNMPv2-SMI::enterprises.2636.3.60.1.1.1.1.2.512 = Hex-STRING: 07 DD 09 1A 12 03 1D 00 2B 09 00 , SNMPv2-MIB::snmpTrapEnterprise.0 = OID: SNMPv2-SMI::enterprises.2636.1.1.1.2.57 lab@cheese> show interfaces diagnostics optics xe-0/0/0 Physical interface: xe-0/0/0 Laser bias current : 0.002 mA Laser output power : 0.0000 mW / - Inf dBm Module temperature : 36 degrees C / 97 degrees F Laser rx power : 0.0003 mW / -35.23 dBm <<<<<<<<< Rx power is down. -- snip -- Laser rx power high alarm : Off Laser rx power low alarm : On <<< alarm On Laser rx power high warning : Off Laser rx power low warning : On <<< alarm On -- snip --
Step 6.
cheese xe-0/0/0 Rx cable is connected, then SNMP DOM Traps are observed on SNMP manager. Sep 26 18:07:44 JTAC-Japan snmptrapd[645]: 172.27.116.23: Enterprise Specific Trap (.2) Uptime: 1:13:37.86, IF-MIB::ifDescr.512 = STRING: xe-0/0/0, SNMPv2-SMI::enterprises.2636.3.60.1.1.1.1.3.512 = Hex-STRING: 00 06 80 , SNMPv2-SMI::enterprises.2636.3.60.1.1.1.1.1.512 = Hex-STRING: 00 04 80 , SNMPv2-SMI::enterprises.2636.3.60.1.1.1.1.2.512 = Hex-STRING: 07 DD 09 1A 12 07 2C 00 2B 09 00 Sep 26 18:07:44 JTAC-Japan snmptrapd[645]: cheezu [UDP: [172.27.116.23]:56581]: Trap , DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (441786) 1:13:37.86, SNMPv2-MIB::snmpTrapOID.0 = OID: SNMPv2-SMI::enterprises.2636.4.18.0.2, IF-MIB::ifDescr.512 = STRING: xe-0/0/0, SNMPv2-SMI::enterprises.2636.3.60.1.1.1.1.3.512 = Hex-STRING: 00 06 80 , SNMPv2-SMI::enterprises.2636.3.60.1.1.1.1.1.512 = Hex-STRING: 00 04 80 , SNMPv2-SMI::enterprises.2636.3.60.1.1.1.1.2.512 = Hex-STRING: 07 DD 09 1A 12 07 2C 00 2B 09 00 , SNMPv2-MIB::snmpTrapEnterprise.0 = OID: SNMPv2-SMI::enterprises.2636.1.1.1.2.57 lab@cheese> show interfaces diagnostics optics xe-0/0/0 Physical interface: xe-0/0/0 Laser bias current : 0.000 mA Laser output power : 0.0000 mW / - Inf dBm Module temperature : 36 degrees C / 97 degrees F Laser rx power : 0.1216 mW / -9.15 dBm <<<<<<<<< Rx power is normal -- snip -- Laser rx power high alarm : Off Laser rx power low alarm : Off <<< alarm Off Laser rx power high warning : Off Laser rx power low warning : Off <<< alarm Off -- snip --
This is not a bug. The system is working as designed.
It makes no sense for an interface to send traps out when it is disabled, so SNMP DOM Traps from disabled interfaces can be ignored.
SNMP DOM Traps are seen from disabled 10GbE/XFP interfaces (with DPC/MPC), but they are not seen from disabled GbE/SFP or 10GbE/SFP+ interfaces.