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

ap command fixes
This commit is contained in:
Chuck SmileyRekiere
2021-01-22 12:19:48 -07:00
parent 0efcf1f162
commit 5d18d9c0cd

View File

@@ -1586,12 +1586,14 @@ def main():
DAA_N_TX = None
DAA_Total_pwr = None
if(bool(ap_dict)):
logg.info("ap_dict {}".format(ap_dict))
logg.info("Read AP ap_scheme: {} ap_ip: {} ap_port: {} ap_user: {} ap_pw: {}".format(ap_dict['ap_scheme'],ap_dict['ap_ip'],ap_dict["ap_port"],
ap_dict['ap_user'],ap_dict['ap_pw']))
try:
logg.info("cisco_ap_ctl.py: no_logging_console")
logg.info("cisco_ap_ctl.py: read AP power information")
logg.info()
ap_info= subprocess.run(["./cisco_ap_ctl.py", "--scheme", ap_dict['ap_scheme'], "--prompt", ap_dict['ap_prompt'],"--dest", ap_dict['ap_ip'], "--port", ap_dict["ap_port"],
"-user", ap_dict['ap_user'], "-passwd", ap_dict['ap_pw'],"--action", "powercfg"],capture_output=True, check=True)
"--user", ap_dict['ap_user'], "--passwd", ap_dict['ap_pw'],"--action", "powercfg"],capture_output=True, check=True)
pss = ap_info.stdout.decode('utf-8', 'ignore');
logg.info(pss)
for line in pss.splitlines():