updated storcli command to work with new version, per https://github.com/thomas-krenn/check_lsi_raid/issues/24

This commit is contained in:
Keith4
2019-03-05 15:52:28 -05:00
parent b7a74710f2
commit e4a816610d

View File

@ -234,13 +234,15 @@ sub getControllerInfo{
my $command = '';
$storcli =~ /^(.*)\/c[0-9]+/;
if(!defined($writelogs)){
$command = $1.'adpallinfo a'.$CONTROLLER.' -NoLog';
}
else{
$command = $1.'adpallinfo a'.$CONTROLLER;
}
# if(!defined($writelogs)){
# $command = $1.'adpallinfo a'.$CONTROLLER.' -NoLog';
# }
# else{
# $command = $1.'adpallinfo a'.$CONTROLLER;
# }
#per https://github.com/thomas-krenn/check_lsi_raid/issues/24
$command = $1.'/c'.$CONTROLLER.' show';
push @{$commands_a}, $command;
my @output = `$command`;
if($? >> 8 != 0){