diff --git a/gestion/locate-mac.py b/gestion/locate-mac.py new file mode 100755 index 00000000..16476a5d --- /dev/null +++ b/gestion/locate-mac.py @@ -0,0 +1,11 @@ +#! /usr/bin/env python +# -*- coding: iso-8859-15 -*- +# Localise une adresse MAC sur les différents switchs + +from annuaires import reverse, all_switchs +from hptools import hpswitch +from sys import argv + +for switch in ['backbone'] + all_switchs(): + prise = hpswitch(switch).where_is_mac(argv[1]) + print "%-10s: %d" % (switch, prise)