diff --git a/lib/FusionInventory/Agent/Task/Inventory/Linux/Storages/Megacli.pm b/lib/FusionInventory/Agent/Task/Inventory/Linux/Storages/Megacli.pm index ea5dca01dc..c5808c84f7 100644 --- a/lib/FusionInventory/Agent/Task/Inventory/Linux/Storages/Megacli.pm +++ b/lib/FusionInventory/Agent/Task/Inventory/Linux/Storages/Megacli.pm @@ -118,7 +118,7 @@ sub _getStorages { sub _getAdpEnclosure { my (%params) = @_; - my $command = exists $params{adp} ? "megacli -EncInfo -a$params{adp}" : undef; + my $command = exists $params{adp} ? "megacli -EncInfo -a$params{adp} -NoLog" : undef; my $handle = getFileHandle( command => $command, @@ -147,7 +147,7 @@ sub _getAdpEnclosure { sub _getSummary { my (%params) = @_; - my $command = exists $params{adp} ? "megacli -ShowSummary -a$params{adp}" : undef; + my $command = exists $params{adp} ? "megacli -ShowSummary -a$params{adp} -NoLog" : undef; my $handle = getFileHandle( command => $command, @@ -198,7 +198,7 @@ sub _getSummary { sub _getPDlist { my (%params) = @_; - my $command = exists $params{adp} ? "megacli -PDlist -a$params{adp}" : undef; + my $command = exists $params{adp} ? "megacli -PDlist -a$params{adp} -NoLog" : undef; my $handle = getFileHandle( command => $command, diff --git a/lib/FusionInventory/Agent/Task/Inventory/Linux/Storages/MegacliWithSmartctl.pm b/lib/FusionInventory/Agent/Task/Inventory/Linux/Storages/MegacliWithSmartctl.pm index 4dea3c3a64..38090b74ef 100644 --- a/lib/FusionInventory/Agent/Task/Inventory/Linux/Storages/MegacliWithSmartctl.pm +++ b/lib/FusionInventory/Agent/Task/Inventory/Linux/Storages/MegacliWithSmartctl.pm @@ -60,7 +60,7 @@ sub doInventory { sub _getPDlist { my (%params) = @_; - $params{command} = defined $params{adp} ? "megacli -pdlist -a$params{adp}" : undef; + $params{command} = defined $params{adp} ? "megacli -pdlist -a$params{adp} -NoLog" : undef; my %pdlist; my $src = {}; @@ -87,7 +87,7 @@ sub _getPDlist { sub _getLDinfo { my (%params) = @_; - $params{command} = defined $params{adp} ? "megacli -ldinfo -lAll -a$params{adp}" : undef; + $params{command} = defined $params{adp} ? "megacli -ldinfo -lAll -a$params{adp} -NoLog" : undef; my %ldinfo; my $n = -1; @@ -109,7 +109,7 @@ sub _getLDinfo { sub _getAdpPciInfo { my (%params) = @_; - $params{command} = defined $params{adp} ? "megacli -AdpGetPciInfo -a$params{adp}" : undef; + $params{command} = defined $params{adp} ? "megacli -AdpGetPciInfo -a$params{adp} -NoLog" : undef; my %adpinfo; foreach my $line (getAllLines(%params)) {