diff options
author | Vikas Goel <vikas.goel@veritas.com> | 2021-12-08 14:55:55 -0800 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2021-12-14 09:28:51 -0500 |
commit | 5c59ba037f87c4dbdb0be24c5f498df10140d638 (patch) | |
tree | eeb8b42daa47c8ca0449f2223835738ac7086faa | |
parent | cafd0f3a52436a3966576e7db21e5dd17c06f0cc (diff) | |
download | sos-5c59ba037f87c4dbdb0be24c5f498df10140d638.tar.gz |
[ipmitool] Collect data for IPMI channel number 1
Hardware vendors choose an IPMI channel number for BMC LAN.
The current IPMI plugin is collecting data for channel 3.
Dell is using channel number 3. The number is not reserved for
a specific hardware vendor. It can be used by others too.
Signed-off-by: Vikas Goel <vikas.goel@gmail.com>
-rw-r--r-- | sos/report/plugins/ipmitool.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sos/report/plugins/ipmitool.py b/sos/report/plugins/ipmitool.py index 1738a287..8811f07c 100644 --- a/sos/report/plugins/ipmitool.py +++ b/sos/report/plugins/ipmitool.py @@ -26,12 +26,14 @@ class IpmiTool(Plugin, RedHatPlugin, DebianPlugin): if result['status'] == 0: cmd += " -I usb" + for subcmd in ['channel info', 'channel getaccess', 'lan print']: + for channel in [1, 3]: + self.add_cmd_output("%s %s %d" % (cmd, subcmd, channel)) + # raw 0x30 0x65: Get HDD drive Fault LED State # raw 0x30 0xb0: Get LED Status self.add_cmd_output([ - "%s channel info 3" % cmd, - "%s channel getaccess 3" % cmd, "%s raw 0x30 0x65" % cmd, "%s raw 0x30 0xb0" % cmd, "%s sel info" % cmd, @@ -40,7 +42,6 @@ class IpmiTool(Plugin, RedHatPlugin, DebianPlugin): "%s sensor list" % cmd, "%s chassis status" % cmd, "%s lan print" % cmd, - "%s lan print 3" % cmd, "%s fru print" % cmd, "%s mc info" % cmd, "%s sdr info" % cmd |