FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
488 views 1 comments
by anonymous

Good morning to everybody !.

Updated to FW RUT9_R_00.07.00 -2021-07-15 01:33:29 , but now JSON-RPC UBUS does not work

I am trying to get information with JSON-RPC UBUS on RUT955.

conex = json.dumps({"jsonrpc": "2.0", "id": "1", "method": "call", "params": ["00000000000000000000000000000000","session", "login", {"username":"admin", "password":"admin01"} ] })

response = requests.post(url, data=conex, headers=headers)

d = response.json()

sesion = d['result'][1]['ubus_rpc_session']

print sesion

#get data router

mnfInfo = '{"jsonrpc": "2.0", "id": 1, "method": "call", "params": ["'+sesion+'", "file", "exec",{"command":"mnf_info","params":["sn"]}]}'

response = requests.request("POST", url, data=mnfInfo, headers=headers)

n = response.json()

print n

Session -> 4c8887919125586a4778a9ce81b0cf41

return mnf_info -> {u'jsonrpc': u'2.0', u'id': 1, u'result': [6]}

by anonymous

Hello,
Thank you for your insights. We had this issue reported already and there was a discussion about additional values in the config. Our RnD department currently planning to release a JSON-RPC backend overhaul with the 7.2 release and at this moment deleting superuser value is correct approach if you do want to continue JSON RPC.
Regards.

1 Answer

0 votes
by anonymous
Hello,

Thank you for contacting.

For now i would suggest you to downgrade the firmware if you really need json rpc because 7.00 needs some fixes.

Thanks.

Regards,

Ahmed