MMI (jsonrpc) feature returns 401 error after enabling RADIUS


Userlevel 2
Hey, I've started playing around with the jsonrpc interface. Everything works well when I set a password for 'admin'. But when I enable RADIUS for management amd try to login with a RADIUS user, I get a 401 error which as the documentation indicates means incorrect or missing user/pw. RADIUS service-type is set to administrative and I can login with SSH without problems; on the other hand the chalet webinterface only accepts 'admin' user and pw and no RADIUS user. Is there anything special to be considered when RADIUS is enabled for management? Thanks!

11 replies

Userlevel 1
Hi ,

which version of exos is used ?
Userlevel 2
hi Aleixo! Version 21.1.1.4-patch1-2 is installed on the switch
Userlevel 1
Hi ,

am not 100% sure if this was some bug in exos 21.x , could you try using 21.1.2 and test if that resolves it .

let me know the result
Userlevel 2
Okay, will test and let you know. Just have to wait until my download of 21.1.2 is approved.
Userlevel 5
Hi,
Yes this was a known issue that is corrected in 21.1.2.

Have you seen the example script in https://github.com/extremenetworks/ExtremeScripting/blob/master/EXOS/Python/jsoncli
Userlevel 5
For your investigation into jsonrpc, in 21.1.1, if you
enable radius netlogin[/code]Should work around the issue with 21.1.1.

While the fix in 21.1.2 is recommended for a proper fix, this should let you experiment with JSONRPC without upgrading.
Userlevel 2
Hey Dave, thanks for the suggestion . I'm working on something similar in Powershell if you like to check it out: https://github.com/joxz/PSEXOS
Userlevel 5
Looking at your powershell example, have you tried the EXOS CLI commands:
show port vlan
or
show port vid
Userlevel 2
No I didn't and they are not recognized? Am I missing something?
Userlevel 5
I apologize, these CLI commands are available in 21.1.2.

The script versions of these commands are available for pre21.1.2 EXOS here:

Script version of show port vid/vlan
https://github.com/extremenetworks/ExtremeScripting/blob/master/EXOS/Python/show_port_vid

Script version of show vid
https://github.com/extremenetworks/ExtremeScripting/blob/master/EXOS/Python/show_vid
Userlevel 2
Oh yeah now I get it 😮 I did take those as examples, I just like Powershell far more than Python for those things and wanted to see what I can get done.

Reply