diff --git a/lib/ipmi_backend_utils.pm b/lib/ipmi_backend_utils.pm index 4713508022b9..539a383da7bc 100644 --- a/lib/ipmi_backend_utils.pm +++ b/lib/ipmi_backend_utils.pm @@ -358,8 +358,9 @@ sub set_grub_on_vh { #ipmitool to perform server management sub ipmitool { my ($cmd) = @_; + my $ipmi_options = $bmwqemu::vars{IPMI_OPTIONS} // '-I lanplus'; - my @cmd = ('ipmitool', '-I', 'lanplus', '-H', $bmwqemu::vars{IPMI_HOSTNAME}, '-U', $bmwqemu::vars{IPMI_USER}, '-P', $bmwqemu::vars{IPMI_PASSWORD}); + my @cmd = ('ipmitool', split(' ', $ipmi_options), '-H', $bmwqemu::vars{IPMI_HOSTNAME}, '-U', $bmwqemu::vars{IPMI_USER}, '-P', $bmwqemu::vars{IPMI_PASSWORD}); push(@cmd, split(/ /, $cmd)); my ($stdin, $stdout, $stderr, $ret);