diff options
author | Mahesh Potkar <Mahesh.Potkar@veritas.com> | 2022-01-12 10:55:27 +0530 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2022-01-13 10:08:47 -0500 |
commit | db8feba6c329654cb430ff321ef77eb96a82fae2 (patch) | |
tree | 25d8cd3d730e5a7786086e43784eff8b4954b6c5 | |
parent | a7ffacd855fcf2e9a136c6946744cbc99bc91272 (diff) | |
download | sos-db8feba6c329654cb430ff321ef77eb96a82fae2.tar.gz |
[storcli] Fix show events command
Adapter information is not showing in
/call show events command because it
requires file=<filename> as a parameter
e.g.
/opt/MegaRAID/storcli/storcli64 /call show events file=storcli64_.call_show_events
Signed-off-by: Mahesh Potkar <maheshpotkar@gmail.com>
-rw-r--r-- | sos/report/plugins/storcli.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sos/report/plugins/storcli.py b/sos/report/plugins/storcli.py index 5dbc2b32..bdb94fb2 100644 --- a/sos/report/plugins/storcli.py +++ b/sos/report/plugins/storcli.py @@ -27,7 +27,6 @@ class StorCLI(Plugin, IndependentPlugin): 'show ctrlcount', '/call show AliLog', '/call show all', - '/call show events', '/call show termlog', '/call/bbu show all', '/call/cv show all', @@ -48,4 +47,12 @@ class StorCLI(Plugin, IndependentPlugin): suggest_filename="storcli64_%s%s" % (subcmd, json), runat=logpath) + # /call show events need 'file=' option to get adapter info like below + # "Adapter: # - Number of Events: xxx". + subcmd = '/call show events' + self.add_cmd_output( + "%s %s file=/dev/stdout%s" % (cmd, subcmd, json), + suggest_filename="storcli64_%s%s" % (subcmd, json), + runat=logpath) + # vim: set et ts=4 sw=4 : |