| 备注 | 修改日期 | 修改人 |
| 创建版本 | 2025-03-14 13:22:57[当前版本] | 李永鑫 |
00000060
<span style=
"color: rgb(18,18,18);font-size: medium;"
>root@tong:~
# mlxcables
-E- No cables were found, run: mst cable add [--with_ib] to get connected cables
root@tong:~
#
root@tong:~
#
root@tong:~
#
root@tong:~
# mst cable add
Added 1 mellanox cable devices.
root@tong:~
# mlxcables
Querying Cables ....
Cable
#1:
---------
Cable name : mt4119_pciconf0_cable_0
>> No FW data to show
-------- Cable EEPROM --------
Identifier : QSFP+ (0dh)
Technology : 850 nm VCSEL (00h)
Compliance : 40G Active Cable (XLPPI), 100G AOC or 25GAUI C2M AOC. Providing a worst BER of 10^(-12) or below, EDR,FDR,QDR,DDR,SDR
Wavelength : 850 nm
OUI : 0x0002c9
Vendor : Mellanox
Serial number : MT2207DC02579
Part number : MFA1A00-E005
Revision : B2
Temperature [c] : 40 [-10..80]
Digital Diagnostic Monitoring : YES
Length [m] : 5 m
root@tong:~
# mlxcables -d
/usr/bin/mlxcables_ext: option requires an argument -- d
NAME
mlxcables
SYNOPSIS
mlxcables
[-d|--dev <DeviceName>] [-h|--help] [-v|--version] [-q|--query] [--DDM] [-r|--read]
[--print_raw] [--dump] [-b|--bytes_line <bytesPerLine>] [-p|--page <pageNum>]
[-o|--offset <pageOffset>] [-l|--length <length>] [-a|--address <address>]
[--read_reg <Register>] [--read_all_regs] [--show_all_regs]
[--customization <Customization>]
DESCRIPTION
Mellanox Cables Tool
OPTIONS
mlxcables
-d|--dev <DeviceName> : Perform operation
for
specified cable
-h|--help : Show
this
message and exit
-v|--version : Show the executable version and exit
-q|--query : Query cable info
--DDM : Get cable DDM query
-r|--read : Read from cable
--print_raw : Print bytes
in
raw format
--dump : Dump all cable pages
in
RAW format
-b|--bytes_line <bytesPerLine> : Bytes per line
in
the raw print (multiples of
4,
default
: 4)
-p|--page <pageNum> : Specific Page number to
do
the read/write
operation
-o|--offset <pageOffset> : Specific Page offset
-l|--length <length> : Length of the need data
in
bytes to read
(
default
: 1 Byte)
-a|--address <address> : Address (Replacement
for
page+offset)
--read_reg <Register> : Read register from cable
--read_all_regs : Read all registers from cable
--show_all_regs : Show all registers
in
the cable
--customization <Customization> : Show customization parameters
root@tong:~
# mlxcables -q
Querying Cables ....
Cable
#1:
---------
Cable name : mt4119_pciconf0_cable_0
>> No FW data to show
-------- Cable EEPROM --------
Identifier : QSFP+ (0dh)
Technology : 850 nm VCSEL (00h)
Compliance : 40G Active Cable (XLPPI), 100G AOC or 25GAUI C2M AOC. Providing a worst BER of 10^(-12) or below, EDR,FDR,QDR,DDR,SDR
Wavelength : 850 nm
OUI : 0x0002c9
Vendor : Mellanox
Serial number : MT2207DC02579
Part number : MFA1A00-E005
Revision : B2
Temperature [c] : 39 [-10..80]
Digital Diagnostic Monitoring : YES
Length [m] : 5 m
root@tong:~
# mlxcables -d mt4119_pciconf0_cable_0
Querying Cables ....
Cable
#1:
---------
Cable name : mt4119_pciconf0_cable_0
>> No FW data to show
-------- Cable EEPROM --------
Identifier : QSFP+ (0dh)
Technology : 850 nm VCSEL (00h)
Compliance : 40G Active Cable (XLPPI), 100G AOC or 25GAUI C2M AOC. Providing a worst BER of 10^(-12) or below, EDR,FDR,QDR,DDR,SDR
Wavelength : 850 nm
OUI : 0x0002c9
Vendor : Mellanox
Serial number : MT2207DC02579
Part number : MFA1A00-E005
Revision : B2
Temperature [c] : 39 [-10..80]
Digital Diagnostic Monitoring : YES
Length [m] : 5 m
root@tong:~
# mlxcables -d mt4119_pciconf0_cable_0 --dump
+----------------------------------------+
| Page: 0x00 , Offset: 000, Length: 0x80 |
+----------------------------------------+
000: 0d 07 02 00
004: 00 00 00 00
008: 00 00 00 00
012: 00 00 00 00
016: 00 00 00 00
020: 00 00 28 08
024: 00 00 80 b2
028: 00 00 00 00
032: 00 00 1e 2a
036: 1d 27 1c 57
040: 1e 5b 0c b4
044: 0c d4 0c d4
048: 0c d4 17 84
052: 18 ec 18 f0
056: 19 9d 00 00
060: 00 00 00 00
064: 00 00 00 00
068: 00 00 00 00
072: 00 00 00 00
076: 00 00 00 00
080: 00 00 00 00
084: 00 00 00 00
088: 00 00 00 00
092: 00 01 00 00
096: 00 00 ff 00
100: 00 00 00 00
104: 00 00 00 00
108: 00 04 08 00
112: 00 10 00 00
116: 00 00 00 00
120: 00 00 00 00
124: 00 00 00 00
+----------------------------------------+
| Page: 0x00 , Offset: 128, Length: 0x80 |
+----------------------------------------+
128: 0d 8c 23 81
132: 00 00 00 00
136: 00 00 00 05
140: ff 00 00 00
144: 00 00 05 00
148: 4d 65 6c 6c
152: 61 6e 6f 78
156: 20 20 20 20
160: 20 20 20 20
164: 1f 00 02 c9
168: 4d 46 41 31
172: 41 30 30 2d
176: 45 30 30 35
180: 20 20 20 20
184: 42 32 42 68
188: 0b b8 46 c4
192: 18 07 f5 9c
196: 4d 54 32 32
200: 30 37 44 43
204: 30 32 35 37
208: 39 20 20 20
212: 32 32 30 32
216: 30 39 20 20
220: 0c 00 67 ec
224: 01 00 36 34
228: 37 37 39 31
232: 2d 31 36 34
236: 39 39 31 36
240: 2d 31 00 00
244: 00 00 00 00
248: 00 00 01 00
252: 0e 00 00 00
+----------------------------------------+
| Page: 0x02 , Offset: 128, Length: 0x80 |
+----------------------------------------+
128: 00 00 00 00
132: 00 00 00 00
136: 00 00 00 00
140: 00 00 00 00
144: 00 00 00 00
148: 00 00 00 00
152: 00 00 00 00
156: 00 00 00 00
160: 00 00 00 00
164: 00 00 00 00
168: 00 00 00 00
172: 00 00 00 00
176: 00 00 00 00
180: 00 00 00 00
184: 00 00 00 00
188: 00 00 00 00
192: 00 00 00 00
196: 00 00 00 00
200: 00 00 00 00
204: 00 00 00 00
208: 00 00 00 00
212: 00 00 00 00
216: 00 00 00 00
220: 00 00 00 00
224: 00 00 00 00
228: 00 00 00 00
232: 00 00 00 00
236: 00 00 00 00
240: 00 00 00 00
244: 00 00 00 00
248: 00 00 00 00
252: 00 00 00 00
+----------------------------------------+
| Page: 0x03 , Offset: 128, Length: 0x80 |
+----------------------------------------+
128: 50 00 f6 00
132: 46 00 00 00
136: 00 00 00 00
140: 00 00 00 00
144: 88 b8 79 18
148: 87 5a 7a 76
152: 00 00 00 00
156: 00 00 00 00
160: 00 00 00 00
164: 00 00 00 00
168: 00 00 18 00
172: 00 6a 77 b4
176: 87 71 01 d3
180: 43 e2 03 a5
184: 0e a6 0a be
188: 0d ac 0b b8
192: 87 71 02 d4
196: 43 e2 05 a5
200: 00 00 00 00
204: 00 00 00 00
208: 00 00 00 00
212: 00 00 00 00
216: 00 00 00 00
220: 00 00 00 00
224: a7 03 00 00
228: 00 00 00 00
232: 00 00 00 00
236: 44 44 22 22
240: 00 00 00 00
244: 00 00 00 00
248: 00 00 00 00
252: 00 00 00 00
root@tong:~
#
root@tong:~
# mlxcables -d mt4119_pciconf0_cable_0 --dump --read_all_regs
-E- Please choose exactly one operation
root@tong:~
# mlxcables -d mt4119_pciconf0_cable_0 --ddm
/usr/bin/mlxcables_ext: unrecognized option `--ddm'
NAME
mlxcables
SYNOPSIS
mlxcables
[-d|--dev <DeviceName>] [-h|--help] [-v|--version] [-q|--query] [--DDM] [-r|--read]
[--print_raw] [--dump] [-b|--bytes_line <bytesPerLine>] [-p|--page <pageNum>]
[-o|--offset <pageOffset>] [-l|--length <length>] [-a|--address <address>]
[--read_reg <Register>] [--read_all_regs] [--show_all_regs]
[--customization <Customization>]
DESCRIPTION
Mellanox Cables Tool
OPTIONS
mlxcables
-d|--dev <DeviceName> : Perform operation
for
specified cable
-h|--help : Show
this
message and exit
-v|--version : Show the executable version and exit
-q|--query : Query cable info
--DDM : Get cable DDM query
-r|--read : Read from cable
--print_raw : Print bytes
in
raw format
--dump : Dump all cable pages
in
RAW format
-b|--bytes_line <bytesPerLine> : Bytes per line
in
the raw print (multiples of
4,
default
: 4)
-p|--page <pageNum> : Specific Page number to
do
the read/write
operation
-o|--offset <pageOffset> : Specific Page offset
-l|--length <length> : Length of the need data
in
bytes to read
(
default
: 1 Byte)
-a|--address <address> : Address (Replacement
for
page+offset)
--read_reg <Register> : Read register from cable
--read_all_regs : Read all registers from cable
--show_all_regs : Show all registers
in
the cable
--customization <Customization> : Show customization parameters
root@tong:~
# mlxcables -d mt4119_pciconf0_cable_0 --DDM
Cable DDM:
----------
Temperature : 40C
Voltage : 3.2871V
Channel 1:
RX Power : -1.1810dBm
TX Power : -2.2084dBm
TX Bias : 6.5040mA
Channel 2:
RX Power : -1.2355dBm
TX Power : -1.9572dBm
TX Bias : 6.5680mA
Channel 3:
RX Power : -1.4020dBm
TX Power : -1.9545dBm
TX Bias : 6.5680mA
Channel 4:
RX Power : -1.0930dBm
TX Power : -1.8376dBm
TX Bias : 6.5680mA
----- Flags -----
Temperature:
Alarm high : 0
Warning high : 0
Warning low : 0
Alarm low : 0
Voltage:
Alarm high : 0
Warning high : 0
Warning low : 0
Alarm low : 0
Channel 1:
RX Power alarm high : 0
RX Power warning high: 0
RX Power warning low : 0
RX Power alarm low : 0
TX Power alarm high : 0
TX Power warning high: 0
TX Power warning low : 0
TX Power alarm low : 0
TX Bias alarm high : 0
TX Bias warning high : 0
TX Bias warning low : 0
TX Bias alarm low : 0
Channel 2:
RX Power alarm high : 0
RX Power warning high: 0
RX Power warning low : 0
RX Power alarm low : 0
TX Power alarm high : 0
TX Power warning high: 0
TX Power warning low : 0
TX Power alarm low : 0
TX Bias alarm high : 0
TX Bias warning high : 0
TX Bias warning low : 0
TX Bias alarm low : 0
Channel 3:
RX Power alarm high : 0
RX Power warning high: 0
RX Power warning low : 0
RX Power alarm low : 0
TX Power alarm high : 0
TX Power warning high: 0
TX Power warning low : 0
TX Power alarm low : 0
TX Bias alarm high : 0
TX Bias warning high : 0
TX Bias warning low : 0
TX Bias alarm low : 0
Channel 4:
RX Power alarm high : 0
RX Power warning high: 0
RX Power warning low : 0
RX Power alarm low : 0
TX Power alarm high : 0
TX Power warning high: 0
TX Power warning low : 0
TX Power alarm low : 0
TX Bias alarm high : 0
TX Bias warning high : 0
TX Bias warning low : 0
TX Bias alarm low : 0
----- Thresholds -----
Temperature high alarm threshold : 80C
Temperature high warning threshold : 70C
Temperature low warning threshold : 0C
Temperature low alarm threshold : -10C
Voltage high alarm threshold : 3.5000V
Voltage high warning threshold: 3.4650V
Voltage low warning threshold: 3.1350V
Voltage low alarm threshold: 3.1000V
RX Power high alarm threshold : 5.3999dBm
RX Power high warn threshold : 2.4000dBm
RX Power low warn threshold : -10.3012dBm
RX Power low alarm threshold : -13.3068dBm
TX Power high alarm threshold : 5.3999dBm
TX Power high warn threshold : 2.4000dBm
TX Power low warn threshold : -8.4013dBm
TX Power low alarm threshold : -11.4026dBm
TX Bias high alarm threshold : 7.5000mA
TX Bias high warn threshold : 7.0000mA
TX Bias low warn threshold : 6.0000mA
TX Bias low alarm threshold : 5.5000mA
root@tong:~
#</span>
|