代码仓
中
Transceivers
更新时间: 2026/11/04
在AtomGit上查看源码

ResourceDefinition ​

uris ​

  • /redfish/v1/Chassis/chassis_id/Transceivers/transceivers_id

properties ​

名称类型是否只读取值范围/枚举值说明
@odata.contextstringtrue-光模块资源模型的OData描述信息
@odata.idstringtrue-光模块资源的访问路径
@odata.typestringtrue-光模块资源的类型
Idstringtrue-光模块资源ID
Namestringtrue-光模块资源名称
Status {objecttrue-光模块的状态,包括:
● State:光模块使能状态
● Health:光模块健康状态
● Severity:光模块的自定义健康状态
Status.Healthstringtrue-光模块服务健康状态
Status.Oem {objecttrue-自定义属性
Status.Oem.Public {objecttrue-自定义属性
Status.Oem.Public.Severitystringfalse-光模块的自定义健康状态
}
}
Status.Statestringtrue-光模块的内存的在位状态
}
Location {objecttrue-光模块丝印
说明
openUBMC 26.03及以上版本支持。
Location.PartLocation {objecttrue-资源在封闭装置内的部件位置
说明
openUBMC 26.03及以上版本支持。
Location.PartLocation.ServiceLabelstringtrue-部件位置的标签
说明
openUBMC 26.03及以上版本支持。
Location.PartLocation.LocationTypestringtrue-部件位置的类型
说明
openUBMC 26.03及以上版本支持。
Location.PartLocation.LocationOrdinalValuenumbertrue-部件位置的序号
说明
openUBMC 26.03及以上版本支持。
}
Location.PartLocationContextstringtrue-部件位置上下文,用于区分同一外壳内不同零件的PartLocation值,其中可能包含该零件所包含的PartLocation值的层级信息
说明
openUBMC 26.03及以上版本支持。
}
RXFCSErrorsnumbertrue-接收到的Frame Check Sequence错误数量
Manufacturerstringtrue-光模块的厂商名称
PartNumberstringtrue-光模块的部件号
BomIdstringtrue默认为null光模块的BOM编码
RXPower [ {arraytrue-接收光功率信息列表
RXPower[].LowerThresholdCriticalnumbertrue-紧急告警下门限值
RXPower[].ReadingMilliWattsnumbertrue-接收光功率读数(毫瓦)
RXPower[].UpperThresholdCriticalnumbertrue-紧急告警上门限值
} ]
SerialNumberstringtrue-光模块的序列号
ProductionDatestringtrue-光模块的生产日期
TransceiverType[ ]arraytrue-光模块的收发器类型
PackagingTypestringtrue-光模块的封装类型,包括:
● GBIC:千兆接口转换器封装
● modulesolderedto motherboard:母板焊接式模块
● SFP:小型可插拔封装
● 300 pin XBI:300针 XBI 封装
● XENPAK:XENPAK封装
● XFP:10千兆小型可插拔封装
● XFF:XFF封装
● XFP-E:增强型XFP封装
● XPAK:XPAK封装
● X2:X2封装
● DWDM-SFP:密集波分复用 SFP封装
● QSFP:四通道四倍速率可插拔封装
● QSFP+:QSFP+封装
● CXP:CXP封装
● Shielded Mini Multilane HD 4X:屏蔽型高密度Mini Multilane 4X连接器
● Shielded Mini Multilane HD 8X:屏蔽型高密度Mini Multilane 8X连接器
● QSFP28:QSFP28封装
● CXP2/CXP28:CXP2/CXP28封装
● CDFP Style 1/Style 2:CDFP样式1/样式2封装
● Shielded Mini Multilane HD 4X Fanout Cable:屏蔽型高密度Mini Multilane 4X分支线缆/一分四线缆
● Shielded Mini Multilane HD 8X Fanout Cable:屏蔽型高密度Mini Multilane 8X分支线缆/一分八线缆
● CDFP Style 3:CDFP样式3封装
● microQSFP:微型QSFP封装
MediumModestringtrue-光模块的介质类型,包括:
● Monomode:单模
● Multimode:多模
TXPower [ {arraytrue-发送光功率信息列表
TXPower[].LowerThresholdCriticalnumbertrue-紧急告警下门限值
TXPower[].ReadingMilliWattsnumbertrue-发送光功率读数(毫瓦)
TXPower[].UpperThresholdCriticalnumbertrue-紧急告警上门限值
} ]
WaveLengthNanometernumbertrue-光模块的波长
SupportedDiagnosticService[ ]arraytrue-支持的诊断服务列表
SupportedSpeedsMbps[ ]arraytrue-光模块支持的速率
Voltage {objecttrue-电压信息
Voltage.LowerThresholdCriticalnumbertrue-紧急告警下门限值
Voltage.UpperThresholdCriticalnumbertrue-紧急告警上门限值
Voltage.ReadingVoltsnumbertrue-光模块电压的当前读数
说明:已屏蔽该属性值频繁变化导致的事件上报
}
Identifierstringtrue-光模块的识别码,包括
● UNDEF:未定义模块
● GBIC:GBIC协议模块
● SFP_SFP_PLUS_SFP28:千兆/万兆/25G SFP模块
● QSFP:四通道可插拔光模块
● QSFP_PLUS:40G QSFP+模块
● QSFP28:100G QSFP28模块
DeviceTypestringtrue-光模块的设备类型,包括
● Optical:光口
● Electric:电口
● Copper:铜缆
● Aoc:有源光缆
● Interface(背板类型)
● Baset(电卡口)
● Unknown:未知
ConnectorTypestringtrue-光模块的连接器类型,包括
● UNDEF(未定义)
● LC
● MPO
● OPTICAL_PIGTAIL(有源光缆)
● COPPER_PIGTAIL(铜缆)
● NO_SEPARABLE_CONNE CTOR(未分配)
RxLosStatebooleantrue-光模块Rx端是否收不到信号
TxFaultStatebooleantrue-光模块Tx端是否有故障
TransferDistancenumbertrue-传输距离
Temperature {objecttrue-光模块资源的温度(仅CPU资源具有)
说明
已屏蔽该属性值频繁变化导致的事件上报
Temperature.LowerThresholdCriticalnumbertrue-紧急告警下门限值
Temperature.UpperThresholdCriticalnumbertrue-紧急告警上门限值
Temperature.ReadingCelsiusnumbertrue-光模块温度的当前读数
说明:已屏蔽该属性值频繁变化导致的事件上报
}
TXBiasCurrent [ {arraytrue-发送偏置电流列表
TXBiasCurrent[].LowerThresholdCriticalnumbertrue-紧急告警下门限值
TXBiasCurrent[].UpperThresholdCriticalnumbertrue-紧急告警上门限值
TXBiasCurrent[].ReadingMilliAmperesnumbertrue-光模块偏置电流的当前读数
说明:已屏蔽该属性值频繁变化导致的事件上报
} ]
@odata.idstringtrue-光模块通道映射关系资源节点的访问路径
说明
仅openUBMC 25.12 LTS及以上版本支持
ContaminationDetectionstringtrue-光模块支持光链路脏污检测
FirmwareVersionstringtrue-指定扩展板卡的固件版本
说明:目前只有TaiShan200 IOB卡支持
PRBSTeststringtrue-光模块支持PRBSTest
LaneMappingsobjecttrue-光模块通道的映射关系

