aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-07-09 14:38:23 +0100
committerBryn M. Reeves <bmr@redhat.com>2014-07-09 14:38:23 +0100
commit4f1bbb5444946138d76bf3ca28cc53893213abc4 (patch)
tree6f443b723660b2601a954d82ef5c5524415c9c32
parentc6c9693507ca30d4f20bb2f98329adfe1f854cc2 (diff)
downloadsos-4f1bbb5444946138d76bf3ca28cc53893213abc4.tar.gz
[megacli] add new command and switch to add_copy_specs
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/megacli.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/sos/plugins/megacli.py b/sos/plugins/megacli.py
index a6d42bca..fa42da32 100644
--- a/sos/plugins/megacli.py
+++ b/sos/plugins/megacli.py
@@ -34,6 +34,12 @@ class MegaCLI(Plugin, RedHatPlugin):
def get_megacli_files(self):
""" MegaCLI specific output
"""
- self.add_cmd_output("/opt/MegaRAID/MegaCli/MegaCli64 LDPDInfo -aALL")
- self.add_cmd_output("/opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aALL")
- self.add_cmd_output("/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuStatus -aALL")
+ self.add_cmd_outputs([
+ megacli_cmd + " LDPDInfo -aALL",
+ megacli_cmd + " -AdpAllInfo -aALL",
+ megacli_cmd + " -AdpBbuCmd -GetBbuStatus -aALL",
+ megacli_cmd + " -ShowSummary -a0"
+ ])
+
+# vim: et ts=4 sw=4
+