What's new

YazDHCP YazDHCP v1.2.4 [2025-Nov-21] - Feature expansion of DHCP assignments (increasing limit on the number of DHCP reservations)

I found reading or editing of these nvram entries tedious. So I used the following script to check the entries for accuracy, consistency and typographical errors.
Code:
echo ""
nvram get custom_clientlist | tr '<' '\n' | tr '>' '\t' | sort -u
nvram get dhcp_staticlist | tr '<' '\n' | tr '>' '\t' | sort -k 3,3 -u
echo ""
Me too (the tedious part), although I used a different approach and made a custom_clientlist generator, see here, with a few other interface options there too.
It’s primarily for those who prefer a more GUI approach to manage those lists.

The thing about your dhcp_staticlist line though, is that if you use YazDHCP they will have moved, so your second line will not actually show any results.

I found this out a while back by poking around in the files dnsmasq.conf.add and dnsmasq-x.conf.add, in /jffs/configs, post YazDHCP install; they show (resp):

Code:
addn-hosts=/jffs/addons/YazDHCP.d/.hostnames #YazDHCP_hostnames#
dhcp-hostsfile=/jffs/addons/YazDHCP.d/.staticlist #YazDHCP_staticlist#

Code:
addn-hosts=/jffs/addons/YazDHCP.d/.hostnames_br52 #YazDHCP_hostnames_br52#
dhcp-hostsfile=/jffs/addons/YazDHCP.d/.staticlist_br52 #YazDHCP_staticlist_br52#

Code:
addn-hosts=/jffs/addons/YazDHCP.d/.hostnames_br53 #YazDHCP_hostnames_br53#
dhcp-hostsfile=/jffs/addons/YazDHCP.d/.staticlist_br53 #YazDHCP_staticlist_br53#

So as above, I believe, when using YazDHCP, the DHCP_clients are now listed in /jffs/addons/YazDHCP.d/DHCP_clients.
That dir also keeps (I think) a saved copy of your original clients, in .nvram_dhcp_staticlist.
 
Last edited:
The issue is this:
  • I noticed that the custom names (leftmost column) of devices that are offline (exclusively those ones) revert to New Device.
  • I also noticed that when I try to add the name back (I use the same as the DHCP HOSTNAME) and click apply it does not apply.
  • I also noticed that the correct names still appear to be in the custom_clientlist file.

WRT the YazDHCP webpage, the left-most column (i.e. "Client Name (MAC Address)" + icon) of the IP address assignment table is populated using a "clientList" array variable, which is created/generated by code from the "/www/client_function.js" file. This essentially means that YazDHCP has really no control over the functions & sources used to get the information necessary to populate the left-most column of the table.

Note that, AFAICT, most of the relevant data about which client is "online" or "offline" seems to be stored in files such as "/jffs/nmp_cl_json.js" and "/jffs/wlcnt.json", and that info is used (along with any custom icon info coming from the NVRAM custom_clientlist variable) to display the entries on the left-most column. This is particularly evident when the "Show Offline Client List" option in the drop-down listbox is clicked.

I have not dug any deeper or reviewed the /www/client_function.js code to know the minute details of how the data is initially obtained, collated, and stored in those files.

Just FYI.
 
WRT the YazDHCP webpage,

Just FYI.
Thank you @Martinski, I appreciate you having a look to see the source of it all the same.

The fact that @bennor was seeing a similar thing for long offline devices seemed a wee bit of a flag.
I do have several devices that haven't been activated in a while that do have New Device as the Client Name. Do wonder if there is something with how long a device has been offline before the Client Name reverts to New Device.
 
Last edited:

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top