光模块三段信息
光模块信息可以分三段读:基础信息(型号、波长、传输距离)、诊断信息(收发光功率、温度、电压)、厂商与序列号信息。华为与 H3C 的命令几乎逐字相同,思科则用 show interfaces transceiver 搭配不同子参数。
基本信息
| 适用平台 | 三厂设备 |
|---|---|
| 基础信息 | display transceiver interface 接口 |
| 诊断信息 | display transceiver diagnosis interface 接口 |
| 厂商信息 | display transceiver manuinfo interface 接口 |
| 思科命令 | show interfaces transceiver 及 detail、diagnosis 子参数 |
| 关注项 | 收发功率是否在模块规格范围内,以及温度与偏置电流 |
典型使用场景
- 链路不稳定,核对收发功率
- 报修与兼容性核查时读取厂商与序列号
- 排查模块温度异常与老化趋势
- 割接前核对模块型号与传输距离规格
- 定位单口异常时与同型号正常端口的数据对比
华为 VRP / H3C Comware
华为 VRP / H3C Comware
display transceiver interface GigabitEthernet0/0/1 # 型号、波长、传输距离
display transceiver diagnosis interface GigabitEthernet0/0/1 # 收发光、温度、电压
display transceiver manuinfo interface GigabitEthernet0/0/1 # 厂商与序列号
# H3C 命令逐字相同,接口名按实际填写思科 IOS
思科 IOS
show interfaces transceiver # 全部光模块概览
show interfaces transceiver detail # 详细参数与厂商信息
show interfaces transceiver diagnosis # 诊断值:收发光、温度等
show interfaces GigabitEthernet0/1 transceiver detail # 单口查看三厂命令对照
| 信息段 | 华为与 H3C 命令 | 思科命令 |
|---|---|---|
| 基础信息 | display transceiver interface | show interfaces transceiver |
| 诊断信息 | display transceiver diagnosis interface | show interfaces transceiver diagnosis |
| 厂商信息 | display transceiver manuinfo interface | show interfaces transceiver detail |
排查时优先看诊断值而不是型号:收光功率低于规格下限说明链路衰减过大,明显偏高则可能是收光过载,两者都会造成链路不稳定。与同型号正常端口的数据对比是最快的判断方式。
使用非原厂或兼容模块时,出现异常应先换原厂模块做对比再下结论。部分平台对第三方模块的识别与诊断支持有限,直接按读到的数值判断可能得出错误结论。
厂商与序列号信息在报修和兼容性核查时必查。建议在设备交付或扩容时就把模块清单与端口的对应关系记录下来,后续排查不必逐个现场读取。