2013-04-16 464 views
1

我在看的IPMItool中存在SEL菜單中的「添加」命令。它想一個文件,但它期待什麼格式,該文件?如何通過寫的ipmitool進入系統事件日誌(SEL)?

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

從DOC: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

文件的格式是一樣的輸出由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}以確定上述字節映射。