Configuring Digital Diagnostic Monitoring (DDM)
Overview
Optical modules are widely deployed in network infrastructures, particularly in high-performance computing (HPC) clusters, where they enable high-speed data transmission through switch ports. The stability of optical modules directly affects the reliable operation of the network. Traditional maintenance practices rely on reactive fault handling, which results in high labor and time costs and increases the risk of service interruptions.
Digital Diagnostic Monitoring (DDM) can monitor parameters of the optical module regularly and generate alarms when parameter values exceed thresholds. By using DDM, you can detect issues early to maintain network stability.
Configuration Notes and Constraints
This function is currently supported only on the switch platforms of Trident4-X9, Trident4-X11, Tomahawk4, and Tomahawk5. The interface must have an optical module inserted that supports the CMIS protocol (such as QSFP56-DD, OSFP, and QSFP56).
To view optical module related alerts in the log file, enter the Linux shell mode, and then run the command cat /tmp/log/messages.
Procedure
Use the following commands to enable or disable optical module monitoring and alerting for all switch ports, configure the monitoring interval for all switch ports, and view monitoring information and alarms of optical modules.
Step 1 Enable or disable optical module monitoring and alerting for all switch interfaces.
set interface optics-monitor enable <true | false>
Step 2 Configure the monitoring interval.
set interface optics-monitor period <interval>
Step 3 (Optional) View the optical diagnostic information.
run show interface diagnostics optics {all | <port-name>}
Configuration Example
Procedure
Step 1 Enable optical module monitoring and alerting for all switch interfaces.
admin@PICOS# set interface optics-monitor enable true
admin@PICOS# commitStep 2 Configure the monitoring interval to 15 minutes.
admin@PICOS# set interface optics-monitor period 15
admin@PICOS# commitVerifying the Configuration
View the optical diagnostic information of xe-1/1/1. In this case, the WARN and ALARM thresholds for each metric are displayed.
admin@PICOS# run show interface diagnostics optics xe-1/1/1
Interface Temp(C/F) Voltage(V) Bias(mA) Tx Power(dBm) Rx Power(dBm) Module Type
------------- ---------------------- ------------ ------------------ -------------------- -------------------- ----------------
xe-1/1/1 41.00/105.80(OK) 3.28(OK) 0.00(ALARM) [C1] -20.00(ALARM) [C1] 0.84(OK) [C1] 400G_BASE_FR4
59.87(OK) [C2] 2.73(OK) [C2] 0.59(OK) [C2]
89.97(OK) [C3] 1.46(OK) [C3] 1.05(OK) [C3]
65.62(OK) [C4] 2.11(OK) [C4] -2.13(OK) [C4]
Diagnostic parameters threshold:
Low Alarm Low Warn High Warn High Alarm
--------- -------- --------- ----------
Temp(C/F) -5 0 75 80
Voltage(V) 2.97 3.13 3.46 3.63
Bias(mA) 35.00 40.00 110.00 120.00
Tx Power(dBm) -7.30 -4.30 5.49 6.49
Rx Power(dBm) -11.30 -8.30 5.49 6.49
View the optical diagnostic information of all switch ports. In this case, the WARN and ALARM thresholds for each metric are not displayed.
admin@PICOS# run show interface diagnostics optics all
Interface Temp(C/F) Voltage(V) Bias(mA) Tx Power(dBm) Rx Power(dBm) Module Type
------------- ---------------------- ------------ ------------------ -------------------- -------------------- ----------------
xe-1/1/1.1 40.00/104.00(OK) 3.28(OK) 0.00(ALARM) [C1] -20.00(ALARM) [C1] 3.02(OK) [C1] 400G_BASE_FR4
76.94(OK) [C2] 2.21(OK) [C2] 2.34(OK) [C2]
70.89(OK) [C3] 2.24(OK) [C3] 1.70(OK) [C3]
70.34(OK) [C4] 2.20(OK) [C4] 1.12(OK) [C4]
xe-1/1/1.2 40.00/104.00(OK) 3.28(OK) 0.00(ALARM) [C1] -20.00(ALARM) [C1] 3.02(OK) [C1] 400G_BASE_FR4
76.94(OK) [C2] 2.21(OK) [C2] 2.34(OK) [C2]
70.89(OK) [C3] 2.24(OK) [C3] 1.70(OK) [C3]
70.34(OK) [C4] 2.20(OK) [C4] 1.12(OK) [C4]
xe-1/1/1.3 40.00/104.00(OK) 3.28(OK) 0.00(ALARM) [C1] -20.00(ALARM) [C1] 3.02(OK) [C1] 400G_BASE_FR4
76.94(OK) [C2] 2.21(OK) [C2] 2.34(OK) [C2]
70.89(OK) [C3] 2.24(OK) [C3] 1.70(OK) [C3]
70.34(OK) [C4] 2.20(OK) [C4] 1.12(OK) [C4]
xe-1/1/1.4 40.00/104.00(OK) 3.28(OK) 0.00(ALARM) [C1] -20.00(ALARM) [C1] 3.02(OK) [C1] 400G_BASE_FR4
76.94(OK) [C2] 2.21(OK) [C2] 2.34(OK) [C2]
70.89(OK) [C3] 2.24(OK) [C3] 1.70(OK) [C3]
70.34(OK) [C4] 2.20(OK) [C4] 1.12(OK) [C4]
xe-1/1/2.1 44.00/111.20(OK) 3.27(OK) 73.97(OK) [C1] 2.03(OK) [C1] -20.00(ALARM) [C1] 400G_BASE_FR4
69.54(OK) [C2] 1.97(OK) [C2] 2.80(OK) [C2]
67.30(OK) [C3] 2.12(OK) [C3] 2.10(OK) [C3]NOTEs:
Temp, Voltage, Bias, Tx Power, Rx Power, and Module Type represent the operating temperature, operating voltage, bias current, transmitting optical power, receiving optical power, and optical module type respectively.
[C1], [C2], [C3], and [C4] represent channel identifiers, which are used to distinguish different channels for optical modules to transmit data.