mirror of
https://github.com/thomas-krenn/check_lsi_raid.git
synced 2025-07-14 03:41:50 +02:00
Merge pull request #27 from keith4/master
Update storcli command syntax to work with new(er) storcli versions
This commit is contained in:
@ -234,13 +234,8 @@ sub getControllerInfo{
|
||||
my $command = '';
|
||||
|
||||
$storcli =~ /^(.*)\/c[0-9]+/;
|
||||
if(!defined($writelogs)){
|
||||
$command = $1.'adpallinfo a'.$CONTROLLER.' -NoLog';
|
||||
}
|
||||
else{
|
||||
$command = $1.'adpallinfo a'.$CONTROLLER;
|
||||
}
|
||||
|
||||
$command = $1.'/c'.$CONTROLLER.' show';
|
||||
|
||||
push @{$commands_a}, $command;
|
||||
my @output = `$command`;
|
||||
if($? >> 8 != 0){
|
||||
|
Reference in New Issue
Block a user