question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

luci-mod-rpc: net.arptable - Method not found

See original GitHub issue

Hi all,

I want to use Home Assitant’s OpenWrt plugin to track devices (Wiki, source code). This plugin uses luci-mod-rpc to retrieve the arp table, and uses them to track devices. However, issuing the rpc call gives me a “method not found” error: curl http://192.168.111.XXX/cgi-bin/luci/rpc/sys?auth=AUTHTOKEN --data '{"method":"net.arptable", "params":[]}' {"id":null,"result":null,"error":{"message":"Method not found.","code":-32601}} Other call like net.ipv4_hints work perfectly. Does anyone know whats happening here?

Regards, Alex

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
liopooscommented, Dec 2, 2019

I have same question with you, I find the openwrt_luci_rpc.py files in home-assistant deps folder has lines:

if self.owrt_version < version.parse("18.06"):
            return True, rpc_sys_arp_call
        else:
            return False, rpc_ip_call

It seems to obtained a wrong version? because I used koolshare fireware. when I comment those lines and append:

return False, rpc_ip_call

It works!

0reactions
mludvigcommented, Aug 29, 2021

Trouble is that many OpenWRT-based firmwares use their own version scheme. I use TurrisOS 5.2.5 which is based on OpenWRT 19.07 but openwrt_luci_rpc.py thinks that the version is 5.2.5 and hence “legacy” 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

Luci - Device tracker - problem - Home Assistant Community
I'm not able to read any data from router with this error: Log Details (ERROR) ... 'net.arptable', 'Method not found.', -32601).
Read more >
Managing OpenWrt remotely with cURL - Floating Octothorpe
This post is going to look at using the luci-mod-rpc module to ... For example if you wanted call the arptable method from...
Read more >
The Traffic Management Shell may not display dynamic ARP ...
In BIG-IP 11.x, the show net arp Traffic Management Shell (tmsh) command displays dynamic ARP entries for all route domains.
Read more >
access ARP table without root in Android - Stack Overflow
Currently I have found that most of the approaches use the /proc/net/arp for the ARP table access which requires root permission, and I...
Read more >
What Is an ARP Table? Address Resolution Protocol 101 | Auvik
By extension, an ARP table is simply the method for storing the ... If there's no record on the ARP table for a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found