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) +