Further to Patch #92 (Bug #301), it would be useful to add support to Linux OS installers to use IPMI to set the installation status in the SEL.
Here is a script that makes it easy to set this status from within installation scripts.
For an example of where this can be used, see:
https://github.com/yast/yast-yast2/blob/master/library/general/doc/Hooks.md#file-name-format
Please ignore previous attachment. Consider this one.
Edit: missing 'ERROR:' string and something I can't remember right now.
Last edit: Zdenek Styblik 2014-05-07
Please, fix the script if you want to get this committed.
Thanks!
Zdenek,
I had uploaded a newer version of the script on 5/7.
https://sourceforge.net/p/ipmitool/patches/_discuss/thread/6dc1a88a/3cee/attachment/0001-Script-to-log-installation-status-as-SEL-events.patch
Please ignore the patch attached to the original description.
Thank you!
Charles,
here are my comments:
I suggest:
EDIT: I admit that which doesn't have to be installed, so it's a bit tricky.
Instead of:
Try:
I haven't tested it with ipmitool itself, but it should work without any problems(99% confidence). No need for temp file.
I'd write this:
as:
There is no for %s and then string as params. Also, since 2 and 3 are errors, perhaps they should end up on STDERR(1>&2).
All of the above are just suggestions and the scripts can be merged without those. It looks ok.
Last edit: Zdenek Styblik 2015-07-22
Ticket moved from /p/ipmitool/patches/97/
I've committed it. If you want to implement changes I've suggested, please, open new ticket for those. Thanks.