// 此模板仅供参考,如果不适用可以修改
问题描述
社区已经支持E810网卡的光模块温度获取,实测发现温度获取不到,如何排查
-- 光模块温度
OpticalTemp = {
protocol = 'ncsi_standard',
action = 'on_schedule',
period_in_sec = 2,
request = {
packet_type = 0x50,
expect_rsp_packet_type = 0xD0,
data = '\x00\x00\x01\x57\x4B\x02'
},
response = function(data)
local r = bs.new([[<<
rsp_code:16,
reason_code:16,
manu_id:32,
intel_cmd:8,
intel_prams:8,
reserved:16,
alarm_temp:16,
warning_temp:16,
current_temp:16/big
>>]]):unpack(data, true)
if r and r.current_temp then
r.current_temp = math.floor(r.current_temp / 256)
end
return r.current_temp
end
}
~ ~ # mdbctl lsprop OpticalModule_0_0101010105
bmc.kepler.Inventory.Hardware
AssetName=""
AssetTag=""
AssetType=""
FirmwareVersion=""
ManufactureDate=""
Manufacturer=""
Model=""
PCBVersion=""
PartNumber=""
SerialNumber=""
Slot=""
UUID=""
bmc.kepler.Object.Properties
ClassName="OpticalModule"
ObjectIdentifier=[1,"1","1","0101010105"]
ObjectName="OpticalModule_0_0101010105"
TraceSamplingRate=0
bmc.kepler.Systems.OpticalModule
Accessible=0
ChannelNum=0
ConnectorType=""
FaultState=0
FiberConnectionType=""
Health=0
HostSNR=[]
Id=255
Identifier=""
IsSupportedType=0
Manufacturer=""
MediaSNR=[]
MediumType=""
ModuleState=255
Name=""
PartNumber=""
PowerState=0
Presence=0
ProductionDate=""
RelatedNetworkPorts=[]
RevisionNumber=""
RxLossState=false
RxSNR=[]
SerialNumber=""
SilkText=""
SpeedMatch=true
SupportedSpeedsMbps=[]
TemperatureCelsius=65535
TransceiverType=""
TransmissionDistance=""
TxFaultState=false
TxLossState=false
Type=""
TypeMatch=true
WaveLengthNanometer=""
bmc.kepler.Systems.OpticalModule.BiasCurrent
BiasCurrentTXLowerThresholdWarning=65535
BiasCurrentTXUpperThresholdWarning=65535
TXBiasCurrent1MilliAmps=0
TXBiasCurrent2MilliAmps=0
TXBiasCurrent3MilliAmps=0
TXBiasCurrent4MilliAmps=0
TXBiasCurrent5MilliAmps=0
TXBiasCurrent6MilliAmps=0
TXBiasCurrent7MilliAmps=0
TXBiasCurrent8MilliAmps=0
TXBiasCurrentMilliAmps=[]
TXBiasCurrentStatus=0
TXLowerThresholdCritical=65535
TXUpperThresholdCritical=65535
bmc.kepler.Systems.OpticalModule.Diagnose
ContaminationDetectionSupported=false
FiberDirtyDetected=false
FiberLoosenessDetected=false
HostInterfaceFaultStatus=0
LaserRuntimeSeconds=0
LaserTemperatureCelsius=0
MediaInterfaceFaultStatus=0
OdspDieTemperatureCelsius=0
OdspHighTempRuntimeSeconds=0
PRBSTestSupported=false
PowerOnCount=0
PowerStatus=0
RxLoS=0
RxLossOfLock=0
SelfTestStatus=0
TxFault=0
TxLoS=0
TxLossOfLock=0
UptimeSeconds=0
bmc.kepler.Systems.OpticalModule.Power
PowerCapacityWatts=0
PowerClass=255
PowerRXLowerThresholdWarning=65535
PowerRXUpperThresholdWarning=65535
PowerTXLowerThresholdWarning=65535
PowerTXUpperThresholdWarning=65535
RXInputPowerMilliWatts=[]
RXInputPowerStatus=0
RXLowerThresholdCritical=65535
RXUpperThresholdCritical=65535
TXLowerThresholdCritical=65535
TXOutputPowerMilliWatts=[]
TXOutputPowerStatus=0
TXUpperThresholdCritical=65535
bmc.kepler.Systems.OpticalModule.RelatedItems
NetworkPortLanes=[]
bmc.kepler.Systems.OpticalModule.Temperature
LowerThresholdCritical=65535
ReadingCelsius=65535
TemperatureLowerThresholdCritical=65535
TemperatureLowerThresholdWarning=65535
TemperatureUpperThresholdCritical=65535
TemperatureUpperThresholdWarning=65535
UpperThresholdCritical=125
bmc.kepler.Systems.OpticalModule.Voltage
LowerThresholdCritical=65535
SupplyVoltage=65535
UpperThresholdCritical=65535
VoltageLowerThresholdCritical=65535
VoltageLowerThresholdWarning=65535
VoltageUpperThresholdCritical=65535
VoltageUpperThresholdWarning=65535
Private
CreatedByDeviceObject=false
LogicalId=255
NetworkAdapterId="PCIeCard5(E810CQDA2G2P5)"
PfID=255
PortID=0
~ ~ # mdbctl lsprop OpticalModule_1_0101010105
bmc.kepler.Inventory.Hardware
AssetName=""
AssetTag=""
AssetType=""
FirmwareVersion=""
ManufactureDate=""
Manufacturer=""
Model=""
PCBVersion=""
PartNumber=""
SerialNumber=""
Slot=""
UUID=""
bmc.kepler.Object.Properties
ClassName="OpticalModule"
ObjectIdentifier=[1,"1","1","0101010105"]
ObjectName="OpticalModule_1_0101010105"
TraceSamplingRate=0
bmc.kepler.Systems.OpticalModule
Accessible=0
ChannelNum=0
ConnectorType=""
FaultState=0
FiberConnectionType=""
Health=0
HostSNR=[]
Id=255
Identifier=""
IsSupportedType=0
Manufacturer=""
MediaSNR=[]
MediumType=""
ModuleState=255
Name=""
PartNumber=""
PowerState=0
Presence=0
ProductionDate=""
RelatedNetworkPorts=[]
RevisionNumber=""
RxLossState=false
RxSNR=[]
SerialNumber=""
SilkText=""
SpeedMatch=true
SupportedSpeedsMbps=[]
TemperatureCelsius=65535
TransceiverType=""
TransmissionDistance=""
TxFaultState=false
TxLossState=false
Type=""
TypeMatch=true
WaveLengthNanometer=""
bmc.kepler.Systems.OpticalModule.BiasCurrent
BiasCurrentTXLowerThresholdWarning=65535
BiasCurrentTXUpperThresholdWarning=65535
TXBiasCurrent1MilliAmps=0
TXBiasCurrent2MilliAmps=0
TXBiasCurrent3MilliAmps=0
TXBiasCurrent4MilliAmps=0
TXBiasCurrent5MilliAmps=0
TXBiasCurrent6MilliAmps=0
TXBiasCurrent7MilliAmps=0
TXBiasCurrent8MilliAmps=0
TXBiasCurrentMilliAmps=[]
TXBiasCurrentStatus=0
TXLowerThresholdCritical=65535
TXUpperThresholdCritical=65535
bmc.kepler.Systems.OpticalModule.Diagnose
ContaminationDetectionSupported=false
FiberDirtyDetected=false
FiberLoosenessDetected=false
HostInterfaceFaultStatus=0
LaserRuntimeSeconds=0
LaserTemperatureCelsius=0
MediaInterfaceFaultStatus=0
OdspDieTemperatureCelsius=0
OdspHighTempRuntimeSeconds=0
PRBSTestSupported=false
PowerOnCount=0
PowerStatus=0
RxLoS=0
RxLossOfLock=0
SelfTestStatus=0
TxFault=0
TxLoS=0
TxLossOfLock=0
UptimeSeconds=0
bmc.kepler.Systems.OpticalModule.Power
PowerCapacityWatts=0
PowerClass=255
PowerRXLowerThresholdWarning=65535
PowerRXUpperThresholdWarning=65535
PowerTXLowerThresholdWarning=65535
PowerTXUpperThresholdWarning=65535
RXInputPowerMilliWatts=[]
RXInputPowerStatus=0
RXLowerThresholdCritical=65535
RXUpperThresholdCritical=65535
TXLowerThresholdCritical=65535
TXOutputPowerMilliWatts=[]
TXOutputPowerStatus=0
TXUpperThresholdCritical=65535
bmc.kepler.Systems.OpticalModule.RelatedItems
NetworkPortLanes=[]
bmc.kepler.Systems.OpticalModule.Temperature
LowerThresholdCritical=65535
ReadingCelsius=65535
TemperatureLowerThresholdCritical=65535
TemperatureLowerThresholdWarning=65535
TemperatureUpperThresholdCritical=65535
TemperatureUpperThresholdWarning=65535
UpperThresholdCritical=125
bmc.kepler.Systems.OpticalModule.Voltage
LowerThresholdCritical=65535
SupplyVoltage=65535
UpperThresholdCritical=65535
VoltageLowerThresholdCritical=65535
VoltageLowerThresholdWarning=65535
VoltageUpperThresholdCritical=65535
VoltageUpperThresholdWarning=65535
Private
CreatedByDeviceObject=false
LogicalId=255
NetworkAdapterId="PCIeCard5(E810CQDA2G2P5)"
PfID=255
PortID=1
环境信息
- 软件版本:OpenUBMC2512SP1