mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-30 08:11:20 +00:00
If the openbmc console port is returned by nmap, assume that it's openbmc
This commit is contained in:
@@ -670,7 +670,8 @@ sub scan_process {
|
||||
|
||||
my $nmap_cmd = "nmap ${$live_ip}[$i] -p $openbmc_port -Pn";
|
||||
my $nmap_output = xCAT::Utils->runcmd($nmap_cmd, -1);
|
||||
if ($nmap_output =~ /$openbmc_port(.+)open/) {
|
||||
if ($nmap_output =~ /$openbmc_port(.+)/) {
|
||||
# if the openbmc_port exists at any nmap status, assume it's an OpenBMC server
|
||||
bmcdiscovery_openbmc(${$live_ip}[$i], $opz, $opw, $request_command);
|
||||
} else {
|
||||
bmcdiscovery_ipmi(${$live_ip}[$i], $opz, $opw, $request_command);
|
||||
|
Reference in New Issue
Block a user