Fix problem where nodestat would make two ipv4 passes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13482 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
9590babced
commit
d5064385f8
@ -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>) {
|
||||
|
Loading…
Reference in New Issue
Block a user