supported_methods ​

  • GET
  • POST

HTTP methods ​

GET ​

命令功能

查询网络端口上接的光模块资源信息

命令格式

URL: https://device_ip/redfish/v1/Chassis/chassis_id/Transceivers/transceivers_id

请求头:

text

X-Auth-Token: 123456789***********************

请求消息体: 无

参数说明

参数参数说明取值
device_ip登录设备的IP地址IPv4或IPv6地址
chassis_id机箱资源的ID● 针对机架服务器,取值为1
● 针对高密服务器,取值为 BladeN(N表示节点槽位号),例如“Blade1”
● 针对刀片服务器,取值可以为BladeN(N表示计算节点槽位号)或SwiN(N 表示交换模块槽位号),例如“Swi1”
● 针对X6800 V5,X6000 V5,G5500,XA320 V2服务器,取值还可以为Enc,表示计算节点所在的机框资源
● 针对设备U位信息,取值可以为UN(N表示设备U位号),例如"U1"
● 针对机柜资源,取值为 Rack
auth_value执行该GET请求时,必须在“Headers”中携带“X-Auth-Token”值用于鉴权可通过/redfish/v1/SessionService/Sessions创建会话时获得
networkadapters_id网络适配器资源的ID属性DeviceLocator和属性 Position合并而成
networkports_id网络端口资源的ID属性PhysicalPortNumber 值,一般从一开始

使用指南

无

使用实例

请求样例:

http
GET <https://device_ip/redfish/v1/Chassis/1/NetworkAdapters/mainboardPCIeCard4/NetworkPorts/1/OpticalModule>

请求头:

text

X-Auth-Token: 123456789***********************

请求消息体:无

响应样例:

