commit | a55c953dd2bba16f2d43b186f920b18da4a3493f | [log] [tgz] |
---|---|---|
author | Josh Lehan <krellan@google.com> | Wed Oct 28 21:59:06 2020 -0700 |
committer | Willy Tu <wltu@google.com> | Thu May 06 15:52:07 2021 +0000 |
tree | 5d98aa6b69559914f7aa5880537645f036572c8f | |
parent | e0a4110016ba1a1e415598c2dd23687ca2e8c1bb [diff] |
sensorcommands: Add IPMI reading logging instrumentation Noteworthy sensor readings, such as the first reading, a new minimum or maximum value, or ending a good or bad streak of readings, will now have some useful logging output. Tested: Example logs ``` root@bmc:~# journalctl --no-pager | grep 'IPMI sensor' Jan 01 00:03:16 bmc ipmid[2865]: IPMI sensor sensor0: First reading, value=6 byte=51 Jan 01 00:03:16 bmc ipmid[2865]: IPMI sensor sensor0: Range min=0 max=30, Coefficients mValue=118 rExp=-3 bValue=0 bExp=0 bSigned=0 Jan 01 00:03:16 bmc ipmid[2865]: IPMI sensor sensor1: First reading, value=7 byte=59 Jan 01 00:03:16 bmc ipmid[2865]: IPMI sensor sensor1: Range min=0 max=30, Coefficients mValue=118 rExp=-3 bValue=0 bExp=0 bSigned=0 Jan 01 00:03:16 bmc ipmid[2865]: IPMI sensor sensor2: First reading, value=1.437 byte=12 Jan 01 00:03:16 bmc ipmid[2865]: IPMI sensor sensor2: Range min=0 max=30, Coefficients mValue=118 rExp=-3 bValue=0 bExp=0 bSigned=0 Jan 01 00:03:16 bmc ipmid[2865]: IPMI sensor sensor3: First reading, value=1.437 byte=12 Jan 01 00:03:16 bmc ipmid[2865]: IPMI sensor sensor3: Range min=0 max=30, Coefficients mValue=118 rExp=-3 bValue=0 bExp=0 bSigned=0 Jan 01 00:03:16 bmc ipmid[2865]: IPMI sensor sensor4: First reading, value=1.96 byte=17 Jan 01 00:03:16 bmc ipmid[2865]: IPMI sensor sensor4: Range min=0 max=30, Coefficients mValue=118 rExp=-3 bValue=0 bExp=0 bSigned=0 ... ``` Machine and sensors names are replaced. Ported from: https://gerrit.openbmc-project.xyz/c/openbmc/intel-ipmi-oem/+/40327 Signed-off-by: Josh Lehan <krellan@google.com> Change-Id: Idf7c8d4285b286fdc0afb3f0e7260c2d4915b326 Signed-off-by: Willy Tu <wltu@google.com>
To build this package, do the following steps:
1. ./bootstrap.sh 2. ./configure ${CONFIGURE_FLAGS} 3. make
To clean the repository run ./bootstrap.sh clean
.