RUT955 Monitoring via JSON-RPC problems since firmware 7 released

Hi, on RUT955 devices with firmware 6.x I use the following command to get the seesion ID so I can query signal strength

curl -d “{ "jsonrpc": "2.0", "id": 1, "method": "call", "params": [ "00000000000000000000000000000000", "session", "login", { "username": "admin", "password": "admin01" } ] }” http://192.168.1.1/ubus

Obviously with my ‘real’ admin password, however if I try the curl command on Firmware 7 I get an error

bash: !: event not found

Any ideas why this no longer works???

Phil

Hello,

I’ve altered the format of the command slightly (replaced some double-quotes to escape) and was able to obtain the session ID on RUT955 with FW 07.04.4:

curl -d '{
    "jsonrpc":"2.0", "id":1, "method":"call", "params":
    [
        "00000000000000000000000000000000", "session", "login",
        {
            "username":"admin", "password":"admin01"
        }
    ]
}' http://192.168.1.1/ubus

If the issue persists with this format, could you please try restoring the device to factory settings?

Kind Regards,

1 Like

Thinks, I just tested that from terminal and it works, just need to modify my source code now!
Many Thanks
Phil