From d5064385f8256610bd55f586cd54e75e12ad65a2 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 10 Aug 2012 16:23:23 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/nodestat.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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>) {