Add SEL Entry
更新时间: 2025/06/26
在Gitcode上查看源码

44h-添加SEL日志(Add-SEL-Entry)

修订记录

openUBMC版本号修订日期修订内容
25.062025/06/26初稿,新增命令详情

基本信息

功能说明

向BMC添加SEL日志。

权限

BasicSetting

命令信息

请求信息

字节顺序域取值说明
NetFnStorage 0Ah
CMD44h
1:16Record Data, 16 bytes.

响应信息

字节顺序域取值说明
1Completion Code. Generic, plus following command specific:
80h=operation not supported for this Record Type
81h=cannot execute command, SEL erase in progress
2:3Record ID for added record, LS Byte first.

命令样例

向BMC添加SEL日志

请求:
ipmicmd -k "0f 00 0a 44 0 2 2 16 23 10 01 0 0 3 2 1 0 0 0 0" smi 0
响应:
0f 02 00
注:
响应返回日志条数和当时环境记录sel日志条数有关

附表1 SEL Record Formats

ByteFieldDescriptionBIOS填写字段
1
2
Record IDID used for SEL Record access. The Record ID values 0000h and FFFFh have special meaning in the Event Access commands and must not be used as Record ID values for stored SEL Event Records.NO
3Record Type[7:0]-Record Type
02h=system event record
C0h-DFh=OEM timestamped, bytes 8-16 OEM defined
E0h-FFh=OEM non-timestamped, bytes 4-16 OEM defined
YES
4:7TimestampTime when event was logged. LS byte first.NO
8:9Generator IDRqSA & LUN if event was generated from IPMB. Software ID if event was generated from system software.
Byte 1
[7:1]-7-bit I2C . Slave Address, or 7-bit system software ID
[0] 0b=ID is IPMB Slave Address
1b=system software ID
Byte 2
[7:4]-Channel number. Channel that event message was received over. 0h if the event message was received via the system interface, primary IPMB, or internally generated by the BMC. (New for IPMI v1.5. These bits were reserved in IPMI v1.0)
[3:2]-reserved. Write as 00b.
[1:0]-IPMB device LUN if byte 1 holds Slave Address. 00b otherwise.
YES
10EvM RevEvent Message format version (=04hfor events in this specification, 03h for IPMI
v1.0 Event Messages.)
Note: the BMC must accept Platform Event request messages that are in IPMI v1.0
format (EvMRev=03h) and log them as IPMI v1.5/v2.0Records by setting the
EvMRev field to 04h and setting the Channel Number in the Generator ID field
appropriately for the channel that the event was received from.
YES
11Sensor TypeSensor Type Code for sensor that generated the eventYES
12Sensor #Number of sensor that generated the eventNO
13Event Dir
Event Type
Event Dir
[7 ]-0b=Assertion event.
1b=Deassertion event.
Event Type
Type of trigger for the event, e.g. critical threshold going high, state asserted, etc.
Also indicatesclassof the event. E.g. discrete, threshold, or OEM. The Event Type field is encoded using the Event/Reading Type Code. See section 42.1,Event/Reading Type Codes.
[6:0]-Event Type Code
YES
14Event Data 1PerTable 29-6, Event Request MessageEvent Data Field ContentsYES
15Event Data 2PerTable 29-6, Event Request MessageEvent Data Field ContentsYES
16Event Data 3PerTable 29-6, Event Request MessageEvent Data Field ContentsYES

说明: BIOS填写字段为NO的字段,BIOS填写0即可。

返回到索引