问题描述
在定制化仓中定制化内存CSR,添加ThresholdSensor_Mem1Temp内存温度传感器后,CSR中原来的内存离散传感器在环境上以及web上都丢失了
"FormatVersion": "3.00",
"DataVersion": "3.00",
"Objects": {
"ThresholdSensor_Mem1Temp": {
"EntityId": "<=/Entity_DIMM000.Id",
"EntityInstance": "<=/Entity_DIMM000.Instance",
"Initialization": 127,
"Capabilities": 232,
"SensorType": 1,
"ReadingType": 1,
"SensorName": "DIMM000_Temp",
"Unit": 128,
"BaseUnit": 1,
"NominalReading": 30,
"MaximumReading": 127,
"MinimumReading": 128,
"Reading": "<=/Memory_1.TemperatureCelsius |> expr($1 > 255 ? 128 : $1)",
"ReadingStatus": "<=/::FruCtrl_1_0.PowerState ; <=/Memory_1.TemperatureCelsius |> string.cmp($1, 'ON') |> expr($1 ? 1 : 0) |> expr(($1 == 0) ? 2 : ($2 > 255 ? 2 : 0))",
"SensorNumber": 255,
"AssertMask": 128,
"DeassertMask": 28800,
"ReadingMask": 2056,
"UpperNoncritical": 95,
"PositiveHysteresis": 2,
"NegativeHysteresis": 2,
"M": 1,
"IsValid": "<=/Memory_1.Presence |> expr($1 == 1 ? true : false)"
},
环境信息
- BMC基线版本:2512
重现步骤
- [第一步]
在定制化仓中新增memory_2p24ch24_0_cust.sr文件,文件中新增ThreshouldSensor对象
{
“FormatVersion”: “3.00”,
“DataVersion”: “3.00”,
“Objects”: {
“ThresholdSensor_Mem1Temp”: {
“EntityId”: “<=/Entity_DIMM000.Id”,
“EntityInstance”: “<=/Entity_DIMM000.Instance”,
“Initialization”: 127,
“Capabilities”: 232,
“SensorType”: 1,
“ReadingType”: 1,
“SensorName”: “DIMM000_Temp”,
“Unit”: 128,
“BaseUnit”: 1,
“NominalReading”: 30,
“MaximumReading”: 127,
“MinimumReading”: 128,
“Reading”: “<=/Memory_1.TemperatureCelsius |> expr($1 > 255 ? 128 : $1)”,
“ReadingStatus”: “<=/::FruCtrl_1_0.PowerState ; <=/Memory_1.TemperatureCelsius |> string.cmp($1, ‘ON’) |> expr($1 ? 1 : 0) |> expr(($1 == 0) ? 2 : ($2 > 255 ? 2 : 0))”,
“SensorNumber”: 255,
“AssertMask”: 128,
“DeassertMask”: 28800,
“ReadingMask”: 2056,
“UpperNoncritical”: 95,
“PositiveHysteresis”: 2,
“NegativeHysteresis”: 2,
“M”: 1,
“IsValid”: “<=/Memory_1.Presence |> expr($1 == 1 ? true : false)”
},
“ThresholdSensor_Mem2Temp”: {
“EntityId”: “<=/Entity_DIMM010.Id”,
“EntityInstance”: “<=/Entity_DIMM010.Instance”,
“Initialization”: 127,
“Capabilities”: 232,
“SensorType”: 1,
“ReadingType”: 1,
“SensorName”: “DIMM010_Temp”,
“Unit”: 128,
“BaseUnit”: 1,
“NominalReading”: 30,
“MaximumReading”: 127,
“MinimumReading”: 128,
“Reading”: “<=/Memory_2.TemperatureCelsius |> expr($1 > 255 ? 128 : $1)”,
“ReadingStatus”: “<=/::FruCtrl_1_0.PowerState ; <=/Memory_2.TemperatureCelsius |> string.cmp($1, ‘ON’) |> expr($1 ? 1 : 0) |> expr(($1 == 0) ? 2 : ($2 > 255 ? 2 : 0))”,
“SensorNumber”: 255,
“AssertMask”: 128,
“DeassertMask”: 28800,
“ReadingMask”: 2056,
“UpperNoncritical”: 95,
“PositiveHysteresis”: 2,
“NegativeHysteresis”: 2,
“M”: 1,
“IsValid”: “<=/Memory_2.Presence |> expr($1 == 1 ? true : false)”
},
“ThresholdSensor_Mem3Temp”: {
“EntityId”: “<=/Entity_DIMM020.Id”,
“EntityInstance”: “<=/Entity_DIMM020.Instance”,
“Initialization”: 127,
“Capabilities”: 232,
“SensorType”: 1,
“ReadingType”: 1,
“SensorName”: “DIMM020_Temp”,
“Unit”: 128,
“BaseUnit”: 1,
“NominalReading”: 30,
“MaximumReading”: 127,
“MinimumReading”: 128,
“Reading”: “<=/Memory_3.TemperatureCelsius |> expr($1 > 255 ? 128 : $1)”,
“ReadingStatus”: “<=/::FruCtrl_1_0.PowerState ; <=/Memory_3.TemperatureCelsius |> string.cmp($1, ‘ON’) |> expr($1 ? 1 : 0) |> expr(($1 == 0) ? 2 : ($2 > 255 ? 2 : 0))”,
“SensorNumber”: 255,
“AssertMask”: 128,
“DeassertMask”: 28800,
“ReadingMask”: 2056,
“UpperNoncritical”: 95,
“PositiveHysteresis”: 2,
“NegativeHysteresis”: 2,
“M”: 1,
“IsValid”: “<=/Memory_3.Presence |> expr($1 == 1 ? true : false)”
},
“ThresholdSensor_Mem4Temp”: {
“EntityId”: “<=/Entity_DIMM030.Id”,
“EntityInstance”: “<=/Entity_DIMM030.Instance”,
“Initialization”: 127,
“Capabilities”: 232,
“SensorType”: 1,
“ReadingType”: 1,
“SensorName”: “DIMM030_Temp”,
“Unit”: 128,
“BaseUnit”: 1,
“NominalReading”: 30,
“MaximumReading”: 127,
“MinimumReading”: 128,
“Reading”: “<=/Memory_4.TemperatureCelsius |> expr($1 > 255 ? 128 : $1)”,
“ReadingStatus”: “<=/::FruCtrl_1_0.PowerState ; <=/Memory_4.TemperatureCelsius |> string.cmp($1, ‘ON’) |> expr($1 ? 1 : 0) |> expr(($1 == 0) ? 2 : ($2 > 255 ? 2 : 0))”,
“SensorNumber”: 255,
“AssertMask”: 128,
“DeassertMask”: 28800,
“ReadingMask”: 2056,
“UpperNoncritical”: 95,
“PositiveHysteresis”: 2,
“NegativeHysteresis”: 2,
“M”: 1,
“IsValid”: “<=/Memory_4.Presence |> expr($1 == 1 ? true : false)”
},
“ThresholdSensor_Mem5Temp”: {
“EntityId”: “<=/Entity_DIMM040.Id”,
“EntityInstance”: “<=/Entity_DIMM040.Instance”,
“Initialization”: 127,
“Capabilities”: 232,
“SensorType”: 1,
“ReadingType”: 1,
“SensorName”: “DIMM040_Temp”,
“Unit”: 128,
“BaseUnit”: 1,
“NominalReading”: 30,
“MaximumReading”: 127,
“MinimumReading”: 128,
“Reading”: “<=/Memory_5.TemperatureCelsius |> expr($1 > 255 ? 128 : $1)”,
“ReadingStatus”: “<=/::FruCtrl_1_0.PowerState ; <=/Memory_5.TemperatureCelsius |> string.cmp($1, ‘ON’) |> expr($1 ? 1 : 0) |> expr(($1 == 0) ? 2 : ($2 > 255 ? 2 : 0))”,
“SensorNumber”: 255,
“AssertMask”: 128,
“DeassertMask”: 28800,
“ReadingMask”: 2056,
“UpperNoncritical”: 95,
“PositiveHysteresis”: 2,
“NegativeHysteresis”: 2,
“M”: 1,
“IsValid”: “<=/Memory_5.Presence |> expr($1 == 1 ? true : false)”
},
“ThresholdSensor_Mem6Temp”: {
“EntityId”: “<=/Entity_DIMM050.Id”,
“EntityInstance”: “<=/Entity_DIMM050.Instance”,
“Initialization”: 127,
“Capabilities”: 232,
“SensorType”: 1,
“ReadingType”: 1,
“SensorName”: “DIMM050_Temp”,
“Unit”: 128,
“BaseUnit”: 1,
“NominalReading”: 30,
“MaximumReading”: 127,
“MinimumReading”: 128,
“Reading”: “<=/Memory_6.TemperatureCelsius |> expr($1 > 255 ? 128 : $1)”,
“ReadingStatus”: “<=/::FruCtrl_1_0.PowerState ; <=/Memory_6.TemperatureCelsius |> string.cmp($1, ‘ON’) |> expr($1 ? 1 : 0) |> expr(($1 == 0) ? 2 : ($2 > 255 ? 2 : 0))”,
“SensorNumber”: 255,
“AssertMask”: 128,
“DeassertMask”: 28800,
“ReadingMask”: 2056,
“UpperNoncritical”: 95,
“PositiveHysteresis”: 2,
“NegativeHysteresis”: 2,
“M”: 1,
“IsValid”: “<=/Memory_6.Presence |> expr($1 == 1 ? true : false)”
},
“ThresholdSensor_Mem7Temp”: {
“EntityId”: “<=/Entity_DIMM060.Id”,
“EntityInstance”: “<=/Entity_DIMM060.Instance”,
“Initialization”: 127,
“Capabilities”: 232,
“SensorType”: 1,
“ReadingType”: 1,
“SensorName”: “DIMM060_Temp”,
“Unit”: 128,
“BaseUnit”: 1,
“NominalReading”: 30,
“MaximumReading”: 127,
“MinimumReading”: 128,
“Reading”: “<=/Memory_7.TemperatureCelsius |> expr($1 > 255 ? 128 : $1)”,
“ReadingStatus”: “<=/::FruCtrl_1_0.PowerState ; <=/Memory_7.TemperatureCelsius |> string.cmp($1, ‘ON’) |> expr($1 ? 1 : 0) |> expr(($1 == 0) ? 2 : ($2 > 255 ? 2 : 0))”,
“SensorNumber”: 255,
“AssertMask”: 128,
“DeassertMask”: 28800,
“ReadingMask”: 2056,
“UpperNoncritical”: 95,
“PositiveHysteresis”: 2,
“NegativeHysteresis”: 2,
“M”: 1,
“IsValid”: “<=/Memory_7.Presence |> expr($1 == 1 ? true : false)”
},
“ThresholdSensor_Mem8Temp”: {
“EntityId”: “<=/Entity_DIMM070.Id”,
“EntityInstance”: “<=/Entity_DIMM070.Instance”,
“Initialization”: 127,
“Capabilities”: 232,
“SensorType”: 1,
“ReadingType”: 1,
“SensorName”: “DIMM070_Temp”,
“Unit”: 128,
“BaseUnit”: 1,
“NominalReading”: 30,
“MaximumReading”: 127,
“MinimumReading”: 128,
“Reading”: “<=/Memory_8.TemperatureCelsius |> expr($1 > 255 ? 128 : $1)”,
“ReadingStatus”: “<=/::FruCtrl_1_0.PowerState ; <=/Memory_8.TemperatureCelsius |> string.cmp($1, ‘ON’) |> expr($1 ? 1 : 0) |> expr(($1 == 0) ? 2 : ($2 > 255 ? 2 : 0))”,
“SensorNumber”: 255,
“AssertMask”: 128,
“DeassertMask”: 28800,
“ReadingMask”: 2056,
“UpperNoncritical”: 95,
“PositiveHysteresis”: 2,
“NegativeHysteresis”: 2,
“M”: 1,
“IsValid”: “<=/Memory_8.Presence |> expr($1 == 1 ? true : false)”
},
“ThresholdSensor_Mem9Temp”: {
“EntityId”: “<=/Entity_DIMM080.Id”,
“EntityInstance”: “<=/Entity_DIMM080.Instance”,
“Initialization”: 127,
“Capabilities”: 232,
“SensorType”: 1,
“ReadingType”: 1,
“SensorName”: “DIMM080_Temp”,
“Unit”: 128,
“BaseUnit”: 1,
“NominalReading”: 30,
“MaximumReading”: 127,
“MinimumReading”: 128,
“Reading”: “<=/Memory_9.TemperatureCelsius |> expr($1 > 255 ? 128 : $1)”,
“ReadingStatus”: “<=/::FruCtrl_1_0.PowerState ; <=/Memory_9.TemperatureCelsius |> string.cmp($1, ‘ON’) |> expr($1 ? 1 : 0) |> expr(($1 == 0) ? 2 : ($2 > 255 ? 2 : 0))”,
“SensorNumber”: 255,
“AssertMask”: 128,
“DeassertMask”: 28800,
“ReadingMask”: 2056,
“UpperNoncritical”: 95,
“PositiveHysteresis”: 2,
“NegativeHysteresis”: 2,
“M”: 1,
“IsValid”: “<=/Memory_9.Presence |> expr($1 == 1 ? true : false)”
},
“ThresholdSensor_Mem10Temp”: {
“EntityId”: “<=/Entity_DIMM090.Id”,
“EntityInstance”: “<=/Entity_DIMM090.Instance”,
“Initialization”: 127,
“Capabilities”: 232,
“SensorType”: 1,
“ReadingType”: 1,
“SensorName”: “DIMM090_Temp”,
“Unit”: 128,
“BaseUnit”: 1,
“NominalReading”: 30,
“MaximumReading”: 127,
“MinimumReading”: 128,
“Reading”: “<=/Memory_10.TemperatureCelsius |> expr($1 > 255 ? 128 : $1)”,
“ReadingStatus”: “<=/::FruCtrl_1_0.PowerState ; <=/Memory_10.TemperatureCelsius |> string.cmp($1, ‘ON’) |> expr($1 ? 1 : 0) |> expr(($1 == 0) ? 2 : ($2 > 255 ? 2 : 0))”,
“SensorNumber”: 255,
“AssertMask”: 128,
“DeassertMask”: 28800,
“ReadingMask”: 2056,
“UpperNoncritical”: 95,
“PositiveHysteresis”: 2,
“NegativeHysteresis”: 2,
“M”: 1,
“IsValid”: “<=/Memory_10.Presence |> expr($1 == 1 ? true : false)”
},
“ThresholdSensor_Mem11Temp”: {
“EntityId”: “<=/Entity_DIMM0A0.Id”,
“EntityInstance”: “<=/Entity_DIMM0A0.Instance”,
“Initialization”: 127,
“Capabilities”: 232,
“SensorType”: 1,
“ReadingType”: 1,
“SensorName”: “DIMM0A0_Temp”,
“Unit”: 128,
“BaseUnit”: 1,
“NominalReading”: 30,
“MaximumReading”: 127,
“MinimumReading”: 128,
“Reading”: “<=/Memory_11.TemperatureCelsius |> expr($1 > 255 ? 128 : $1)”,
“ReadingStatus”: “<=/::FruCtrl_1_0.PowerState ; <=/Memory_11.TemperatureCelsius |> string.cmp($1, ‘ON’) |> expr($1 ? 1 : 0) |> expr(($1 == 0) ? 2 : ($2 > 255 ? 2 : 0))”,
“SensorNumber”: 255,
“AssertMask”: 128,
“DeassertMask”: 28800,
“ReadingMask”: 2056,
“UpperNoncritical”: 95,
“PositiveHysteresis”: 2,
“NegativeHysteresis”: 2,
“M”: 1,
“IsValid”: “<=/Memory_11.Presence |> expr($1 == 1 ? true : false)”
},
“ThresholdSensor_Mem12Temp”: {
“EntityId”: “<=/Entity_DIMM0B0.Id”,
“EntityInstance”: “<=/Entity_DIMM0B0.Instance”,
“Initialization”: 127,
“Capabilities”: 232,
“SensorType”: 1,
“ReadingType”: 1,
“SensorName”: “DIMM0B0_Temp”,
“Unit”: 128,
“BaseUnit”: 1,
“NominalReading”: 30,
“MaximumReading”: 127,
“MinimumReading”: 128,
“Reading”: “<=/Memory_12.TemperatureCelsius |> expr($1 > 255 ? 128 : $1)”,
“ReadingStatus”: “<=/::FruCtrl_1_0.PowerState ; <=/Memory_12.TemperatureCelsius |> string.cmp($1, ‘ON’) |> expr($1 ? 1 : 0) |> expr(($1 == 0) ? 2 : ($2 > 255 ? 2 : 0))”,
“SensorNumber”: 255,
“AssertMask”: 128,
“DeassertMask”: 28800,
“ReadingMask”: 2056,
“UpperNoncritical”: 95,
“PositiveHysteresis”: 2,
“NegativeHysteresis”: 2,
“M”: 1,
“IsValid”: “<=/Memory_12.Presence |> expr($1 == 1 ? true : false)”
},
“ThresholdSensor_Mem13Temp”: {
“EntityId”: “<=/Entity_DIMM100.Id”,
“EntityInstance”: “<=/Entity_DIMM100.Instance”,
“Initialization”: 127,
“Capabilities”: 232,
“SensorType”: 1,
“ReadingType”: 1,
“SensorName”: “DIMM100_Temp”,
“Unit”: 128,
“BaseUnit”: 1,
“NominalReading”: 30,
“MaximumReading”: 127,
“MinimumReading”: 128,
“Reading”: “<=/Memory_13.TemperatureCelsius |> expr($1 > 255 ? 128 : $1)”,
“ReadingStatus”: “<=/::FruCtrl_1_0.PowerState ; <=/Memory_13.TemperatureCelsius |> string.cmp($1, ‘ON’) |> expr($1 ? 1 : 0) |> expr(($1 == 0) ? 2 : ($2 > 255 ? 2 : 0))”,
“SensorNumber”: 255,
“AssertMask”: 128,
“DeassertMask”: 28800,
“ReadingMask”: 2056,
“UpperNoncritical”: 95,
“PositiveHysteresis”: 2,
“NegativeHysteresis”: 2,
“M”: 1,
“IsValid”: “<=/Memory_13.Presence |> expr($1 == 1 ? true : false)”
},
“ThresholdSensor_Mem14Temp”: {
“EntityId”: “<=/Entity_DIMM110.Id”,
“EntityInstance”: “<=/Entity_DIMM110.Instance”,
“Initialization”: 127,
“Capabilities”: 232,
“SensorType”: 1,
“ReadingType”: 1,
“SensorName”: “DIMM110_Temp”,
“Unit”: 128,
“BaseUnit”: 1,
“NominalReading”: 30,
“MaximumReading”: 127,
“MinimumReading”: 128,
“Reading”: “<=/Memory_14.TemperatureCelsius |> expr($1 > 255 ? 128 : $1)”,
“ReadingStatus”: “<=/::FruCtrl_1_0.PowerState ; <=/Memory_14.TemperatureCelsius |> string.cmp($1, ‘ON’) |> expr($1 ? 1 : 0) |> expr(($1 == 0) ? 2 : ($2 > 255 ? 2 : 0))”,
“SensorNumber”: 255,
“AssertMask”: 128,
“DeassertMask”: 28800,
“ReadingMask”: 2056,
“UpperNoncritical”: 95,
“PositiveHysteresis”: 2,
“NegativeHysteresis”: 2,
“M”: 1,
“IsValid”: “<=/Memory_14.Presence |> expr($1 == 1 ? true : false)”
},
“ThresholdSensor_Mem15Temp”: {
“EntityId”: “<=/Entity_DIMM120.Id”,
“EntityInstance”: “<=/Entity_DIMM120.Instance”,
“Initialization”: 127,
“Capabilities”: 232,
“SensorType”: 1,
“ReadingType”: 1,
“SensorName”: “DIMM120_Temp”,
“Unit”: 128,
“BaseUnit”: 1,
“NominalReading”: 30,
“MaximumReading”: 127,
“MinimumReading”: 128,
“Reading”: “<=/Memory_15.TemperatureCelsius |> expr($1 > 255 ? 128 : $1)”,
“ReadingStatus”: “<=/::FruCtrl_1_0.PowerState ; <=/Memory_15.TemperatureCelsius |> string.cmp($1, ‘ON’) |> expr($1 ? 1 : 0) |> expr(($1 == 0) ? 2 : ($2 > 255 ? 2 : 0))”,
“SensorNumber”: 255,
“AssertMask”: 128,
“DeassertMask”: 28800,
“ReadingMask”: 2056,
“UpperNoncritical”: 95,
“PositiveHysteresis”: 2,
“NegativeHysteresis”: 2,
“M”: 1,
“IsValid”: “<=/Memory_15.Presence |> expr($1 == 1 ? true : false)”
},
“ThresholdSensor_Mem16Temp”: {
“EntityId”: “<=/Entity_DIMM130.Id”,
“EntityInstance”: “<=/Entity_DIMM130.Instance”,
“Initialization”: 127,
“Capabilities”: 232,
“SensorType”: 1,
“ReadingType”: 1,
“SensorName”: “DIMM130_Temp”,
“Unit”: 128,
“BaseUnit”: 1,
“NominalReading”: 30,
“MaximumReading”: 127,
“MinimumReading”: 128,
“Reading”: “<=/Memory_16.TemperatureCelsius |> expr($1 > 255 ? 128 : $1)”,
“ReadingStatus”: “<=/::FruCtrl_1_0.PowerState ; <=/Memory_16.TemperatureCelsius |> string.cmp($1, ‘ON’) |> expr($1 ? 1 : 0) |> expr(($1 == 0) ? 2 : ($2 > 255 ? 2 : 0))”,
“SensorNumber”: 255,
“AssertMask”: 128,
“DeassertMask”: 28800,
“ReadingMask”: 2056,
“UpperNoncritical”: 95,
“PositiveHysteresis”: 2,
“NegativeHysteresis”: 2,
“M”: 1,
“IsValid”: “<=/Memory_16.Presence |> expr($1 == 1 ? true : false)”
},
“ThresholdSensor_Mem17Temp”: {
“EntityId”: “<=/Entity_DIMM140.Id”,
“EntityInstance”: “<=/Entity_DIMM140.Instance”,
“Initialization”: 127,
“Capabilities”: 232,
“SensorType”: 1,
“ReadingType”: 1,
“SensorName”: “DIMM140_Temp”,
“Unit”: 128,
“BaseUnit”: 1,
“NominalReading”: 30,
“MaximumReading”: 127,
“MinimumReading”: 128,
“Reading”: “<=/Memory_17.TemperatureCelsius |> expr($1 > 255 ? 128 : $1)”,
“ReadingStatus”: “<=/::FruCtrl_1_0.PowerState ; <=/Memory_17.TemperatureCelsius |> string.cmp($1, ‘ON’) |> expr($1 ? 1 : 0) |> expr(($1 == 0) ? 2 : ($2 > 255 ? 2 : 0))”,
“SensorNumber”: 255,
“AssertMask”: 128,
“DeassertMask”: 28800,
“ReadingMask”: 2056,
“UpperNoncritical”: 95,
“PositiveHysteresis”: 2,
“NegativeHysteresis”: 2,
“M”: 1,
“IsValid”: “<=/Memory_17.Presence |> expr($1 == 1 ? true : false)”
},
“ThresholdSensor_Mem18Temp”: {
“EntityId”: “<=/Entity_DIMM150.Id”,
“EntityInstance”: “<=/Entity_DIMM150.Instance”,
“Initialization”: 127,
“Capabilities”: 232,
“SensorType”: 1,
“ReadingType”: 1,
“SensorName”: “DIMM150_Temp”,
“Unit”: 128,
“BaseUnit”: 1,
“NominalReading”: 30,
“MaximumReading”: 127,
“MinimumReading”: 128,
“Reading”: “<=/Memory_18.TemperatureCelsius |> expr($1 > 255 ? 128 : $1)”,
“ReadingStatus”: “<=/::FruCtrl_1_0.PowerState ; <=/Memory_18.TemperatureCelsius |> string.cmp($1, ‘ON’) |> expr($1 ? 1 : 0) |> expr(($1 == 0) ? 2 : ($2 > 255 ? 2 : 0))”,
“SensorNumber”: 255,
“AssertMask”: 128,
“DeassertMask”: 28800,
“ReadingMask”: 2056,
“UpperNoncritical”: 95,
“PositiveHysteresis”: 2,
“NegativeHysteresis”: 2,
“M”: 1,
“IsValid”: “<=/Memory_18.Presence |> expr($1 == 1 ? true : false)”
},
“ThresholdSensor_Mem19Temp”: {
“EntityId”: “<=/Entity_DIMM160.Id”,
“EntityInstance”: “<=/Entity_DIMM160.Instance”,
“Initialization”: 127,
“Capabilities”: 232,
“SensorType”: 1,
“ReadingType”: 1,
“SensorName”: “DIMM160_Temp”,
“Unit”: 128,
“BaseUnit”: 1,
“NominalReading”: 30,
“MaximumReading”: 127,
“MinimumReading”: 128,
“Reading”: “<=/Memory_19.TemperatureCelsius |> expr($1 > 255 ? 128 : $1)”,
“ReadingStatus”: “<=/::FruCtrl_1_0.PowerState ; <=/Memory_19.TemperatureCelsius |> string.cmp($1, ‘ON’) |> expr($1 ? 1 : 0) |> expr(($1 == 0) ? 2 : ($2 > 255 ? 2 : 0))”,
“SensorNumber”: 255,
“AssertMask”: 128,
“DeassertMask”: 28800,
“ReadingMask”: 2056,
“UpperNoncritical”: 95,
“PositiveHysteresis”: 2,
“NegativeHysteresis”: 2,
“M”: 1,
“IsValid”: “<=/Memory_19.Presence |> expr($1 == 1 ? true : false)”
},
“ThresholdSensor_Mem20Temp”: {
“EntityId”: “<=/Entity_DIMM170.Id”,
“EntityInstance”: “<=/Entity_DIMM170.Instance”,
“Initialization”: 127,
“Capabilities”: 232,
“SensorType”: 1,
“ReadingType”: 1,
“SensorName”: “DIMM170_Temp”,
“Unit”: 128,
“BaseUnit”: 1,
“NominalReading”: 30,
“MaximumReading”: 127,
“MinimumReading”: 128,
“Reading”: “<=/Memory_20.TemperatureCelsius |> expr($1 > 255 ? 128 : $1)”,
“ReadingStatus”: “<=/::FruCtrl_1_0.PowerState ; <=/Memory_20.TemperatureCelsius |> string.cmp($1, ‘ON’) |> expr($1 ? 1 : 0) |> expr(($1 == 0) ? 2 : ($2 > 255 ? 2 : 0))”,
“SensorNumber”: 255,
“AssertMask”: 128,
“DeassertMask”: 28800,
“ReadingMask”: 2056,
“UpperNoncritical”: 95,
“PositiveHysteresis”: 2,
“NegativeHysteresis”: 2,
“M”: 1,
“IsValid”: “<=/Memory_20.Presence |> expr($1 == 1 ? true : false)”
},
“ThresholdSensor_Mem21Temp”: {
“EntityId”: “<=/Entity_DIMM180.Id”,
“EntityInstance”: “<=/Entity_DIMM180.Instance”,
“Initialization”: 127,
“Capabilities”: 232,
“SensorType”: 1,
“ReadingType”: 1,
“SensorName”: “DIMM180_Temp”,
“Unit”: 128,
“BaseUnit”: 1,
“NominalReading”: 30,
“MaximumReading”: 127,
“MinimumReading”: 128,
“Reading”: “<=/Memory_21.TemperatureCelsius |> expr($1 > 255 ? 128 : $1)”,
“ReadingStatus”: “<=/::FruCtrl_1_0.PowerState ; <=/Memory_21.TemperatureCelsius |> string.cmp($1, ‘ON’) |> expr($1 ? 1 : 0) |> expr(($1 == 0) ? 2 : ($2 > 255 ? 2 : 0))”,
“SensorNumber”: 255,
“AssertMask”: 128,
“DeassertMask”: 28800,
“ReadingMask”: 2056,
“UpperNoncritical”: 95,
“PositiveHysteresis”: 2,
“NegativeHysteresis”: 2,
“M”: 1,
“IsValid”: “<=/Memory_21.Presence |> expr($1 == 1 ? true : false)”
},
“ThresholdSensor_Mem22Temp”: {
“EntityId”: “<=/Entity_DIMM190.Id”,
“EntityInstance”: “<=/Entity_DIMM190.Instance”,
“Initialization”: 127,
“Capabilities”: 232,
“SensorType”: 1,
“ReadingType”: 1,
“SensorName”: “DIMM190_Temp”,
“Unit”: 128,
“BaseUnit”: 1,
“NominalReading”: 30,
“MaximumReading”: 127,
“MinimumReading”: 128,
“Reading”: “<=/Memory_22.TemperatureCelsius |> expr($1 > 255 ? 128 : $1)”,
“ReadingStatus”: “<=/::FruCtrl_1_0.PowerState ; <=/Memory_22.TemperatureCelsius |> string.cmp($1, ‘ON’) |> expr($1 ? 1 : 0) |> expr(($1 == 0) ? 2 : ($2 > 255 ? 2 : 0))”,
“SensorNumber”: 255,
“AssertMask”: 128,
“DeassertMask”: 28800,
“ReadingMask”: 2056,
“UpperNoncritical”: 95,
“PositiveHysteresis”: 2,
“NegativeHysteresis”: 2,
“M”: 1,
“IsValid”: “<=/Memory_22.Presence |> expr($1 == 1 ? true : false)”
},
“ThresholdSensor_Mem23Temp”: {
“EntityId”: “<=/Entity_DIMM1A0.Id”,
“EntityInstance”: “<=/Entity_DIMM1A0.Instance”,
“Initialization”: 127,
“Capabilities”: 232,
“SensorType”: 1,
“ReadingType”: 1,
“SensorName”: “DIMM1A0_Temp”,
“Unit”: 128,
“BaseUnit”: 1,
“NominalReading”: 30,
“MaximumReading”: 127,
“MinimumReading”: 128,
“Reading”: “<=/Memory_23.TemperatureCelsius |> expr($1 > 255 ? 128 : $1)”,
“ReadingStatus”: “<=/::FruCtrl_1_0.PowerState ; <=/Memory_23.TemperatureCelsius |> string.cmp($1, ‘ON’) |> expr($1 ? 1 : 0) |> expr(($1 == 0) ? 2 : ($2 > 255 ? 2 : 0))”,
“SensorNumber”: 255,
“AssertMask”: 128,
“DeassertMask”: 28800,
“ReadingMask”: 2056,
“UpperNoncritical”: 95,
“PositiveHysteresis”: 2,
“NegativeHysteresis”: 2,
“M”: 1,
“IsValid”: “<=/Memory_23.Presence |> expr($1 == 1 ? true : false)”
},
“ThresholdSensor_Mem24Temp”: {
“EntityId”: “<=/Entity_DIMM1B0.Id”,
“EntityInstance”: “<=/Entity_DIMM1B0.Instance”,
“Initialization”: 127,
“Capabilities”: 232,
“SensorType”: 1,
“ReadingType”: 1,
“SensorName”: “DIMM1B0_Temp”,
“Unit”: 128,
“BaseUnit”: 1,
“NominalReading”: 30,
“MaximumReading”: 127,
“MinimumReading”: 128,
“Reading”: “<=/Memory_24.TemperatureCelsius |> expr($1 > 255 ? 128 : $1)”,
“ReadingStatus”: “<=/::FruCtrl_1_0.PowerState ; <=/Memory_24.TemperatureCelsius |> string.cmp($1, ‘ON’) |> expr($1 ? 1 : 0) |> expr(($1 == 0) ? 2 : ($2 > 255 ? 2 : 0))”,
“SensorNumber”: 255,
“AssertMask”: 128,
“DeassertMask”: 28800,
“ReadingMask”: 2056,
“UpperNoncritical”: 95,
“PositiveHysteresis”: 2,
“NegativeHysteresis”: 2,
“M”: 1,
“IsValid”: “<=/Memory_24.Presence |> expr($1 == 1 ? true : false)”
}
}
}
期望结果
内存的离散传感器和门限传感器都正常显示
实际结果
定制化时只有内存的门限传感器没有内存离散传感器,不定制化时只有内存离散传感器

