Ripshod
Very Senior Member
Try the long version:I get this:
-sh: YazDHCP: not found
even though 1.0.6 is there in AMTM
Code:
sh /jffs/scripts/YazDHCP develop
Try the long version:I get this:
-sh: YazDHCP: not found
even though 1.0.6 is there in AMTM
sh /jffs/scripts/YazDHCP develop
That worked, thanks!Try the long version:
Code:sh /jffs/scripts/YazDHCP develop
I am getting this:Try the long version:
Code:sh /jffs/scripts/YazDHCP develop
Can you please try:I am getting this:
sh: can't open '/jffs/scripts/YazDHCP'
What am I doing wrongly?
sh /jffs/scripts/YazDHCP.sh develop
Thanks, but still getting this:Can you pelase try:
Code:sh /jffs/scripts/YazDHCP.sh develop
k.
Darn, I had to run a CLI command with .sh appended on another script so thought it might work here.Thanks, but still getting this:
sh: can't open '/jffs/scripts/YazDHCP.sh'
Just trying to get this script to run on my new RT-BE88U running the latest AsusMerlin RT-BE88U_3006_102.4_beta1.
sh /jffs/scripts/YazDHCP develop
That's worked a treat. Thanks a million.Darn, I had to run a CLI command with .sh appended on another script so thought it might work here.
I have (just now) installed YazDHCP (j7) from amtm, which installs 1.06, ran it, exported my current DHCP assignments, exited amtm, then ran @Ripshod CLI command and it worked to get to 1.07.
Code:sh /jffs/scripts/YazDHCP develop
That typically means you don't have YazDHCP installed.I am getting this:
sh: can't open '/jffs/scripts/YazDHCP'
What am I doing wrongly?
/usr/sbin/curl -fsL --retry 3 "https://jackyaz.io/YazDHCP/master/install/YazDHCP.sh" -o "/jffs/scripts/YazDHCP" && chmod 0755 /jffs/scripts/YazDHCP && /jffs/scripts/YazDHCP install
sh /jffs/scripts/YazDHCP develop
/usr/sbin/curl -fsL --retry 3 "https://jackyaz.io/YazDHCP/develop/install/YazDHCP.sh" -o "/jffs/scripts/YazDHCP" && chmod 0755 /jffs/scripts/YazDHCP && /jffs/scripts/YazDHCP install
Thank you for the detailed instruction.That typically means you don't have YazDHCP installed.
For people new to this, install YazDHCP first either through AMTM (option j7) or manually:
Then you can update to the YazFi develop (1.0.7) version by running:Code:/usr/sbin/curl -fsL --retry 3 "https://jackyaz.io/YazDHCP/master/install/YazDHCP.sh" -o "/jffs/scripts/YazDHCP" && chmod 0755 /jffs/scripts/YazDHCP && /jffs/scripts/YazDHCP install
Code:sh /jffs/scripts/YazDHCP develop
PS: No idea if one could try to manually install the develop version directly, using code below, without installing the older master version first. Never personally tried it.
Code:/usr/sbin/curl -fsL --retry 3 "https://jackyaz.io/YazDHCP/develop/install/YazDHCP.sh" -o "/jffs/scripts/YazDHCP" && chmod 0755 /jffs/scripts/YazDHCP && /jffs/scripts/YazDHCP install
Apologies if this has been answered, I did a search within this thread but could not find a specific response. I’m using 1.0.7 develop on the 3006 Beta on an RT-AX88U Pro.On the latest "1.0.6" version, YazDHCP has the option to back up & restore custom user icons, and using this feature includes backing up the custom client names.
NVRAMfile_custom_clientlist.TMP
NVRAMvar_custom_clientlist.TMP
usericon_md5.json
<Custom_NAME1>MA:AC:AD:DR:ES:S1>0>XX>>>>><Custom_NAME2>MA:AC:AD:DR:ES:S2>0>YY>>>>>REPEAT SEQUENCE
As you have already found out, the archive gzip file contains copies of the icons files themselves, the corresponding JSON file, and a copy of the contents of the "custom_clientlist'' NVRAM variable.Apologies if this has been answered, I did a search within this thread but could not find a specific response. I’m using 1.0.7 develop on the 3006 Beta on an RT-AX88U Pro.
As regards custom client names (old custom_clientlist in /jffs/nvram which I emptied to avoid conflicts), you note above that backing up the icons also backs up custom client names.
Is this backup of the custom client names in the same zip file as the icons (and can it be extracted and edited for re-upload/restore?), or is there a separate file where custom client names are stored (and that can be edited if need be)? Thank you.
Yes, those two *.TMP files are exact copies of the NVRAM variable and its corresponding file found in the "/jffs/nvram" directory. The shell script essentially makes a copy for backup and puts the copies back when restoring.[EDIT]
Out of curiosity (yea, poor cat), I had a wee look inside a custom icons file (gzip YazDHCP GUI back up ) e.g. CustomUserIcons_2025-04-11_12-02-44.tar.gzip located in /opt/var/SavedUserIcons. Apart from what appears to be the standard icons in a #.log format and the custom icons in MAC.log (AA33EE22DDFF.log) format there are three other files:
Code:NVRAMfile_custom_clientlist.TMP NVRAMvar_custom_clientlist.TMP usericon_md5.json
I am not touching the .json with a barge pole but looking inside the .TMP files it appears they follow a similar format to custom_clientlist that used to be in /jffs/nvram? I am not sure what the difference in content is between these two TMP files, they appear quite similar.
Yes, it's certainly possible.I assume these get loaded back with the icons, but if someone wanted to amend these manually, would it be possible?
Yes, it's theoretically possible. The caveat is that you will need to be extremely careful when making any changes so that the format always remains intact. Any minor mistake will likely corrupt the contents of the NVRAM variable when restoring it. This assumes, of course, that the format has not changed between the different F/W branches and versions - in case you wanted to restore the custom icons from one router model to a different router, or to the same router after upgrading to a different F/W version.The format of the custom_client list (all on one line) seems to be something like:
I am sure I would break something or stuff it up if I attempted to amend it and I am also not 100% sure what the "XX" and "YY" numbers represent, but if it's logical, in "theory" I could use an existing custom_client file I have and just amend it, name it to the TMP file format and pop it back in the gzip?Code:<Custom_NAME1>MA:AC:AD:DR:ES:S1>0>XX>><Custom_NAME2>MA:AC:AD:DR:ES:S2>0>YY>>REPEAT SEQUENCE
A very comprehensive response as always, much appreciated.I wish you good luck.
Yeah, that would be the safest approach to a solution.A very comprehensive response as always, much appreciated.
At this point I'm probably not going to push my luck (lol) attempting to edit the file(s) unless I have to make wholesale changes, best just populate it as far as possible in the YazDHCP GUI, export it and reimport it, which gives me the custom client list details at the point in time I exported the user icons. Make changes in the GUI, re-export, rinse, repeat. Thank you!
I don't know what those numbers mean or represent. For backup & restore purposes, I didn't need to know, and I was never curious enough to dig deep and find out.[EDIT] Still unsure about scheme of XX and YY numbering though.
[EDIT] Still unsure about scheme of XX and YY numbering though.
For completeness and to satisfy my curiosity (and because I had been having a few headaches with the Guest Network Pro Client Names, more on that below), I had a little hunt around to see if the device type numbering scheme was properly documented anywhere. The short answer is 'not that I can find', there is no definitive list I am aware of (but happy to be given one!).I don't know what those numbers mean or represent. For backup & restore purposes, I didn't need to know, and I was never curious enough to dig deep and find out.
35 Laptop
2 Switch
19 Printer
21 iPad
10 iPhone
1 Asus Windows Desktop
2 GLiNetRouter for each of Eth, Wan and Wifi (same as Switch?); TPLinkRouter
11 AppleTV4K Eth
20 LG Phone (Android?)
23 Amazon Kindle
35 Windows Notebook
73 Samsung Notepad
87 TPlink Wifi USB Adapter
TL_MR3020_Eth>F4:F2:6D:F5:BD:3E>0>2>>>>><SmurfPC>04:92:26:D3:47:D7>0>1>>>>>REPEAT_STARTING_WITH_<
# nvram show | grep custom_clientlist
# nvram get custom_clientlist | sed 's/</\n/g; s/>/\t/g' | sed 's/^/custom\t/' | tail '+2' | sed 's/\(^.*\)\(\t.*\)\(\t[0-9A-F][0-9A-F]:.*$\)/\1\3\2/'
# nvram set custom_clientlist=""
# nvram commit
# nvram set custom_clientlist="<name>00:11:22:33:44:55>0>0>><name2>11:22:33:44:55:66>0>0>>"
# nvram commit
Take a look here:The short answer is 'not that I can find', there is no definitive list I am aware of (but happy to be given one!).
Awesome, thank you!Take a look here:
Ok, this is probably more for interest than anything else, but maybe someone poking around in the contents of custom_clientlist one day will be able to see what the device type that has been assigned is. I am not sure if the assignment in the client_function.js kindly pointed out to me by @dave14305 in the current binary blob (can't believe I just wrote that) gets updated regularly or not but anyway, here is the simplified table.I’ll make a little sortable Excel table tomorrow to close it out.
{tag:"#CLIENTLIST_MACBOOK",text:"<#Clientlist_Macbook#>"},
{tag:"#Clientlist_ASUS_NB",text:"<#Clientlist_ASUS_NB#>"},
{tag:"#CLIENTLIST_SD_CARD",text:"<#Clientlist_SD_Card#>"},
{tag:"#PRINTER",text:"<#Clientlist_Printer#>"},
{tag:"#ROUTER",text:"<#Device_type_02_RT#>"},
{tag:"#NAS",text:"<#Device_type_04_NS#>"},
{tag:"#IPCAM",text:"<#Device_type_05_IC#>"}
"warables": {
"title": "Wearables",
"translation": "#CLIENTLIST_WEARABLES",
Thread starter | Title | Forum | Replies | Date |
---|---|---|---|---|
V | Best Practice When Importing CSV To YazDHCP? | Asuswrt-Merlin AddOns | 7 | |
L | scMerlin Is this feature enabled by default in scMerlin? | Asuswrt-Merlin AddOns | 2 |
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!