mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-03 20:27:54 +00:00 
			
		
		
		
	lf_cisco_power.py : second commit to request to suppress output
This commit is contained in:
		@@ -702,7 +702,7 @@ def main():
 | 
			
		||||
                   try:
 | 
			
		||||
                       logg.info("3504/9800 cisco_wifi_ctl.py: disable AP {}".format(args.ap))
 | 
			
		||||
                       ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                                       "--action", "disable","--series",args.series,"--port", args.port,"--log", outfile_log, "--append"], capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                                       "--action", "disable","--series",args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                       if cap_ctl_out:   
 | 
			
		||||
                          pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
                          logg.info(pss) 
 | 
			
		||||
@@ -717,7 +717,7 @@ def main():
 | 
			
		||||
                       try:
 | 
			
		||||
                          logg.info("9800 cisco_wifi_ctl.py: disable_wlan")
 | 
			
		||||
                          ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                                   "--action", "disable_wlan","--series",args.series,"--port", args.port,"--log", outfile_log, "--append"], capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                                   "--action", "disable_wlan","--series",args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                          if cap_ctl_out:   
 | 
			
		||||
                             pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
                             logg.info(pss) 
 | 
			
		||||
@@ -728,7 +728,7 @@ def main():
 | 
			
		||||
                       try:
 | 
			
		||||
                          logg.info("9800 cisco_wifi_ctl.py: disable_network_5ghz")
 | 
			
		||||
                          ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                                   "--action", "disable_network_5ghz","--series",args.series,"--port", args.port,"--log", outfile_log, "--append"], capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                                   "--action", "disable_network_5ghz","--series",args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                          if cap_ctl_out:   
 | 
			
		||||
                             pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
                             logg.info(pss) 
 | 
			
		||||
@@ -740,7 +740,7 @@ def main():
 | 
			
		||||
                       try:
 | 
			
		||||
                          logg.info("9800 cisco_wifi_ctl.py: disable_network_24ghz")
 | 
			
		||||
                          ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                                   "--action", "disable_network_24ghz","--series",args.series,"--port", args.port,"--log", outfile_log, "--append"], capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                                   "--action", "disable_network_24ghz","--series",args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                          if cap_ctl_out:   
 | 
			
		||||
                             pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
                             logg.info(pss) 
 | 
			
		||||
@@ -752,7 +752,7 @@ def main():
 | 
			
		||||
                       try:
 | 
			
		||||
                          logg.info("9800 cisco_wifi_ctl.py: manual")
 | 
			
		||||
                          ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                                   "--action", "manual","--series",args.series,"--port", args.port,"--log", outfile_log, "--append"], capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                                   "--action", "manual","--series",args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                          if cap_ctl_out:   
 | 
			
		||||
                             pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
                             logg.info(pss) 
 | 
			
		||||
@@ -764,7 +764,7 @@ def main():
 | 
			
		||||
                       try:
 | 
			
		||||
                          logg.info("3504 cisco_wifi_ctl.py: config 802.11a disable network")
 | 
			
		||||
                          ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                                   "--action", "cmd", "--value", "config 802.11a disable network","--series",args.series,"--port", args.port,"--log", outfile_log, "--append"], capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                                   "--action", "cmd", "--value", "config 802.11a disable network","--series",args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                          if cap_ctl_out:   
 | 
			
		||||
                             pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
                             logg.info(pss) 
 | 
			
		||||
@@ -776,7 +776,7 @@ def main():
 | 
			
		||||
                       try:
 | 
			
		||||
                          logg.info("3504 cisco_wifi_ctl.py: config 802.11b disable network")
 | 
			
		||||
                          ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                                   "--action", "cmd", "--value", "config 802.11b disable network","--port", args.port,"--log", outfile_log, "--append"], capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                                   "--action", "cmd", "--value", "config 802.11b disable network","--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                         
 | 
			
		||||
                          if cap_ctl_out:   
 | 
			
		||||
                             pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
@@ -792,7 +792,7 @@ def main():
 | 
			
		||||
                       try:
 | 
			
		||||
                          logg.info("9800/3504 cisco_wifi_ctl.py: txPower {}".format(tx))
 | 
			
		||||
                          ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                                       "--action", "txPower", "--value", tx, "--series" , args.series,"--port", args.port], capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                                       "--action", "txPower", "--value", tx, "--series" , args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                          if cap_ctl_out:   
 | 
			
		||||
                             pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
                             logg.info(pss) 
 | 
			
		||||
