add --system-dns to the nmap command, without this flag, the nmap may returns noping for pingable nodes due to DNS related issues

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4562 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2009-11-13 08:00:51 +00:00
parent 0e6b734b06
commit e4033f21f0

View File

@ -142,7 +142,7 @@ sub nmap_pping {
foreach (@$nodes) {
$deadnodes{$_}=1;
}
open (FPING, "nmap -PE --send-ip -sP ".join(' ',@$nodes). " 2> /dev/null|") or die("Cannot open nmap pipe: $!");
open (FPING, "nmap -PE --system-dns --send-ip -sP ".join(' ',@$nodes). " 2> /dev/null|") or die("Cannot open nmap pipe: $!");
my $node;
while (<FPING>) {
if (/Host (.*) \(.*\) appears to be up/) {