cisco_ap_ctl.py: LCS-45 Read AP for Power values

Time out tweaks
This commit is contained in:
Chuck SmileyRekiere
2021-01-22 14:18:47 -07:00
parent 1f7adbe72e
commit 88e3acb9e4

View File

@@ -205,7 +205,7 @@ def main():
if (args.action == "powercfg"): if (args.action == "powercfg"):
logg.info("execute: show controllers dot11Radio 1 powercfg | g T1") logg.info("execute: show controllers dot11Radio 1 powercfg | g T1")
egg.sendline('show controllers dot11Radio 1 powercfg | g T1') egg.sendline('show controllers dot11Radio 1 powercfg | g T1')
i = egg.expect_exact(AP_MORE,timeout=2) i = egg.expect_exact(AP_MORE,timeout=5)
if i == 0: if i == 0:
egg.sendcontrol('c') egg.sendcontrol('c')
if i == 1: if i == 1:
@@ -215,7 +215,7 @@ def main():
else: # no other command at this time so send the same power command else: # no other command at this time so send the same power command
logg.info("no action so execute: show controllers dot11Radio 1 powercfg | g T1") logg.info("no action so execute: show controllers dot11Radio 1 powercfg | g T1")
egg.sendline('show controllers dot11Radio 1 powercfg | g T1') egg.sendline('show controllers dot11Radio 1 powercfg | g T1')
i = egg.expect_exact(AP_MORE,timeout=2) i = egg.expect_exact(AP_MORE,timeout=5)
if i == 0: if i == 0:
egg.sendcontrol('c') egg.sendcontrol('c')
if i == 1: if i == 1: