On Tue, Mar 1, 2016 at 7:51 PM, Brad Willson <br...@synnex.com> wrote:
> Changing this up a little, reading the man page one might think 'sel readraw
> file' would inject entries into the SEL with time stamps intact but that is
> not the case.  Is there a method to inject events into the SEL, to basically
> restore from a previously saved raw dump?

Hello,

looking at the source code, I see that timestamp is not being set(and
not being saved either!). However, that's all I can tell you.
I guess you could inject SEL entries as a raw commands, but it might
be ... difficult.

Best regards,
Z.

--
Zdenek Styblik
email: zdenek.styb...@gmail.com
jabber: zdenek.styb...@gmail.com


>
>
> Thank you,
>
> Brad
>
>
> ________________________________
> From: Brad Willson <br...@synnex.com>
> Sent: Monday, February 29, 2016 4:14 PM
> To: ipmitool-devel@lists.sourceforge.net
> Subject: [Ipmitool-devel] Preserving SEL date/time stamps across a clear
> event
>
>
> Hi,
>
>
> The objective here is to save the SEL to a file before an event that clears
> it, then repopulate it from the saved file then continue logging events from
> that point on with appropriate date/time stamps.  The problem (perceived) is
> that ipmitool sel add file resets previously recorded date/time stamps to
> the current date and time effectively debasing the integrity of the log.
>
>
> ipmitool version 1.8.15
>
> Steps to reproduce:
>
> ipmitool sel list
>    a | 02/29/2016 | 22:06:33 | Event Logging Disabled #0x8c | Log area
> reset/cleared | Asserted
>    b | 02/29/2016 | 22:19:42 | Other Units-based Sensor #0xa0 | State
> Asserted | Asserted
>    c | 02/29/2016 | 22:19:43 | System Boot Initiated #0x87 | System Restart
> | Asserted
>    d | 02/29/2016 | 22:20:06 | System Event #0x8e | Timestamp Clock Sync |
> Asserted
>    e | 02/29/2016 | 22:20:08 | System Event #0x8e | Timestamp Clock Sync |
> Asserted
>    f | 02/29/2016 | 22:20:51 | System Event #0x8f | OEM System boot event |
> Asserted
>   10 | 02/29/2016 | 22:21:01 | System ACPI Power State #0x88 | S0/G0:
> working | Asserted
>
> ipmitool sel clear
> Clearing SEL.  Please allow a few seconds to erase.
>
> ipmitool sel add sel_save
>    0 |  Pre-Init  |0000000000| Event Logging Disabled #0x8c | Log area
> reset/cleared | Asserted
>    0 |  Pre-Init  |0000000000| Other Units-based Sensor #0xa0 | State
> Asserted | Asserted
>    0 |  Pre-Init  |0000000000| System Boot Initiated #0x87 | System Restart
> | Asserted
>    0 |  Pre-Init  |0000000000| System Event #0x8e | Timestamp Clock Sync |
> Asserted
>    0 |  Pre-Init  |0000000000| System Event #0x8e | Timestamp Clock Sync |
> Asserted
>    0 |  Pre-Init  |0000000000| System Event #0x8f | OEM System boot event |
> Asserted
>    0 |  Pre-Init  |0000000000| System ACPI Power State #0x88 | S0/G0:
> working | Asserted
>
> ipmitool sel list
>   11 | 02/29/2016 | 22:22:37 | Event Logging Disabled #0x8c | Log area
> reset/cleared | Asserted
>   12 | 02/29/2016 | 22:22:48 | Event Logging Disabled #0x8c | Log area
> reset/cleared | Asserted
>   13 | 02/29/2016 | 22:22:48 | Other Units-based Sensor #0xa0 | State
> Asserted | Asserted
>   14 | 02/29/2016 | 22:22:48 | System Boot Initiated #0x87 | System Restart
> | Asserted
>   15 | 02/29/2016 | 22:22:48 | System Event #0x8e | Timestamp Clock Sync |
> Asserted
>   16 | 02/29/2016 | 22:22:48 | System Event #0x8e | Timestamp Clock Sync |
> Asserted
>   17 | 02/29/2016 | 22:22:48 | System Event #0x8f | OEM System boot event |
> Asserted
>   18 | 02/29/2016 | 22:22:48 | System ACPI Power State #0x88 | S0/G0:
> working | Asserted
>
> This smells like a bug to me but I wanted to check with the experts before I
> proceed.
>
> Thank you,
> Brad
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
> _______________________________________________
> Ipmitool-devel mailing list
> Ipmitool-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ipmitool-devel
>

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Ipmitool-devel mailing list
Ipmitool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel

Reply via email to