11 lines
337 B
Python
Executable file
11 lines
337 B
Python
Executable file
#! /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)
|