diff --git a/gestion/tools/locate-mac.py b/gestion/tools/locate-mac.py index 75e5ca6f..279204de 100755 --- a/gestion/tools/locate-mac.py +++ b/gestion/tools/locate-mac.py @@ -6,6 +6,7 @@ sys.path.append('/usr/scripts/gestion') from annuaires import reverse, all_switchs from hptools import hpswitch from time import sleep +from os import system import threading mac = ":".join([i.zfill(2) for i in sys.argv[1].split(":")]).lower() @@ -34,3 +35,6 @@ for switch in ['backbone'] + all_switchs(): while len(threading.enumerate()) > 1 : sleep(1) + +print +system('whos mac=%s' % mac)