extremenetworks / exos_apps Goto Github PK
View Code? Open in Web Editor NEWApplications for use with EXOS and Chalet
Applications for use with EXOS and Chalet
Small issue, running python 3.9.12 and got the SyntaxError above.
Simply had to put () around each of the print statements and worked perfectly.
Hello support.
There is a problem when running the ezspantree.py script in the firmware version EXOS 22.5.1.7-patch1-3. (Recommended at the compatibility-matrices ExtremeNetworks' Web)
We run the script and get this error:
(Stack of 3 X440-G2)
Slot-1 SW-OVI-1.54 # run script ezspantree.py start
Traceback (most recent call last):
File "/exos/tools/lib/python2.7/site-packages/ezspantree.py", line 910, in
a = EzStpdScript()
File "/exos/tools/lib/python2.7/site-packages/ezspantree.py", line 286, in init
super(EzStpdScript, self).init()
File "/exos/tools/lib/python2.7/site-packages/ezspantree.py", line 213, in init
handler = RotatingFileHandler(LOG_FILENAME, mode='w', maxBytes=100*1024, backupCount=3)
File "/exos/tools/lib/python2.7/logging/handlers.py", line 118, in init
File "/exos/tools/lib/python2.7/logging/handlers.py", line 65, in init
File "/exos/tools/lib/python2.7/logging/init.py", line 897, in init
File "/exos/tools/lib/python2.7/logging/init.py", line 916, in _open
IOError: [Errno 2] No such file or directory: '/usr/local/cfg/cc_logs/ezspantree.txt'
I did try to run it in an standalone X460-G2 (22.5.1.7-patch1-3), and got this error:
EXOS_LAB.12 #run script ezspantree.py start
Traceback (most recent call last):
File "/exos/tools/lib/python2.7/site-packages/ezspantree.py", line 910, in
a = EzStpdScript()
File "/exos/tools/lib/python2.7/site-packages/ezspantree.py", line 286, in init
super(EzStpdScript, self).init()
File "/exos/tools/lib/python2.7/site-packages/ezspantree.py", line 213, in init
handler = RotatingFileHandler(LOG_FILENAME, mode='w', maxBytes=100*1024, backupCount=3)
File "/exos/tools/lib/python2.7/logging/handlers.py", line 118, in init
File "/exos/tools/lib/python2.7/logging/handlers.py", line 65, in init
File "/exos/tools/lib/python2.7/logging/init.py", line 897, in init
File "/exos/tools/lib/python2.7/logging/init.py", line 916, in _open
IOError: [Errno 13] Permission denied: '/usr/local/cfg/cc_logs/ezspantree.txt'
I did try with version 22.5.1.7-patch1-2, and works ok.
---> 22.5.1.7-patch1-3 FAILs!
I did try with version 22.6.1.4-patch1-1, and works ok.
Thanks and best regards.
Daniel Delgado.
When using the jasonrpc.py script with RADIUS MGMT enabled on EXOS version 22.7 and greater, the following error/output is seen:
Enter remote system IP address: 10...**
Enter remote system username: administrator
Remote system password:
Enter EXOS cli: save
JSONRPC Response for: save
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"error": "error processing command save 'NoneType' object has no attribute 'group'"
}
}
Downgrading switch to 22.6 produces correct results (with RADIUS MGMT enabled):
Enter remote system IP address: 10...**
Enter remote system username: administrator
Remote system password:
Enter EXOS cli: save
JSONRPC Response for: save
{
"id": 1,
"jsonrpc": "2.0",
"result": [
{
"CLIoutput": "The configuration file ty_jsoncli.cfg already exists.\nSaving configuration ty_jsoncli.cfg on master ....... done!\nConfiguration saved to ty_jsoncli.cfg successfully.\n"
},
{
"status": "SUCCESS",
"useConfig": {
"msmAName": "ty_jsoncli.cfg",
"msmBName": null,
"name": "ty_jsoncli",
"switchPortInitMode": 0
}
}
]
}
Formatted CLIoutput Display
The configuration file ty_jsoncli.cfg already exists.
Saving configuration ty_jsoncli.cfg on master ....... done!
Configuration saved to ty_jsoncli.cfg successfully.
-tested with python 3.6
-issue also seen in EXOS 30.x
-issue only seen when radius mgmt access is used on v22.7 and greater
-any show or commit command produces 'NoneType' object has no attribute 'group' error
-authentication valid
-submitting issue here to help rule out script as potential issue
X460G2-24t-G4.13 # sh log
05/13/2020 23:09:20.52 Info:AAA.authPass Login passed for user administrator through app (10...**)
configure radius mgmt-access primary server 10...** 1812 client-ip 10...** vr VR-Mgmt
configure radius mgmt-access primary shared-secret encrypted "#################"
enable radius mgmt-access
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.