mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 11:18:03 +00:00
lf_cisco_power.py: LCS-45 Read AP for Power values
ap command fixes
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user