2
0
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:
amy0701
2015-06-11 03:36:52 -04:00
parent 7a1fb1afc3
commit a9ff8905f6

View File

@@ -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 = {};