Pour les nouvelles bornes...

darcs-hash:20050906163300-d1718-fa5491490705e1164054c4c86534b4a733bb3cbc.gz
This commit is contained in:
bernat 2005-09-06 18:33:00 +02:00
parent 232ee0e583
commit 4d96257e78

View file

@ -667,7 +667,7 @@ def borne_clients_canal(borne) :
for clef in ["/etc/wifi/ssh/wifi","/usr/scripts/gestion/clef-wifi"]:
if os.path.isfile(clef) and user_tests.isadm():
try:
wl = popen2.Popen3("ssh -o StrictHostKeyChecking=no -i %s root@%s 'for mac in $(/usr/sbin/wl assoclist | cut -f 2 -d \" \"); do rssi=$(/usr/sbin/wl rssi $mac 2> /dev/null | cut -f 3 -d \" \") ; echo $mac $rssi ; done ; echo -n \"CANAL \" ; /usr/sbin/wl channel | grep current' 2> /dev/null" % (clef, borne))
wl = popen2.Popen3("ssh -o StrictHostKeyChecking=no -i %s root@%s 'cat /tmp/auth-mac.dump ; echo -n \"CANAL \" ; /usr/sbin/nvram get wl0_channel' 2> /dev/null" % (clef, borne))
wl.tochild.close()
for line in wl.fromchild.readlines():
# Chaque ligne est de la forme