Il n'y a plus de probleme avec le serveur ssh pour le moment, on revient

fping

darcs-hash:20060209101250-d1718-22313e4767f108e5f9d1a69681047a424a4223b8.gz
This commit is contained in:
bernat 2006-02-09 11:12:50 +01:00
parent 22bd695a26
commit bf7dd720f1

View file

@ -34,7 +34,7 @@ for b in bornes:
# Est-ce un hotspot ? # Est-ce un hotspot ?
hotspot = "<nvram>crans_hotspot=1" in b.info() and 1 or 0 hotspot = "<nvram>crans_hotspot=1" in b.info() and 1 or 0
# Est-ce que la borne est up ? # Est-ce que la borne est up ?
if os.system("nmap --host_timeout 5000 -p 22 -sS %s | grep -E -q '22/tcp (filtered|open)'" % b.nom()) == 0: if os.system("/usr/local/sbin/fping -q %s" % b.nom()) == 0:
up = 1 up = 1
else: else:
up = 0 up = 0