From e3822ee35b70473391d5339b52c5dfebd3a7d81e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Sun, 10 Feb 2013 02:51:18 +0100 Subject: [PATCH] Correction dans la probe mac, et commentaire dans ip.py --- Probes/mac | 2 +- etc/python/ip.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Probes/mac b/Probes/mac index 3b3036c..aeba027 100755 --- a/Probes/mac +++ b/Probes/mac @@ -2,4 +2,4 @@ echo "group:mac" -exec ip -6 a show | egrep "(^[0-9]*:|scope link)" | tail -n +2 | sed -e 's/^[0-9]*: //' -e 's/: <.*$//g' -e 's/@.*//g' -e 's/^.*fe80:://g' -e 's:/64.*$::g' +exec ip -6 a show | egrep "(^[0-9]*:|scope link)" | tail -n +1 | sed -e 's/^[0-9]*: //' -e 's/: <.*$//g' -e 's/@.*//g' -e 's/^.*fe80:://g' -e 's:/64.*$::g' diff --git a/etc/python/ip.py b/etc/python/ip.py index f046c4c..6e5e37f 100644 --- a/etc/python/ip.py +++ b/etc/python/ip.py @@ -2,6 +2,8 @@ # # Recuperation des addresses ip des serveurs +# Parfois, on prend un gaierror parce que hostname ne retourne rien, je sais +# pas d'où ça vient, mais c'est caca. import socket def pubipof(hostname):