Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 97 additions & 0 deletions doc/Command-Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1192,6 +1192,103 @@ This command displays information for all the interfaces for the transceiver req
Vcc : 0.0000Volts
```

- Example (Decode and display information stored on the EEPROM of 400ZR QSFP+ transceiver connected to Ethernet0):
```
admin@sonic:~$ show interfaces transceiver eeprom --dom Ethernet0
Ethernet0: SFP EEPROM detected
Active Firmware: X.X
Active application selected code assigned to host lane 1: 1
Active application selected code assigned to host lane 2: 1
Active application selected code assigned to host lane 3: 1
Active application selected code assigned to host lane 4: 1
Active application selected code assigned to host lane 5: 1
Active application selected code assigned to host lane 6: 1
Active application selected code assigned to host lane 7: 1
Active application selected code assigned to host lane 8: 1
Application Advertisement: 400GAUI-8 C2M (Annex 120E) - Host Assign (0x1) - 400ZR, DWDM, amplified - Media Assign (0x1)
100GAUI-2 C2M (Annex 135G) - Host Assign (0x55) - 400ZR, DWDM, amplified - Media Assign (0x1)
CMIS Rev: 5.0
Connector: LC
Encoding: N/A
Extended Identifier: Power Class 8 (18.0W Max)
Extended RateSelect Compliance: N/A
Host Lane Count: 8
Identifier: QSFP-DD Double Density 8X Pluggable Transceiver
Inactive Firmware: X.X
Length Cable Assembly(m): 0.0
Media Interface Technology: C-band tunable laser
Media Lane Count: 1
Module Hardware Rev: 0.0
Nominal Bit Rate(100Mbs): N/A
Specification compliance: sm_media_interface
Supported Max Laser Frequency: 196100
Supported Max TX Power: -8.5
Supported Min Laser Frequency: 191300
Supported Min TX Power: -14.0
Vendor Date Code(YYYY-MM-DD Lot): 2024-01-20
Vendor Name: XXXX
Vendor OUI: XXXX
Vendor PN: XXXX
Vendor Rev: XX
Vendor SN: XXXX
is_replaceable: True
type_abbrv_name: QSFP-DD
vdm_supported: True
ChannelMonitorValues:
RX1Power: -8.729dBm
RX2Power: -infdBm
RX3Power: -infdBm
RX4Power: -infdBm
RX5Power: -infdBm
RX6Power: -infdBm
RX7Power: -infdBm
RX8Power: -infdBm
TX1Bias: 208.0mA
TX1Power: -8.492dBm
TX2Bias: 0.0mA
TX2Power: -infdBm
TX3Bias: 0.0mA
TX3Power: -infdBm
TX4Bias: 0.0mA
TX4Power: -infdBm
TX5Bias: 0.0mA
TX5Power: -infdBm
TX6Bias: 0.0mA
TX6Power: -infdBm
TX7Bias: 0.0mA
TX7Power: -infdBm
TX8Bias: 0.0mA
TX8Power: -infdBm
ChannelThresholdValues:
RxPowerHighAlarm : 2.0dBm
RxPowerHighWarning: 0.0dBm
RxPowerLowAlarm : -21.024dBm
RxPowerLowWarning : -18.013dBm
TxBiasHighAlarm : 450.0mA
TxBiasHighWarning : 420.0mA
TxBiasLowAlarm : 100.0mA
TxBiasLowWarning : 110.0mA
TxPowerHighAlarm : -5.0dBm
TxPowerHighWarning: -6.0dBm
TxPowerLowAlarm : -16.99dBm
TxPowerLowWarning : -16.003dBm
ModuleMonitorValues:
Requested Laser Frequency: 193100GHz
Tx Frequency: 193100.0GHz
Temperature: 51.055C
Requested Tx Power: -8.5dBm
Vcc: 3.331Volts
ModuleThresholdValues:
TempHighAlarm : 80.0C
TempHighWarning: 75.0C
TempLowAlarm : -5.0C
TempLowWarning : 0.0C
VccHighAlarm : 3.465Volts
VccHighWarning : 3.4Volts
VccLowAlarm : 3.1Volts
VccLowWarning : 3.15Volts
```

- Example (Decode and display information stored on the EEPROM of SFP transceiver connected to Ethernet16):
```
admin@sonic:~$ show interfaces transceiver info Ethernet16
Expand Down
10 changes: 8 additions & 2 deletions scripts/sfpshow
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,10 @@ CMIS_DOM_CHANNEL_MONITOR_MAP = {

DOM_MODULE_MONITOR_MAP = {
'temperature': 'Temperature',
'voltage': 'Vcc'
'voltage': 'Vcc',
'laser_curr_freq': 'Tx Frequency',
'laser_config_freq': 'Requested Laser Frequency',
'tx_config_power': 'Requested Tx Power'
}

DOM_CHANNEL_THRESHOLD_UNIT_MAP = {
Expand Down Expand Up @@ -184,7 +187,10 @@ DOM_VALUE_UNIT_MAP = {
'tx3power': 'dBm',
'tx4power': 'dBm',
'temperature': 'C',
'voltage': 'Volts'
'voltage': 'Volts',
'laser_curr_freq': 'GHz',
'laser_config_freq': 'GHz',
'tx_config_power': 'dBm'
}

QSFP_DD_DOM_VALUE_UNIT_MAP = {
Expand Down
6 changes: 5 additions & 1 deletion tests/mock_tables/state_db.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,11 @@
"tx5power": "1.175",
"tx6power": "1.175",
"tx7power": "1.175",
"tx8power": "1.175"
"tx8power": "1.175",
"laser_temperature": "47.7265625",
"laser_config_freq": "193100",
"laser_curr_freq": "193100.0",
"tx_config_power": "-8.5"
},
"TRANSCEIVER_DOM_THRESHOLD|Ethernet8": {
"rxpowerhighalarm": "6.9999",
Expand Down
3 changes: 3 additions & 0 deletions tests/sfp_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@
TxPowerLowAlarm : -10.5012dBm
TxPowerLowWarning : -7.5007dBm
ModuleMonitorValues:
Requested Laser Frequency: 193100GHz
Tx Frequency: 193100.0GHz
Temperature: 44.9883C
Requested Tx Power: -8.5dBm
Vcc: 3.2999Volts
ModuleThresholdValues:
TempHighAlarm : 80.0000C
Expand Down
Loading