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

Add SEL Entry

Change History

openUBMC VersionRevision DateDescription
25.062025/06/26Initial draft: add command details

Basic Information

Function Description

Adds SEL logs to the BMC.

Privilege

BasicSetting

Command Information

Request Information

ByteData Field
NetFnStorage 0Ah
CMD44h
1:16Record Data, 16 bytes.

Response Information

ByteData Field
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.

Reference

Table 1 SEL Record Formats

ByteFieldDescriptionFields to be filled in the BIOS
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 (=04h for 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.0 Records 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 indicates class of 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 1Per Table 29-6, Event Request Message Event Data Field ContentsYES
15Event Data 2Per Table 29-6, Event Request Message Event Data Field ContentsYES
16Event Data 3Per Table 29-6, Event Request Message Event Data Field ContentsYES

NOTE: For the BIOS, set this parameter to NO. For the BIOS, set this parameter to 0.

Command Example

Add SEL logs to the BMC.

Request:

bash
Request:
ipmicmd -k "0f 00 0a 44 0 2 2 16 23 10 01 0 0 3 2 1 0 0 0 0" smi 0
Response:
0f 02 00
Note:
The number of returned logs is related to the number of SEL logs recorded in the environment.

Back to Index