@@ -808,7 +808,7 @@ def main():
 | 
			
		||||
                       try:
 | 
			
		||||
                          logg.info("9800/3504 cisco_wifi_ctl.py: channel {}".format(ch))
 | 
			
		||||
                          ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                                       "--action", "channel", "--value", ch, "--series" , args.series,"--port", args.port,"--log", outfile_log, "--append"], capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                                       "--action", "channel", "--value", ch, "--series" , args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                          if cap_ctl_out:   
 | 
			
		||||
                             pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
                             logg.info(pss) 
 | 
			
		||||
@@ -822,7 +822,7 @@ def main():
 | 
			
		||||
                       try:
 | 
			
		||||
                          logg.info("9800/3504 cisco_wifi_ctl.py: bandwidth {}".format(bw))
 | 
			
		||||
                          ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                                       "--action", "bandwidth", "--value", bw, "--series" , args.series,"--port", args.port,"--log", outfile_log, "--append"], capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                                       "--action", "bandwidth", "--value", bw, "--series" , args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                          if cap_ctl_out:   
 | 
			
		||||
                             pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
                             logg.info(pss) 
 | 
			
		||||
@@ -841,7 +841,7 @@ def main():
 | 
			
		||||
                          try:
 | 
			
		||||
                              logg.info("9800 cisco_wifi_ctl.py: create_wlan wlan {} wlanID {} port {}".format(args.wlan, args.wlanID, args.port))
 | 
			
		||||
                              ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                                      "--action", "create_wlan","--series",args.series, "--wlan", args.wlan, "--wlanID", args.wlanID,"--port", args.port,"--log", outfile_log, "--append"], capture_output=cap_ctl_out, check=True)    
 | 
			
		||||
                                      "--action", "create_wlan","--series",args.series, "--wlan", args.wlan, "--wlanID", args.wlanID,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)    
 | 
			
		||||
                              if cap_ctl_out:   
 | 
			
		||||
                                 pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
                                 logg.info(pss) 
 | 
			
		||||
@@ -853,7 +853,7 @@ def main():
 | 
			
		||||
                          try:
 | 
			
		||||
                              logg.info("9800 cisco_wifi_ctl.py: wireless_tag_policy")
 | 
			
		||||
                              ctl_output =subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                                      "--action", "wireless_tag_policy","--series",args.series,"--port", args.port,"--log", outfile_log, "--append"], capture_output=cap_ctl_out, check=True) 
 | 
			
		||||
                                      "--action", "wireless_tag_policy","--series",args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True) 
 | 
			
		||||
                              if cap_ctl_out:   
 | 
			
		||||
                                 pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
                                 logg.info(pss) 
 | 
			
		||||
@@ -864,7 +864,7 @@ def main():
 | 
			
		||||
                       try:
 | 
			
		||||
                          logg.info("9800 cisco_wifi_ctl.py: enable_wlan")
 | 
			
		||||
                          ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                                   "--action", "enable_wlan","--series",args.series,"--port", args.port,"--log", outfile_log, "--append"], capture_output=cap_ctl_out, check=True)                 
 | 
			
		||||
                                   "--action", "enable_wlan","--series",args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)                 
 | 
			
		||||
                          if cap_ctl_out:   
 | 
			
		||||
                              pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
                              logg.info(pss) 
 | 
			
		||||
@@ -878,7 +878,7 @@ def main():
 | 
			
		||||
                       try:  
 | 
			
		||||
                          logg.info("9800 cisco_wifi_ctl.py: enable_network_5ghz")
 | 
			
		||||
                          ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                                   "--action", "enable_network_5ghz","--series",args.series,"--port", args.port,"--log", outfile_log, "--append"], capture_output=cap_ctl_out, check=True)   
 | 
			
		||||
                                   "--action", "enable_network_5ghz","--series",args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)   
 | 
			
		||||
                          if cap_ctl_out:   
 | 
			
		||||
                            pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
                            logg.info(pss) 
 | 
			
		||||
