我在ipmitool中看到sel菜单中有一个“add”命令。它想要一个文件,但是它期望该文件的格式是什么?
> 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.
答案 0 :(得分:0)
文件的格式与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中将使用当前日期/时间记录事件。
将ipmitool sel save {filename}
的输出与ipimitool sel writeraw {filename}
进行比较,以确定上面的字节映射。