jsonrpc support on x440


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:///jsonrpc/


404 Not Found [b]

404 Not Found

The requested URL '/jsonrpc/' was not found on this server.
XOS 22nov2004
[/code]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?

6 replies

Userlevel 5
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?
Userlevel 7
Dave Hammers wrote:

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?

I hesitated to talk about it, as this is work in progress, looks like I'm too conservative 🙂
Userlevel 4
Dave Hammers wrote:

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?

I would be like to test this out. 🙂 Please send it to me. Thanks!
Userlevel 7
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?
@Stephane Grosjean is this still the case? Is there any way to enable JSONRPC server on an x440-24p-G1 switch that is stuck at verrsion 15 fw?
Userlevel 7
There's no way to do it prior to 21.1, sorry.

Reply