@@ -890,7 +890,7 @@ def main():
 | 
			
		||||
                       try:
 | 
			
		||||
                          logg.info("9800 cisco_wifi_ctl.py: enable_network_24ghz")
 | 
			
		||||
                          ctl_output =subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                                   "--action", "enable_network_24ghz","--series",args.series,"--port", args.port,"--log", outfile_log, "--append"], capture_output=cap_ctl_out, check=True)                 
 | 
			
		||||
                                   "--action", "enable_network_24ghz","--series",args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)                 
 | 
			
		||||
                          if cap_ctl_out:   
 | 
			
		||||
                              pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
                              logg.info(pss) 
 | 
			
		||||
@@ -902,7 +902,7 @@ def main():
 | 
			
		||||
                       try:
 | 
			
		||||
                          logg.info("3504 cisco_wifi_ctl.py: config 802.11a enable network")
 | 
			
		||||
                          ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                                   "--action", "cmd", "--value", "config 802.11a enable network","--port", args.port,"--log", outfile_log, "--append"], capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                                   "--action", "cmd", "--value", "config 802.11a enable network","--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                          if cap_ctl_out:   
 | 
			
		||||
                              pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
                              logg.info(pss) 
 | 
			
		||||
@@ -914,7 +914,7 @@ def main():
 | 
			
		||||
                       try:
 | 
			
		||||
                          logg.info("3504 cisco_wifi_ctl.py: config 802.11a enable network")
 | 
			
		||||
                          ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                                   "--action", "cmd", "--value", "config 802.11b enable network","--port", args.port,"--log", outfile_log, "--append"], capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                                   "--action", "cmd", "--value", "config 802.11b enable network","--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                          if cap_ctl_out:   
 | 
			
		||||
                              pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
                              logg.info(pss) 
 | 
			
		||||
@@ -926,7 +926,7 @@ def main():
 | 
			
		||||
                   try: 
 | 
			
		||||
                      logg.info("9800/3504 cisco_wifi_ctl.py: enable")
 | 
			
		||||
                      ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                                   "--action", "enable", "--series" , args.series,"--port", args.port,"--log", outfile_log, "--append"], capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                                   "--action", "enable", "--series" , args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                      if cap_ctl_out:   
 | 
			
		||||
                         pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
                         logg.info(pss) 
 | 
			
		||||
@@ -947,7 +947,7 @@ def main():
 | 
			
		||||
                          try:
 | 
			
		||||
                             logg.info("9800 cisco_wifi_ctl.py: advanced")
 | 
			
		||||
                             advanced = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                                                 "--action", "advanced","--series" , args.series,"--port", args.port,"--log", outfile_log, "--append"], capture_output=True, check=True)
 | 
			
		||||
                                                 "--action", "advanced","--series" , args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=True, check=True)
 | 
			
		||||
                             pss = advanced.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
                             logg.info(pss)
 | 
			
		||||
                          except subprocess.CalledProcessError as process_error:
 | 
			
		||||
@@ -1007,7 +1007,7 @@ def main():
 | 
			
		||||
                       try:
 | 
			
		||||
                          logg.info("9800 cisco_wifi_ctl.py: show_wlan_summary")
 | 
			
		||||
                          wlan_summary = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                                              "--action", "show_wlan_summary","--series" , args.series,"--port", args.port,"--log", outfile_log, "--append"], capture_output=True, check=True)
 | 
			
		||||
                                              "--action", "show_wlan_summary","--series" , args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=True, check=True)
 | 
			
		||||
                          pss = wlan_summary.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
                          logg.info(pss)
 | 
			
		||||
                       except subprocess.CalledProcessError as process_error:
 | 
			
		||||
@@ -1016,7 +1016,7 @@ def main():
 | 
			
		||||
                       try:
 | 
			
		||||
                           logg.info("3504 cisco_wifi_ctl.py: advanced")
 | 
			
		||||
                           advanced = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                                              "--action", "advanced","--port", args.port,"--log", outfile_log, "--append"], capture_output=True, check=True)
 | 
			
		||||
                                              "--action", "advanced","--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=True, check=True)
 | 
			
		||||
                           pss = advanced.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
                           logg.info(pss)
 | 
			
		||||
                       except subprocess.CalledProcessError as process_error:
 | 
			
		||||
