jsonrpc support on x440

  • 0
  • 1
  • Question
  • Updated 1 year ago
  • Answered
  • (Edited)
Hi , 
I would like to know if it is possible to enable the jsonrpc in Extreme x440.
The firmware I am currently using is 16.1.3.6  patch1-8.

I get a 404 response from:
http://<sw_IP>/jsonrpc/
<HTML>
<HEAD>
<TITLE>404 Not Found</TITLE> </HEAD> <BODY BGCOLOR="#cc9999" TEXT="#000000" LINK="#2020ff" VLINK="#4040cc"> <H2>404 Not Found</H2> The requested URL '/jsonrpc/' was not found on this server. <HR> <ADDRESS> <A HREF="">XOS 22nov2004</A> </ADDRESS> </BODY> </HTML>
Can you confirm that it is supported only on the new EXOS 21.1 as mentioned here?
https://community.extremenetworks.com/extreme/topics/ansible-for-xos

It that is the case the the new os is not available for x440 . What can be an alternative solution?
Photo of Daniel

Daniel

  • 130 Points 100 badge 2x thumb

Posted 1 year ago

  • 0
  • 1
Photo of Dave Hammers

Dave Hammers, Dir SW Engineering

  • 3,502 Points 3k badge 2x thumb
Correct. JSONRPC support was introduced in EXOS 21.1.

For earlier EXOS releases, I have a kind of odd way to do JSONRPC over telnet session that I never published.
I have python code examples on how a server would use this.

Server:
  • connects to a switch via telnet
  • Authenticates (username/password)
  • starts a script tJSONRPC.py on the switch which takes over the connection.
  • communicates JSONRPC with the switch point to point over the dedicated session.
Switch:
  • authenticates telnet client connection
  • accepts command to start tJSONRPC.py (run script tJSONRPC.py)
  • session communicates JSONRPC (method=cli) until closed.

Would you be interested in trying this out?
Photo of Grosjean, Stephane

Grosjean, Stephane, Employee

  • 12,462 Points 10k badge 2x thumb
I hesitated to talk about it, as this is work in progress, looks like I'm too conservative :)
Photo of Matthew Helm

Matthew Helm, Employee

  • 1,852 Points 1k badge 2x thumb
I would be like to test this out. :-) Please send it to me. Thanks!
Photo of Grosjean, Stephane

Grosjean, Stephane, Employee

  • 12,562 Points 10k badge 2x thumb
Hi,

jsonrpc is available only starting from EXOS 21.1. It would require a big architectural modification to allow EXOS 16.x to support it and there're no plans afaik to do it.

You can pexpect, maybe?