mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 04:07:52 +00:00
bug fix, be more specific with slot
This commit is contained in:
@@ -18,6 +18,13 @@ $ pip3 install pexpect-serial
|
|||||||
./cisco_wifi_ctl.py --scheme ssh -d 192.168.100.112 -u admin -p Cisco123 --action cmd --value "show ap config general APA453.0E7B.CF9C"
|
./cisco_wifi_ctl.py --scheme ssh -d 192.168.100.112 -u admin -p Cisco123 --action cmd --value "show ap config general APA453.0E7B.CF9C"
|
||||||
|
|
||||||
telnet 172.19.36.168(Pwd:Wnbulab@123), go to the privileged mode and execute the command “clear line 43”.
|
telnet 172.19.36.168(Pwd:Wnbulab@123), go to the privileged mode and execute the command “clear line 43”.
|
||||||
|
|
||||||
|
Cisco uses 9130 AP
|
||||||
|
show controllers dot11Radio 1 wlan
|
||||||
|
|
||||||
|
AP
|
||||||
|
Command on AP to erase the config:"capwap ap erase all"
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -648,32 +648,29 @@ def main():
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
if (searchap):
|
if (searchap):
|
||||||
pat = "%s\s+(\S+)\s+(\S+)\s+\S+\s+\S+\s+(\S+)\s+(\S+)\s+\(\s*(\S+)\s+dBm\)+\s+(\S+)\*+\s"%(args.ap)
|
pat = "%s\s+(\S+)\s+%s\s+\S+\s+\S+\s+(\S+)\s+(\S+)\s+\(\s*(\S+)\s+dBm\)+\s+(\S+)\*+\s"%(args.ap,args.slot)
|
||||||
m = re.search(pat, line)
|
m = re.search(pat, line)
|
||||||
if (m != None):
|
if (m != None):
|
||||||
cc_slot= m.group(2)
|
cc_mac = m.group(1)
|
||||||
print("cc_slot: {}".format(cc_slot))
|
cc_slot = args.slot
|
||||||
if (args.slot == cc_slot):
|
cc_ch = m.group(5); # (132,136,140,144)
|
||||||
cc_mac = m.group(1)
|
cc_power = m.group(3)
|
||||||
cc_slot = m.group(2)
|
cc_power = cc_power.replace("*/", " of ", 1) # spread-sheets turn 1/8 into a date
|
||||||
cc_ch = m.group(6); # (132,136,140,144)
|
cc_dbm = m.group(4)
|
||||||
cc_power = m.group(4)
|
|
||||||
cc_power = cc_power.replace("*/", " of ", 1) # spread-sheets turn 1/8 into a date
|
|
||||||
cc_dbm = m.group(5)
|
|
||||||
|
|
||||||
cc_ch_count = cc_ch.count(",")
|
cc_ch_count = cc_ch.count(",")
|
||||||
cc_bw = m.group(3)
|
cc_bw = m.group(2)
|
||||||
print("group 1: {} 2: {} 3: {} 4: {} 5: {} 6: {}".format(m.group(1),m.group(2),m.group(3),m.group(4),m.group(5),m.group(6)))
|
print("group 1: {} 2: {} 3: {} 4: {} 5: {} 6: {}".format(m.group(1),m.group(2),m.group(3),m.group(4),m.group(5),m.group(6)))
|
||||||
print("9800 test_parameters_summary: read: tx: {} ch: {} bw: {}".format(tx,ch,bw))
|
print("9800 test_parameters_summary: read: tx: {} ch: {} bw: {}".format(tx,ch,bw))
|
||||||
|
|
||||||
print("9800 test_parameters cc_mac: read : {}".format(cc_mac))
|
print("9800 test_parameters cc_mac: read : {}".format(cc_mac))
|
||||||
print("9800 test_parameters cc_slot: read : {}".format(cc_slot))
|
print("9800 test_parameters cc_slot: read : {}".format(cc_slot))
|
||||||
print("9800 test_parameters cc_count: read : {}".format(cc_ch_count))
|
print("9800 test_parameters cc_count: read : {}".format(cc_ch_count))
|
||||||
print("9800 test_parameters cc_bw: read : {}".format(cc_bw))
|
print("9800 test_parameters cc_bw: read : {}".format(cc_bw))
|
||||||
print("9800 test_parameters cc_power: read : {}".format(cc_power))
|
print("9800 test_parameters cc_power: read : {}".format(cc_power))
|
||||||
print("9800 test_parameters cc_dbm: read : {}".format(cc_dbm))
|
print("9800 test_parameters cc_dbm: read : {}".format(cc_dbm))
|
||||||
print("9800 test_parameters cc_ch: read : {}".format(cc_ch))
|
print("9800 test_parameters cc_ch: read : {}".format(cc_ch))
|
||||||
break
|
break
|
||||||
|
|
||||||
if (cc_dbm == ""):
|
if (cc_dbm == ""):
|
||||||
# Could not talk to controller?
|
# Could not talk to controller?
|
||||||
|
|||||||
Reference in New Issue
Block a user