Code Monkey home page Code Monkey logo

exos_apps's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

exos_apps's Issues

ezspantree.py FAIL on EXOS 22.5.1.7-patch1-3

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.

"NoneType' object has no attribute 'group'" error when using jsonrpc.py with RADIUS MGMT on 22.7 and greater

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...**)

Module aaa configuration.

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

Steps to reproduce:

  1. Load switch switch EXOS 22.7 or greater
  2. Configure switch for RADIUS MGMT authentication
  3. Run jsoncli.py against switch

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.