Associated stations - making hostnames visible across multiple APs

Can you please tell which latest stable version this works on or which version this is known to be working?

How about you try to solve the issue, instead of going back to an old and unsupported version of Openwrt?

2 Likes

Any tips on where to start troubleshooting or what you think might be causing the issue?

The cron is getting posted in the system log as cron.err which is correct as someone noted in one of the previous comments in this thread

Sun Dec 22 14:30:00 2024 cron.err crond[1772]: USER root pid 6745 cmd scp /tmp/dhcp.leases root@192.168.86.245:/tmp/dhcp.leases

Bypass cron, run it manually, see if it does what it's supposed to ?

1 Like

It still doesn't work for some hostnames, there's a "?" next to macaddr

That's because the client doesn't send a name to dnsmasq when they request an IP.
That's not an Openwrt issue.

You can solve it by editing the /etc/ethers file, on every AP, if you got several.

When it is connected to the main router, those particular devices do give out name and listed correctly. Only on Dumb AP it goes with "?". I will look into /etc/ethers file later.

Anyway, so is cron the issue? How to fix it in 23.05.5
?

Then I guess the script isn't working?

We have no idea what's broken, can't work with "it doesn't work"

To be clear, cron isn't broken in 23.05.5.

This is normal. See:

In the future, please make a new thread for your issue about properly saving and running your script on devices.

2 Likes

thanks this is great

A hotplug script can be used instead of cron to trigger the dhcp.leases file mirroring whenever the DHCP leases change. Create a file in the /etc/hotplug.d/dhcp/ directory containing the following:

export HOME=/root
scp -o BatchMode=yes -p /tmp/dhcp.leases <otherhost>:/tmp/dhcp.leases

You'll need to have setup SSH keys for this like in the first post.

1 Like