json
{
"@odata.context": "/redfish/v1/$metadata#hwOpticalModule.hwOpticalModule",
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/mainboardPCIeCard5/NetworkPorts/1/OpticalModule",
"@odata.type": "#hwOpticalModul.v1_0_0.hwOpticalModule",
"Name": "OpticalModule",
"Id": "OpticalModule",
"Status": {
"Health": "Warning",
"Oem": {
"Public": {
"Severity": "Informational"
}
},
"State": "Enabled"
},
"Location": {
"PartLocation": {
"ServiceLabel": "PIC-8 ETH1",
"LocationType": "Connector",
"LocationOrdinalValue": 1
},
"PartLocationContext": "NPU BOX 2"
},
"RXFCSErrors": 123,
"Manufacturer": "",
"PartNumber": "LTF8502-BC+",
"BomId": "34xxxxxx",
"SerialNumber": "N3367109619",
"ProductionDate": "2016-07-26",
"TransceiverType": [
"10G Base-SR"
],
"PackagingType": "SFP/SFP+",
"MediumMode": "Multimode",
"WaveLengthNanometer": 850,
"SupportedSpeedsMbps": [
10000
],
"Voltage": {
"ReadingVolts": 2,
"LowerThresholdCritical": 2.97,
"UpperThresholdCritical": 3.63
},
"RXPower": [
{
"ReadingMilliWatts": 0,
"LowerThresholdCritical": 0.06,
"UpperThresholdCritical": 1.26
}
],
"TXPower": [
{
"ReadingMilliWatts": 0.57,
"LowerThresholdCritical": 0.12,
"UpperThresholdCritical": 1.26
}
],
"Identifier": "SFP_SFP_PLUS_SFP28",
"DeviceType": "Optical",
"ConnectorType": "LC",
"RxLosState": true,
"TxFaultState": false,
"TransferDistance": 40,
"Temperature": {
"ReadingCelsius": 45,
"LowerThresholdCritical": null,
"UpperThresholdCritical": null
},
"TXBiasCurrent": [
{
"ReadingMilliAmperes": 7504,
"LowerThresholdCritical": null,
"UpperThresholdCritical": null
}
],
"SupportedDiagnosticService": [
"PRBSTest",
"ContaminationDetection"
]
}

响应码:200

POST (ACTION) ​

ControlActiveIndicatorLED ​

命令功能

控制光模块 Active 指示灯状态

命令格式

URL: https://device_ip/redfish/v1/Chassis/Chassis_id/Transceivers/transceivers_id/Actions/Transceiver.ControlIndicatorLED

请求头:

text

X-Auth-Token: 123456789***********************
Content-Type: header_type

请求消息体:

json
{
"IndicatorLED": controltype
}

请求头参数说明

参见 请求头参数说明

请求体参数说明

参数参数说明取值
Chassis_id系统资源的ID● 针对机架服务器,取值为1
● 针对高密服务器,取值为BladeN(N表示节点槽位号),例如“Blade1”
● 针对刀片服务器,取值可以为BladeN(N表示计算节点槽位号)或 SwiN(N表示交换模块槽位号),例如“Swi1”
● 针对X6800 V5,X6000 V5,G5500,XA320 V2 服务器,取值还可以为 Enc,表示计算节点所在的机框资源
● 针对设备U位信息,取值可以为UN(N表示设备U 位号),例如"U1"
● 针对机柜资源,取值为 Rack
transceivers_id光模块资源的ID可通过查询光模块集合资源信息获取
controltype控制类型● ForceOff:强制灭灯
● Resume:恢复原状态

使用指南

无

使用实例

请求样例:

http
POST <https://device_ip/redfish/v1/Chassis/1/Transceivers/OpticalModule_EthernetAdapterBoardPort1/Actions/Transceiver.ControlIndicatorLED>

请求头:

text

X-Auth-Token: 123456789***********************
Content-Type: application/json

请求消息体: ● 设置强制灭灯:

json
{
"IndicatorLED": "ForceOff"
}

● 设置恢复原状态:

json
{
"IndicatorLED":"Resume"
}

响应样例:

json
{
"error": {
"code": "Base.1.0.GeneralError",
"message": "A general error has occurred. See ExtendedInfo for more information.",
"@Message.ExtendedInfo": [
{
"@odata.type": "#Message.v1_0_0.Message",
"MessageId": "Base.1.0.Success",
"RelatedProperties": [],
"Message": "Successfully Completed Request",
"MessageArgs": [],
"Severity": "OK",
"Resolution": "None"
}
]
}
}

响应码:200