diff --git a/xCAT-server/lib/xcat/plugins/nodestat.pm b/xCAT-server/lib/xcat/plugins/nodestat.pm index 036fbdc4f..41a380b7b 100644 --- a/xCAT-server/lib/xcat/plugins/nodestat.pm +++ b/xCAT-server/lib/xcat/plugins/nodestat.pm @@ -640,7 +640,7 @@ sub process_request_nmap { foreach my $ip6 (0,1) { #first pass, ipv4, second pass ipv6 if ($ip6 and scalar(@ip6s)) { open($fping,"nmap -6 -PS -n --send-ip -p $ports,3001 ".join(' ',@ip6s). " 2> /dev/null|") or die("Can't start nmap: $!"); - } elsif (scalar(@ips)) { + } elsif (not $ip6 and scalar(@ips)) { open($fping,"nmap -PE -n --send-ip -p $ports,3001 ".join(' ',@ips). " 2> /dev/null|") or die("Can't start nmap: $!"); } else { next; } while (<$fping>) {