From 16f9d196ca834d19734916b076b00477955e0f25 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 8 Oct 2012 21:08:03 +0000 Subject: [PATCH] nmap ipv6 support can be pretty easily messed up, change probe parameters from default '80' git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13961 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 41a380b7b..b5a6348fe 100644 --- a/xCAT-server/lib/xcat/plugins/nodestat.pm +++ b/xCAT-server/lib/xcat/plugins/nodestat.pm @@ -639,7 +639,7 @@ sub process_request_nmap { my @nodesetnodes=(); 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: $!"); + open($fping,"nmap -6 -PS$ports,3001 -n --send-ip -p $ports,3001 ".join(' ',@ip6s). " 2> /dev/null|") or die("Can't start nmap: $!"); } 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; }