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
210 views 0 comments
by anonymous
Hello,

i want to disable/enable various failovers in rut240 V2.7.2 with jsonRPC UCI set

I managed to change the wan failover status with following curl but it also changes the mobile failover.

{"jsonrpc": "2.0", "id": 1, "method": "call", "params": ["SESSIONID", "uci", "set", {"config": "mwan3", "type": "interface", "name": "wan", "index": 1, "match": {"enabled": "1"}, "values": {"enabled": "0"}}]}

How do i have to structure the command so that either wan or mobile failover is targeted?

Thank you in advance!

2 Answers

0 votes
by anonymous

Hello,

Thank you for your question.

After testing your command, I was able to replicate this behavior. I will contact our R&D department regarding this question.

Best regards,
Justas C.

0 votes
by anonymous

Hello,

I've got a reply from our R&D department and they suggested using this command:

{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "call",
    "params": [
        "SESSION_ID",
        "uci",
        "set",
        {
            "config": "mwan3",
            "section": "wan",
            "values": {
                "enabled": "1"
            }
        }
    ]
}

I have tried this command myself and it works as intended - the interfaces could be enabled or disabled separately.

If you have any more questions, feel free to ask.

Best regards,

Justas C.