From 4f1bbb5444946138d76bf3ca28cc53893213abc4 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Wed, 9 Jul 2014 14:38:23 +0100 Subject: [megacli] add new command and switch to add_copy_specs Signed-off-by: Bryn M. Reeves --- sos/plugins/megacli.py | 12 +++++++++--- 1 file 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 + -- cgit