EasyManuals Logo

Lantronix EMG 8500 User Manual

Lantronix EMG 8500
482 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #273 background imageLoading...
Page #273 background image
12: Scripts
EMGâ„¢ Edge Management Gateway User Guide 273
while True:
output_str = proc.stdout.readline()
if b'RADIUS settings successfully updated' in output_str:
break
elif b'set radius' not in output_str:
# RADIUS command returned an error
s1 = str(output_str)
s2 = s1.split("\\r")[1]
print("RADIUS command returned: " + s2.split("\\n")[0])
proc.stdin.close()
proc.terminate()
proc.wait()
sys.exit(1)
proc.stdin.write(b'set radius state enable\n')
proc.stdin.flush()
while True:
output_str = proc.stdout.readline()
if b'RADIUS settings successfully updated' in output_str:
break
elif b'set radius' not in output_str:
# RADIUS command returned an error
s1 = str(output_str)
s2 = s1.split("\\r")[1]
print("RADIUS command returned: " + s2.split("\\n")[0])
proc.stdin.close()
proc.terminate()
proc.wait()
sys.exit(1)
print("RADIUS settings updated and enabled.")
proc.stdin.close()
proc.terminate()
proc.wait()
sys.exit(0)

Table of Contents

Other manuals for Lantronix EMG 8500

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Lantronix EMG 8500 and is the answer not in the manual?

Lantronix EMG 8500 Specifications

General IconGeneral
BrandLantronix
ModelEMG 8500
CategoryGateway
LanguageEnglish

Related product manuals