1

我在 ipmitool 中看到 sel 菜单中有一个“添加”命令。它想要一个文件,但它期望该文件的格式是什么?

> ipmitool sel add file.txt
> Invalid Event: 0000f8b601000000

来自文档: http: //man.he.net/man1/ipmitool

添加

                 Read  event  entries from a file and add them to the SEL.
                 New SEL entries area added onto the SEL  after  the  last
                 record  in  the  SEL.   Record  added is of type 2 and is
                 automatically timestamped.
4

1 回答 1

1

该文件的格式与输出相同,ipmitool sel save {filename}如下所示:

0x04 0x10 0x07 0x6f 0x02 0xff 0xff # Event Logging Disabled #0x07 Log area reset/cleared
0x04 0x12 0x83 0x6f 0x05 0x00 0xff # System Event #0x83 Timestamp Clock Sync
0x04 0x12 0x83 0x6f 0x05 0x80 0xff # System Event #0x83 Timestamp Clock Sync
0x04 0x09 0x01 0x6f 0x00 0xff 0xff # Power Unit #0x01 Power off/down
0x04 0x09 0x01 0xef 0x00 0xff 0xff # Power Unit #0x01 Power off/down
0x04 0x14 0x09 0x6f 0x00 0xff 0xff # Button #0x09 Power Button pressed

将此加载到 SEL 中将记录具有当前日期/时间的事件。

比较 with 的输出ipmitool sel save {filename}ipimitool sel writeraw {filename}确定上面的字节映射。

于 2013-08-16T01:16:05.097 回答