【问题标题】:How to write entry into the System Event Log (SEL) via ipmitool?如何通过 ipmitool 将条目写入系统事件日志 (SEL)?
【发布时间】:2013-04-16 21:03:02
【问题描述】:

我在 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.

【问题讨论】:

    标签: hardware ipmi ipmitool


    【解决方案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 中会记录当前日期/时间的事件。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-04-15
      • 2012-11-05
      • 1970-01-01
      • 1970-01-01
      • 2017-08-27
      • 1970-01-01
      • 2012-08-01
      • 1970-01-01
      相关资源
      最近更新 更多