On sait en plus si l'adresse mac est celle d'un adhrent ou pas.

darcs-hash:20041112191934-72cb0-fbd46026c775d8e238c94184b39caf134d8f8bd3.gz
This commit is contained in:
salles 2004-11-12 20:19:34 +01:00
parent a7bc696514
commit 1252255ac0

View file

@ -5,6 +5,7 @@
from annuaires import reverse, all_switchs from annuaires import reverse, all_switchs
from hptools import hpswitch from hptools import hpswitch
from sys import argv from sys import argv
from os import system
mac = ":".join([i.zfill(2) for i in argv[1].split(":")]).lower() 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)) print "%-10s: %d (%s)" % (switch, prise, sw.nom(None, prise))
else: else:
print "%-10s: non trouvé" % switch print "%-10s: non trouvé" % switch
system("whos mac=%s" % mac)