8290 questions

9757 answers

15535 comments

13844 members

0 votes
907 views 3 comments
by
Hello,

How can I get the status of the Failover service through JSON? I need to know programmatically which connection is used (mobile, Ethernet or Wi-Fi). My router is a RUT240.

Thank you in advance for your help!

Vincent

1 Answer

0 votes
by

Hi,

Try "ip route" command, it will show you default route and interface, for example:

Best answer
by
Perfect! Thank you very much! Where can I find a list of the different commands available?
by
Hi,

You could try connect to router via SSH and pres two times "Tab" button in keyboard, then all available commands will appear.

Type: <command> --help

After this details about command should appear.
by
Awesome! Thank you.