mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-30 16:21:11 +00:00
fix bmc ip will be resolved by name server.
This commit is contained in:
@@ -355,7 +355,7 @@ sub scan_process{
|
||||
# get live ip list
|
||||
###########################################################
|
||||
if ( $method eq "nmap" ) {
|
||||
my $bcmd = join(" ",$nmap_path," -sn $range | grep for |cut -d ' ' -f5 |tr -s '\n' ' ' ");
|
||||
my $bcmd = join(" ",$nmap_path," -sn -n $range | grep for |cut -d ' ' -f5 |tr -s '\n' ' ' ");
|
||||
$ip_list = xCAT::Utils->runcmd("$bcmd", -1);
|
||||
if ($::RUNCMD_RC != 0) {
|
||||
my $rsp = {};
|
||||
|
Reference in New Issue
Block a user