Closed mauermann closed 6 years ago
@EricLuehrsen @jow- @hnyman You'll see what I mean with the move of the 'Hostnames' page to luci-app-hostnames from luci-mod-admin-full. The idea is that luci-mod-admin-full is (IMO) a tar baby at the moment, and needs to get less sticky.
@cshoredaniel - before you start digging deeper into it, can you please outline what you're exactly trying to do (in a separate issue or RFC PR)?
I'm not overly happy with breaking luci-mod-admin-full into tiny pieces. I've been fighting for single kilobytes in the last months and breaking the main module down into lots of micro packages will add back a lot of packaging bloat. For example with something like luci-app-hostnames
the packaging overhead can easily by three to four times the actual code size.
@jow- ah, hadn't realized about the packagin; that is a definite issue...definitely needs another way to achieve the same goal. At one time I had created https://github.com/openwrt/luci/issues/869; I will reopen that an retitle. BTW is there any way to pull this discussion (the relevant bits) in to there?
Hi @jow-
I tested successfully your solution and it could work for me for the Dumb AP's, but I still had a problem with the dhcp leases table on the main router.
# first way:
# Delete all dhcp.@host's ('While until error')
while uci del dhcp.@host[-1] 2> /dev/null; do :; done
uci add dhcp host
uci set dhcp.@host[-1].name='phone_bob'
uci set dhcp.@host[-1].mac='aa:77:14:xx:xx:xx'
uci add dhcp host
uci set dhcp.@host[-1].name='table_alice'
uci set dhcp.@host[-1].mac='ec:aa:fd:xx:xx:xx'
uci add dhcp host
uci set dhcp.@host[-1].name='notebook_bob'
uci set dhcp.@host[-1].mac='44:2c:aa:xx:xx:xx'
uci commit dhcp
# the other way: (it has to be space not tab, and does not allow spaces on name):
cat<<'EOF' > /etc/ethers
aa:77:14:xx:xx:xx phone_bob
ec:aa:fd:xx:xx:xx table_alice
44:2c:aa:xx:xx:xx notebook_bob
EOF
# If both are present will shown "first_way (second_way)""
# Delete everything:
while uci del dhcp.@host[-1] 2> /dev/null; do :; done
uci commit dhcp
cat "" > /etc/ethers
No problems so far for Associated Stations on dumb AP's Is there some way to see the device names on the dhcp leases on the MainAP without having nothing to do with the hostname (since hostname is a LAN internal DNS)... ??? I really don't want to modify or allow to be host resolved or even discovered on the LAN those names. It is just for internal usage only on LuCI and nowhere else.
That's is reason I wanted to have an individual file for this human macaddress-to-device_name translation.
We could even use that list on many other places, like in "Status->Routes->ARP" where it shows the ARP list of known devices and shows on which interface it could be found... (that is really useful for a NetAdmin/SysAdmin).
On Status->SystemLog, we could pipe the log to a sed/awk replace script and have the Actual device names instead of the mac addresses there too it will be useful, really, a lot!.
We have something similar In Status->Realtime Graphs->Connections there we had a nice IP-to-hostname translations if we wait a few seconds.
Thanks.
It would be nice if the "Associated Stations" table would show more useful information. e.g. with dual band radios getting more common it would be interesting to see the radio a station is associated. Also, instead of remembering MAC addresses, I think it's better to see its hostname or IP address.
Attached screenshot shows my proposed changes with columns for hostname and radio added. Unfortunately because of table width I had to drop the Noise column. However, this is less important for me.
I'm sure it needs some work and discussion, so it's probably too early to submit a pull request... ;-)