From 1252255ac0e2bf304e32b63758cc4bde9480e401 Mon Sep 17 00:00:00 2001 From: salles Date: Fri, 12 Nov 2004 20:19:34 +0100 Subject: [PATCH] On sait en plus si l'adresse mac est celle d'un adhrent ou pas. darcs-hash:20041112191934-72cb0-fbd46026c775d8e238c94184b39caf134d8f8bd3.gz --- gestion/locate-mac.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gestion/locate-mac.py b/gestion/locate-mac.py index ac50c0ae..20fe13d3 100755 --- a/gestion/locate-mac.py +++ b/gestion/locate-mac.py @@ -5,6 +5,7 @@ from annuaires import reverse, all_switchs from hptools import hpswitch from sys import argv +from os import system mac = ":".join([i.zfill(2) for i in argv[1].split(":")]).lower() @@ -15,3 +16,6 @@ for switch in ['backbone'] + all_switchs(): print "%-10s: %d (%s)" % (switch, prise, sw.nom(None, prise)) else: print "%-10s: non trouvé" % switch + +system("whos mac=%s" % mac) +