Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoLog option for megacli util #996

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand All @@ -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;
Expand All @@ -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)) {
Expand Down