mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 11:48:03 +00:00
cisco_wifi_ctl.py, lf_cisco_power.py : the capturing of output flag
did not work as intended.
This commit is contained in:
@@ -100,7 +100,6 @@ def main():
|
|||||||
parser.add_argument("-t", "--tty", type=str, help="tty serial device")
|
parser.add_argument("-t", "--tty", type=str, help="tty serial device")
|
||||||
parser.add_argument("-l", "--log", type=str, help="logfile for messages, stdout means output to console",default="stdout")
|
parser.add_argument("-l", "--log", type=str, help="logfile for messages, stdout means output to console",default="stdout")
|
||||||
parser.add_argument("--append", action='store_true', help="--append append to logfile file")
|
parser.add_argument("--append", action='store_true', help="--append append to logfile file")
|
||||||
parser.add_argument("--suppress", type=str, help="--suppress output when logging to a file",default="False")
|
|
||||||
#parser.add_argument("-r", "--radio", type=str, help="select radio")
|
#parser.add_argument("-r", "--radio", type=str, help="select radio")
|
||||||
parser.add_argument("-w", "--wlan", type=str, help="wlan name")
|
parser.add_argument("-w", "--wlan", type=str, help="wlan name")
|
||||||
parser.add_argument("-i", "--wlanID", type=str, help="wlan ID")
|
parser.add_argument("-i", "--wlanID", type=str, help="wlan ID")
|
||||||
@@ -127,7 +126,6 @@ def main():
|
|||||||
passwd = args.passwd
|
passwd = args.passwd
|
||||||
logfile = args.log
|
logfile = args.log
|
||||||
append = args.append
|
append = args.append
|
||||||
suppress = args.suppress
|
|
||||||
if (args.band != None):
|
if (args.band != None):
|
||||||
band = args.band
|
band = args.band
|
||||||
if (band == "abgn"):
|
if (band == "abgn"):
|
||||||
@@ -152,9 +150,7 @@ def main():
|
|||||||
file_handler.setLevel(logging.DEBUG)
|
file_handler.setLevel(logging.DEBUG)
|
||||||
file_handler.setFormatter(formatter)
|
file_handler.setFormatter(formatter)
|
||||||
logg.addHandler(file_handler)
|
logg.addHandler(file_handler)
|
||||||
if suppress == "False":
|
logg.addHandler(logging.StreamHandler(sys.stdout))
|
||||||
print("suppress {}".format(suppress))
|
|
||||||
logg.addHandler(logging.StreamHandler(sys.stdout))
|
|
||||||
else:
|
else:
|
||||||
# stdout logging
|
# stdout logging
|
||||||
logging.basicConfig(format=FORMAT, handlers=[console_handler])
|
logging.basicConfig(format=FORMAT, handlers=[console_handler])
|
||||||
|
|||||||
@@ -310,10 +310,8 @@ def main():
|
|||||||
if (args.verbose):
|
if (args.verbose):
|
||||||
# capture the controller output , thus won't got to stdout some output always present
|
# capture the controller output , thus won't got to stdout some output always present
|
||||||
cap_ctl_out = True
|
cap_ctl_out = True
|
||||||
suppress_output = "False"
|
|
||||||
else:
|
else:
|
||||||
cap_ctl_out = False
|
cap_ctl_out = False
|
||||||
suppress_output = "True"
|
|
||||||
|
|
||||||
print("cap_ctl_out {}".format(cap_ctl_out))
|
print("cap_ctl_out {}".format(cap_ctl_out))
|
||||||
# note: there would always be an args.outfile due to the default
|
# note: there would always be an args.outfile due to the default
|
||||||
@@ -702,7 +700,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("3504/9800 cisco_wifi_ctl.py: disable AP {}".format(args.ap))
|
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,
|
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", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
|
"--action", "disable","--series",args.series,"--port", args.port,"--log", outfile_log, "--append" ], capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -717,7 +715,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("9800 cisco_wifi_ctl.py: disable_wlan")
|
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,
|
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", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
|
"--action", "disable_wlan","--series",args.series,"--port", args.port,"--log", outfile_log, "--append" ], capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -728,7 +726,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("9800 cisco_wifi_ctl.py: disable_network_5ghz")
|
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,
|
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", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
|
"--action", "disable_network_5ghz","--series",args.series,"--port", args.port,"--log", outfile_log, "--append" ], capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -740,7 +738,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("9800 cisco_wifi_ctl.py: disable_network_24ghz")
|
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,
|
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", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
|
"--action", "disable_network_24ghz","--series",args.series,"--port", args.port,"--log", outfile_log, "--append" ], capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -752,7 +750,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("9800 cisco_wifi_ctl.py: manual")
|
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,
|
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", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
|
"--action", "manual","--series",args.series,"--port", args.port,"--log", outfile_log, "--append" ], capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -764,7 +762,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("3504 cisco_wifi_ctl.py: config 802.11a disable network")
|
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,
|
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", "--suppress", suppress_output], 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" ], capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -776,7 +774,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("3504 cisco_wifi_ctl.py: config 802.11b disable network")
|
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,
|
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", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
|
"--action", "cmd", "--value", "config 802.11b disable network","--port", args.port,"--log", outfile_log, "--append" ], capture_output=cap_ctl_out, check=True)
|
||||||
|
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
@@ -792,7 +790,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("9800/3504 cisco_wifi_ctl.py: txPower {}".format(tx))
|
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,
|
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,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
|
"--action", "txPower", "--value", tx, "--series" , args.series,"--port", args.port,"--log", outfile_log, "--append" ], capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -808,7 +806,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("9800/3504 cisco_wifi_ctl.py: channel {}".format(ch))
|
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,
|
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", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
|
"--action", "channel", "--value", ch, "--series" , args.series,"--port", args.port,"--log", outfile_log, "--append" ], capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -822,7 +820,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("9800/3504 cisco_wifi_ctl.py: bandwidth {}".format(bw))
|
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,
|
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", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
|
"--action", "bandwidth", "--value", bw, "--series" , args.series,"--port", args.port,"--log", outfile_log, "--append" ], capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -841,7 +839,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("9800 cisco_wifi_ctl.py: create_wlan wlan {} wlanID {} port {}".format(args.wlan, args.wlanID, args.port))
|
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,
|
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", "--suppress", suppress_output], 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" ], capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -853,7 +851,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("9800 cisco_wifi_ctl.py: wireless_tag_policy")
|
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,
|
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", "--wlan", args.wlan, "--series", args.series, "--wlanID", args.wlanID, "--series",args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
|
"--action", "wireless_tag_policy", "--wlan", args.wlan, "--series", args.series, "--wlanID", args.wlanID, "--series",args.series,"--port", args.port,"--log", outfile_log, "--append" ], capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -864,7 +862,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("9800 cisco_wifi_ctl.py: enable_wlan")
|
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,
|
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", "--wlan", args.wlan, "--wlanID", args.wlanID, "--series",args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
|
"--action", "enable_wlan", "--wlan", args.wlan, "--wlanID", args.wlanID, "--series",args.series,"--port", args.port,"--log", outfile_log, "--append" ], capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -878,7 +876,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("9800 cisco_wifi_ctl.py: enable_network_5ghz")
|
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,
|
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", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
|
"--action", "enable_network_5ghz","--series",args.series,"--port", args.port,"--log", outfile_log, "--append" ], capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -890,7 +888,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("9800 cisco_wifi_ctl.py: enable_network_24ghz")
|
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,
|
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", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
|
"--action", "enable_network_24ghz","--series",args.series,"--port", args.port,"--log", outfile_log, "--append" ], capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -902,7 +900,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("3504 cisco_wifi_ctl.py: config 802.11a enable network")
|
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,
|
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", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
|
"--action", "cmd", "--value", "config 802.11a enable network","--port", args.port,"--log", outfile_log, "--append" ], capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -914,7 +912,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("3504 cisco_wifi_ctl.py: config 802.11a enable network")
|
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,
|
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", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
|
"--action", "cmd", "--value", "config 802.11b enable network","--port", args.port,"--log", outfile_log, "--append" ], capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -926,7 +924,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("9800/3504 cisco_wifi_ctl.py: enable")
|
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,
|
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", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
|
"--action", "enable", "--series" , args.series,"--port", args.port,"--log", outfile_log, "--append" ], capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -1007,7 +1005,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("9800 cisco_wifi_ctl.py: show_wlan_summary")
|
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,
|
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", "--suppress", suppress_output], capture_output=True, check=True)
|
"--action", "show_wlan_summary","--series" , args.series,"--port", args.port,"--log", outfile_log, "--append" ], capture_output=True, check=True)
|
||||||
pss = wlan_summary.stdout.decode('utf-8', 'ignore')
|
pss = wlan_summary.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
except subprocess.CalledProcessError as process_error:
|
except subprocess.CalledProcessError as process_error:
|
||||||
@@ -1579,7 +1577,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("9800/3504 cisco_wifi_ctl.py: disable AP {}".format(args.ap))
|
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,
|
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", "--suppress", suppress_output],capture_output=cap_ctl_out, check=True)
|
"--action", "disable", "--series" , args.series,"--port", args.port,"--log", outfile_log, "--append" ],capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -1593,7 +1591,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("9800 cisco_wifi_ctl.py: no_wlan_wireless_tag_policy")
|
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,
|
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", "--wlan", args.wlan, "--series", "--wlanID", args.wlanID, args.series,"--port", args.port,"--log", outfile_log, "--append", "--suppress", suppress_output], capture_output=cap_ctl_out, check=True)
|
"--action", "no_wlan_wireless_tag_policy", "--wlan", args.wlan, "--series", "--wlanID", args.wlanID, args.series,"--port", args.port,"--log", outfile_log, "--append" ], capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -1605,7 +1603,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("9800 cisco_wifi_ctl.py: delete_wlan")
|
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,
|
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", "--suppress", suppress_output], 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" ], capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -1617,7 +1615,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("9800 cisco_wifi_ctl.py: disable_network_5ghz")
|
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,
|
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", "--suppress", suppress_output],capture_output=cap_ctl_out, check=True)
|
"--action", "disable_network_5ghz","--series",args.series,"--port", args.port,"--log", outfile_log, "--append" ],capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -1629,7 +1627,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("9800 cisco_wifi_ctl.py: disable_network_24ghz")
|
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,
|
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", "--suppress", suppress_output],capture_output=cap_ctl_out, check=True)
|
"--action", "disable_network_24ghz","--series",args.series,"--port", args.port,"--log", outfile_log, "--append" ],capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -1642,7 +1640,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("3504 cisco_wifi_ctl.py: config 802.11a disable network")
|
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,
|
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", "--suppress", suppress_output],capture_output=cap_ctl_out, check=True)
|
"--action", "cmd", "--value", "config 802.11a disable network","--port", args.port,"--log", outfile_log, "--append" ],capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -1654,7 +1652,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("3504 cisco_wifi_ctl.py: config 802.11b disable network")
|
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,
|
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", "--suppress", suppress_output],capture_output=cap_ctl_out, check=True)
|
"--action", "cmd", "--value", "config 802.11b disable network","--port", args.port,"--log", outfile_log, "--append" ],capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -1667,7 +1665,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("9800/3504 cisco_wifi_ctl.py: txPower tx 1")
|
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,
|
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", "--suppress", suppress_output],capture_output=cap_ctl_out, check=True)
|
"--action", "txPower", "--value", "1", "--series" , args.series,"--port", args.port,"--log", outfile_log, "--append" ],capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -1681,7 +1679,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("9800/3504 cisco_wifi_ctl.py: channel 36")
|
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,
|
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", "--suppress", suppress_output],capture_output=cap_ctl_out, check=True)
|
"--action", "channel", "--value", "36", "--series" , args.series,"--port", args.port,"--log", outfile_log, "--append" ],capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -1694,7 +1692,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("9800/3504 cisco_wifi_ctl.py: bandwidth 20")
|
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,
|
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", "--suppress", suppress_output],capture_output=cap_ctl_out, check=True)
|
"--action", "bandwidth", "--value", "20", "--series" , args.series,"--port", args.port,"--log", outfile_log, "--append" ],capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -1707,7 +1705,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("9800 cisco_wifi_ctl.py: enable_network_5ghz")
|
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,
|
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", "--suppress", suppress_output],capture_output=cap_ctl_out, check=True)
|
"--action", "enable_network_5ghz","--series",args.series,"--port", args.port,"--log", outfile_log, "--append" ],capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -1719,7 +1717,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("9800 cisco_wifi_ctl.py: enable_network_24ghz")
|
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,
|
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", "--suppress", suppress_output],capture_output=cap_ctl_out, check=True)
|
"--action", "enable_network_24ghz","--series",args.series,"--port", args.port,"--log", outfile_log, "--append" ],capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -1731,7 +1729,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("9800 cisco_wifi_ctl.py: auto")
|
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,
|
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", "--suppress", suppress_output],capture_output=cap_ctl_out, check=True)
|
"--action", "auto","--series",args.series,"--port", args.port,"--log", outfile_log, "--append" ],capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -1744,7 +1742,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("3504 cisco_wifi_ctl.py: config 802.11a enable network")
|
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,
|
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", "--suppress", suppress_output],capture_output=cap_ctl_out, check=True)
|
"--action", "cmd", "--value", "config 802.11a enable network","--port", args.port,"--log", outfile_log, "--append" ],capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -1756,7 +1754,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("3504 cisco_wifi_ctl.py: config 802.11b enable network")
|
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,
|
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", "--suppress", suppress_output],capture_output=cap_ctl_out, check=True)
|
"--action", "cmd", "--value", "config 802.11b enable network","--port", args.port,"--log", outfile_log, "--append" ],capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
@@ -1768,7 +1766,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
logg.info("9800/3504 cisco_wifi_ctl.py: enable")
|
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,
|
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", "--suppress", suppress_output],capture_output=cap_ctl_out, check=True)
|
"--action", "enable", "--series" , args.series,"--port", args.port,"--log", outfile_log, "--append" ],capture_output=cap_ctl_out, check=True)
|
||||||
if cap_ctl_out:
|
if cap_ctl_out:
|
||||||
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
pss = ctl_output.stdout.decode('utf-8', 'ignore')
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
|
|||||||
Reference in New Issue
Block a user