@@ -1115,7 +1115,7 @@ def main():
 | 
			
		||||
                               try:
 | 
			
		||||
                                  logg.info("9800 cisco_wifi_ctl.py: advanced")
 | 
			
		||||
                                  advanced = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                                              "--action", "advanced","--series" , args.series,"--port", args.port,"--log", outfile_log, "--append"], capture_output=True, check=True)
 | 
			
		||||
                                              "--action", "advanced","--series" , args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=True, check=True)
 | 
			
		||||
                                  pss = advanced.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
                                  logg.info(pss)
 | 
			
		||||
                               except subprocess.CalledProcessError as process_error:
 | 
			
		||||
@@ -1551,7 +1551,7 @@ def main():
 | 
			
		||||
       try:
 | 
			
		||||
          logg.info("9800/3504 cisco_wifi_ctl.py: advanced")
 | 
			
		||||
          advanced = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
             "--action", "advanced","--series" , args.series,"--port", args.port,"--log", outfile_log, "--append"], capture_output=True, check=True)
 | 
			
		||||
             "--action", "advanced","--series" , args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=True, check=True)
 | 
			
		||||
          pss = advanced.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
          logg.info(pss)
 | 
			
		||||
       except subprocess.CalledProcessError as process_error:
 | 
			
		||||
@@ -1560,7 +1560,7 @@ def main():
 | 
			
		||||
       try:
 | 
			
		||||
          logg.info("9800/3504 cisco_wifi_ctl.py: summary")
 | 
			
		||||
          advanced = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
             "--action", "summary","--series" , args.series,"--port", args.port,"--log", outfile_log, "--append"], capture_output=True, check=True)
 | 
			
		||||
             "--action", "summary","--series" , args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=True, check=True)
 | 
			
		||||
          pss = advanced.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
          logg.info(pss)
 | 
			
		||||
       except subprocess.CalledProcessError as process_error:
 | 
			
		||||
@@ -1579,7 +1579,7 @@ def main():
 | 
			
		||||
   try:
 | 
			
		||||
      logg.info("9800/3504 cisco_wifi_ctl.py: disable AP {}".format(args.ap))
 | 
			
		||||
      ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                   "--action", "disable", "--series" , args.series,"--port", args.port,"--log", outfile_log, "--append"],capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                   "--action", "disable", "--series" , args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output],capture_output=cap_ctl_out, check=True)
 | 
			
		||||
      if cap_ctl_out:
 | 
			
		||||
          pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
          logg.info(pss)
 | 
			
		||||
@@ -1593,7 +1593,7 @@ def main():
 | 
			
		||||
       try:
 | 
			
		||||
          logg.info("9800 cisco_wifi_ctl.py: no_wlan_wireless_tag_policy")
 | 
			
		||||
          ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                          "--action", "no_wlan_wireless_tag_policy","--series",args.series,"--port", args.port,"--log", outfile_log, "--append"], capture_output=cap_ctl_out, check=True) 
 | 
			
		||||
                          "--action", "no_wlan_wireless_tag_policy","--series",args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True) 
 | 
			
		||||
          if cap_ctl_out:
 | 
			
		||||
             pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
             logg.info(pss)
 | 
			
		||||
@@ -1605,7 +1605,7 @@ def main():
 | 
			
		||||
       try:
 | 
			
		||||
          logg.info("9800 cisco_wifi_ctl.py: delete_wlan")
 | 
			
		||||
          ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                      "--action", "delete_wlan","--series",args.series, "--wlan", args.wlan, "--wlanID", args.wlanID,"--port", args.port,"--log", outfile_log, "--append"], capture_output=cap_ctl_out, check=True)    
 | 
			
		||||
                      "--action", "delete_wlan","--series",args.series, "--wlan", args.wlan, "--wlanID", args.wlanID,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)    
 | 
			
		||||
          if cap_ctl_out:
 | 
			
		||||
             pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
             logg.info(pss)
 | 
			
		||||
@@ -1617,7 +1617,7 @@ def main():
 | 
			
		||||
       try:
 | 
			
		||||
          logg.info("9800 cisco_wifi_ctl.py: disable_network_5ghz")
 | 
			
		||||
          ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                                   "--action", "disable_network_5ghz","--series",args.series,"--port", args.port,"--log", outfile_log, "--append"],capture_output=cap_ctl_out, check=True)      
 | 
			
		||||
                                   "--action", "disable_network_5ghz","--series",args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output],capture_output=cap_ctl_out, check=True)      
 | 
			
		||||
          if cap_ctl_out:
 | 
			
		||||
             pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
             logg.info(pss)
 | 
			
		||||
@@ -1629,7 +1629,7 @@ def main():
 | 
			
		||||
       try:
 | 
			
		||||
          logg.info("9800 cisco_wifi_ctl.py: disable_network_24ghz")
 | 
			
		||||
          ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                                   "--action", "disable_network_24ghz","--series",args.series,"--port", args.port,"--log", outfile_log, "--append"],capture_output=cap_ctl_out, check=True)                 
 | 
			
		||||
                                   "--action", "disable_network_24ghz","--series",args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output],capture_output=cap_ctl_out, check=True)                 
 | 
			
		||||
          if cap_ctl_out:
 | 
			
		||||
             pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
             logg.info(pss)
 | 
			
		||||
@@ -1642,7 +1642,7 @@ def main():
 | 
			
		||||
       try:
 | 
			
		||||
          logg.info("3504 cisco_wifi_ctl.py: config 802.11a disable network")
 | 
			
		||||
          ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                   "--action", "cmd", "--value", "config 802.11a disable network","--port", args.port,"--log", outfile_log, "--append"],capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                   "--action", "cmd", "--value", "config 802.11a disable network","--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output],capture_output=cap_ctl_out, check=True)
 | 
			
		||||
          if cap_ctl_out:
 | 
			
		||||
             pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
             logg.info(pss)
 | 
			
		||||
@@ -1654,7 +1654,7 @@ def main():
 | 
			
		||||
       try:
 | 
			
		||||
          logg.info("3504 cisco_wifi_ctl.py: config 802.11b disable network")
 | 
			
		||||
          ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                   "--action", "cmd", "--value", "config 802.11b disable network","--port", args.port,"--log", outfile_log, "--append"],capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                   "--action", "cmd", "--value", "config 802.11b disable network","--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output],capture_output=cap_ctl_out, check=True)
 | 
			
		||||
          if cap_ctl_out:
 | 
			
		||||
             pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
             logg.info(pss)
 | 
			
		||||
@@ -1667,7 +1667,7 @@ def main():
 | 
			
		||||
       try: 
 | 
			
		||||
          logg.info("9800/3504 cisco_wifi_ctl.py: txPower tx 1")
 | 
			
		||||
          ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                       "--action", "txPower", "--value", "1", "--series" , args.series,"--port", args.port,"--log", outfile_log, "--append"],capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                       "--action", "txPower", "--value", "1", "--series" , args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output],capture_output=cap_ctl_out, check=True)
 | 
			
		||||
          if cap_ctl_out:
 | 
			
		||||
             pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
             logg.info(pss)
 | 
			
		||||
@@ -1681,7 +1681,7 @@ def main():
 | 
			
		||||
       try:
 | 
			
		||||
          logg.info("9800/3504 cisco_wifi_ctl.py: channel 36")
 | 
			
		||||
          ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                       "--action", "channel", "--value", "36", "--series" , args.series,"--port", args.port,"--log", outfile_log, "--append"],capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                       "--action", "channel", "--value", "36", "--series" , args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output],capture_output=cap_ctl_out, check=True)
 | 
			
		||||
          if cap_ctl_out:
 | 
			
		||||
             pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
             logg.info(pss)
 | 
			
		||||
@@ -1694,7 +1694,7 @@ def main():
 | 
			
		||||
       try:
 | 
			
		||||
          logg.info("9800/3504 cisco_wifi_ctl.py: bandwidth 20")
 | 
			
		||||
          ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                       "--action", "bandwidth", "--value", "20", "--series" , args.series,"--port", args.port,"--log", outfile_log, "--append"],capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                       "--action", "bandwidth", "--value", "20", "--series" , args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output],capture_output=cap_ctl_out, check=True)
 | 
			
		||||
          if cap_ctl_out:
 | 
			
		||||
             pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
             logg.info(pss)
 | 
			
		||||
@@ -1707,7 +1707,7 @@ def main():
 | 
			
		||||
       try:
 | 
			
		||||
          logg.info("9800 cisco_wifi_ctl.py: enable_network_5ghz")
 | 
			
		||||
          ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                                   "--action", "enable_network_5ghz","--series",args.series,"--port", args.port,"--log", outfile_log, "--append"],capture_output=cap_ctl_out, check=True)         
 | 
			
		||||
                                   "--action", "enable_network_5ghz","--series",args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output],capture_output=cap_ctl_out, check=True)         
 | 
			
		||||
          if cap_ctl_out:
 | 
			
		||||
             pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
             logg.info(pss)
 | 
			
		||||
@@ -1719,7 +1719,7 @@ def main():
 | 
			
		||||
       try:
 | 
			
		||||
          logg.info("9800 cisco_wifi_ctl.py: enable_network_24ghz")
 | 
			
		||||
          ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                                   "--action", "enable_network_24ghz","--series",args.series,"--port", args.port,"--log", outfile_log, "--append"],capture_output=cap_ctl_out, check=True) 
 | 
			
		||||
                                   "--action", "enable_network_24ghz","--series",args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output],capture_output=cap_ctl_out, check=True) 
 | 
			
		||||
          if cap_ctl_out:
 | 
			
		||||
             pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
             logg.info(pss)
 | 
			
		||||
@@ -1731,7 +1731,7 @@ def main():
 | 
			
		||||
       try:
 | 
			
		||||
          logg.info("9800 cisco_wifi_ctl.py: auto")
 | 
			
		||||
          ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                                   "--action", "auto","--series",args.series,"--port", args.port,"--log", outfile_log, "--append"],capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                                   "--action", "auto","--series",args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output],capture_output=cap_ctl_out, check=True)
 | 
			
		||||
          if cap_ctl_out:
 | 
			
		||||
             pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
             logg.info(pss)
 | 
			
		||||
@@ -1744,7 +1744,7 @@ def main():
 | 
			
		||||
       try:
 | 
			
		||||
          logg.info("3504 cisco_wifi_ctl.py: config 802.11a enable network")
 | 
			
		||||
          ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                   "--action", "cmd", "--value", "config 802.11a enable network","--port", args.port,"--log", outfile_log, "--append"],capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                   "--action", "cmd", "--value", "config 802.11a enable network","--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output],capture_output=cap_ctl_out, check=True)
 | 
			
		||||
          if cap_ctl_out:
 | 
			
		||||
             pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
             logg.info(pss)
 | 
			
		||||
@@ -1756,7 +1756,7 @@ def main():
 | 
			
		||||
       try:
 | 
			
		||||
          logg.info("3504 cisco_wifi_ctl.py: config 802.11b enable network")
 | 
			
		||||
          ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                   "--action", "cmd", "--value", "config 802.11b enable network","--port", args.port,"--log", outfile_log, "--append"],capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                   "--action", "cmd", "--value", "config 802.11b enable network","--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output],capture_output=cap_ctl_out, check=True)
 | 
			
		||||
          if cap_ctl_out:
 | 
			
		||||
             pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
             logg.info(pss)
 | 
			
		||||
@@ -1768,7 +1768,7 @@ def main():
 | 
			
		||||
   try:
 | 
			
		||||
      logg.info("9800/3504 cisco_wifi_ctl.py: enable")
 | 
			
		||||
      ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                   "--action", "enable", "--series" , args.series,"--port", args.port,"--log", outfile_log, "--append"],capture_output=cap_ctl_out, check=True)
 | 
			
		||||
                   "--action", "enable", "--series" , args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output],capture_output=cap_ctl_out, check=True)
 | 
			
		||||
      if cap_ctl_out:
 | 
			
		||||
         pss = ctl_output.stdout.decode('utf-8', 'ignore')
 | 
			
		||||
         logg.info(pss)
 | 
			
		||||
@@ -1789,7 +1789,7 @@ def main():
 | 
			
		||||
   try:
 | 
			
		||||
      logg.info("9800/3504 cisco_wifi_ctl.py: advanced")
 | 
			
		||||
      advanced = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                              "--action", "advanced", "--series" , args.series,"--port", args.port,"--log", outfile_log, "--append"], capture_output=True, check=True)
 | 
			
		||||
                              "--action", "advanced", "--series" , args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=True, check=True)
 | 
			
		||||
      pss = advanced.stdout.decode('utf-8', 'ignore');
 | 
			
		||||
      logg.info(pss)
 | 
			
		||||
   except subprocess.CalledProcessError as process_error:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user