“Event_CpuBoard5V_LowerVoltage”: {
“EventKeyId”: “CpuBoard.LowerVoltage”,
“Condition”: “<=/Scanner_vid.Value |> expr(($1 == 4 || $1 == 0)? 3.0 : 4.5)”,
“Hysteresis”: 0.2,
“LedFaultCode”: “b01”,
“Reading”: “<=/Scanner_5v.Value |> expr(($1 / 20) > 255 ? 5 : (($1 / 20) * 3.3 * 2 * 20 / 4096))”,
“@Default”: {
“Reading”: 5,
“Condition”: 3
},
“OperatorId”: 2,
“DescArg1”: “#/Event_CpuBoard5V_LowerVoltage.Reading |> string.format(‘%0.3f’, $1)”,
“DescArg2”: “<=/Scanner_vid.Value |> string.format(‘%0.2fV’, $1)”,
“DescArg3”: “BCU${Slot}_V_VCC_5V0_3V3_RESVAA”,
“DescArg4”: “#/Event_CpuBoard5V_LowerVoltage.Condition |> string.format(‘%0.2f’, $1)”,
“DescArg5”: “${Slot}”,
“Component”: “#/Component_CpuBoard”,
“AdditionalInfo”: “3”
},
“Cont_vid”: {
“Num”: 3,
“DefaultValue”: 0
},
“ThresholdSensor_5v”: {
“AssertMask”: 516,
“DeassertMask”: 516,
“ReadingMask”: 4626,
“M”: 5,
“RBExp”: 224,
“UpperCritical”: “<=/Scanner_vid.Value |> expr(($1 == 4)? 72 : 110)”,
“LowerCritical”: “<=/Scanner_vid.Value |> expr(($1 == 4)? 60 : 90)”,
“@Default”: {
“UpperCritical”: 110,
“LowerCritical”: 60,
“Reading”: 100,
“ReadingStatus”: 2
},
“PositiveHysteresis”: 3,
“NegativeHysteresis”: 3,
“EntityId”: “<=/Entity_MainBoard.Id”,
“EntityInstance”: “<=/Entity_MainBoard.Instance”,
“Initialization”: 127,
“Capabilities”: 232,
“SensorType”: 2,
“ReadingType”: 1,
“BaseUnit”: 4,
“NominalReading”: “<=/Scanner_vid.Value |> expr(($1 == 4)? 66 : 100)”,
“MaximumReading”: 255,
“Reading”: “<=/Scanner_5v.Value;<=/Scanner_PowerGood.Value;<=/Scanner_vid.Value |> expr(($2 == 0) ? (($3 == 4)? 66 : 100) : ((($1 / 30) > 255 || $1 == 0) ? (($3 == 4)? 66 : 100) : ($1 / 30)))”,
“ReadingStatus”: “<=/Scanner_5v.Status;<=/Scanner_5v.Value;<=/Scanner_PowerGood.Value;<=/ThresholdSensor_5v.UpperCritical;<=/ThresholdSensor_5v.LowerCritical |> expr((($1 == 0) && (($2 / 30) > 255 || $2 == 0) && ($3 == 1)) ? 2 : (($4 - $5 > 40) ? 2 : $1))”,
“SensorNumber”: 255
}
然后,获取的scanner 不一样,导致一个版本告警一个版本没有告警
一个不告警的版本获取是如下:
% lsprop Scanner_vid_010101
bmc.kepler.Object.Properties
ClassName=“Scanner”
ObjectIdentifier=[1,“1”,“1”,“010101”]
ObjectName=“Scanner_vid_010101”
bmc.kepler.Scanner
Status=0
Value=4
bmc.kepler.Scanner.Aggregate
AggregateOffset=0
AggregateStatus=true
另一个版本告警的就是因为值为0 ,不是4
~ ~ $ mdbctl lsprop Scanner_vid_010101
bmc.kepler.Object.Properties
ClassName=“Scanner”
ObjectIdentifier=[1,“1”,“1”,“010101”]
ObjectName=“Scanner_vid_010101”
TraceSamplingRate=0
bmc.kepler.Scanner
Status=0
Value=0
bmc.kepler.Scanner.Aggregate
AggregateOffset=0
AggregateStatus=true
Private
Chip=“Smc_CpuBrdSMC_010101”
Debounce=“Cont_vid_010101”
FailureDebounceCount=10
Mask=255
NominalValue=0
Offset=201574656
Period=10000
ScanEnabled=1
Size=1
SuccessDebounceCount=10
Type=0
~ ~ $
这个是什么问题,怎么排查定位吗