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:
parent
a7bc696514
commit
1252255ac0
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue