From: Stephen Soltesz <soltesz@cs.princeton.edu>
Date: Tue, 11 Dec 2007 22:47:47 +0000 (+0000)
Subject: just assume that the host is up by using -P0 arg to nmap. Without this, nmap missed... 
X-Git-Tag: Monitor-1.0-0~13
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=7db36533c891343df43444eac1fa2c6128d47ac4;p=monitor.git

just assume that the host is up by using -P0 arg to nmap. Without this, nmap missed some hosts that really were up.
---

diff --git a/findbadpcu.py b/findbadpcu.py
index 7fe45c3..5e08d15 100755
--- a/findbadpcu.py
+++ b/findbadpcu.py
@@ -187,7 +187,7 @@ def collectPingAndSSH(pcuname, cohash):
 		#### RUN NMAP ###############################
 		if continue_probe:
 			nmap = soltesz.CMD()
-			(oval,eval) = nmap.run_noexcept("nmap -oG - -p22,23,80,443,5869,16992 %s | grep Host:" % pcu_name(values))
+			(oval,eval) = nmap.run_noexcept("nmap -oG - -P0 -p22,23,80,443,5869,16992 %s | grep Host:" % pcu_name(values))
 			# NOTE: an empty / error value for oval, will still work.
 			(values['portstatus'], continue_probe) = nmap_portstatus(oval)