Add SEL Entry
更新时间: 2025/06/26
在Gitcode上查看源码44h-添加SEL日志(Add-SEL-Entry)
修订记录
| openUBMC版本号 | 修订日期 | 修订内容 |
|---|---|---|
| 25.06 | 2025/06/26 | 初稿,新增命令详情 |
基本信息
功能说明
向BMC添加SEL日志。
权限
BasicSetting
命令信息
请求信息
| 字节顺序 | 域取值说明 |
|---|---|
| NetFn | Storage 0Ah |
| CMD | 44h |
| 1:16 | Record Data, 16 bytes. |
响应信息
| 字节顺序 | 域取值说明 |
|---|---|
| 1 | Completion Code. Generic, plus following command specific: 80h=operation not supported for this Record Type 81h=cannot execute command, SEL erase in progress |
| 2:3 | Record 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
| Byte | Field | Description | BIOS填写字段 |
|---|---|---|---|
| 1 2 | Record ID | ID 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 |
| 3 | Record 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:7 | Timestamp | Time when event was logged. LS byte first. | NO |
| 8:9 | Generator ID | RqSA & 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 |
| 10 | EvM Rev | Event 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 |
| 11 | Sensor Type | Sensor Type Code for sensor that generated the event | YES |
| 12 | Sensor # | Number of sensor that generated the event | NO |
| 13 | Event 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 |
| 14 | Event Data 1 | PerTable 29-6, Event Request MessageEvent Data Field Contents | YES |
| 15 | Event Data 2 | PerTable 29-6, Event Request MessageEvent Data Field Contents | YES |
| 16 | Event Data 3 | PerTable 29-6, Event Request MessageEvent Data Field Contents | YES |
说明: BIOS填写字段为NO的字段,BIOS填写0即可。