Send Trap Event
更新时间: 2025/06/26
在Gitcode上查看源码01h-发送Trap事件(Send-Trap-Event)
修订记录
| openUBMC版本号 | 修订日期 | 修订内容 |
|---|---|---|
| 25.06 | 2025/06/26 | 初稿,新增命令详情 |
基本信息
功能说明
通过Trap方式发送事件。
权限
适用机型
INTERAL_OEM_CMD
命令信息
请求信息
| 字节顺序 | 域取值说明 |
|---|---|
| NetFn | 30h |
| CMD | 93h |
| 1:3 | Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。 |
| 4 | Sub command,子命令=01h |
| 5 | Channel number. (This value is required to select which configuration parameters are to be used to send the Alert.) [7:4]-reserved [3:0]-Channel number |
| 6 | Destination Selector [7:4]-reserved [3:0]-destination selector. Selects which alert destination should go to. |
| 7 | Generator ID_L |
| 8 | Generator ID_H |
| 9 | EvMRev |
| 10 | Sensor Type |
| 11 | Sensor # |
| 12 | Event Dir | Event Type |
| 13 | Event Data 1 |
| 14 | Event Data 2 |
| 15 | Event Data 3 |
响应信息
| 字节顺序 | 域取值说明 |
|---|---|
| 1 | Completion Code |
| 2:4 | Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。 |
命令样例
发送Trap事件
请求:
ipmicmd -k "0f 00 MM NN" smi 0响应:
0f MM NN