NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
SLK-Purdue
Mar 15, 2020Luminary
Script to load /etc/hosts, Static DHCP registrations, and Device name etc
I have developed a script to load /etc/hosts, set static DHCP reservations and update device name, and device type from a master excel spreadsheet. The script works well to create /etc/hosts and se...
CrimpOn
Mar 15, 2020Guru - Experienced User
SLK-Purdue wrote:I have developed a script to load /etc/hosts, set static DHCP reservations and update device name, and device type from a master excel spreadsheet. The script works well to create /etc/hosts and sets all the DHCP registrations. Items set are:
config set reservations[xx}
nvram set orbi_dev_name[xx]
nvram set orbi_dev_name_v2_ntgr[xx]
nvram set orbi_dev_name_ntgr[xx]
nvram set orbi_dev_type_ntgr[xx]
and then nvram commit and config commit. Finish with a reboot.
Updated device information is not showing on the web ui. If I edit the information on the web ui, nothing changes in nvram. Clearly, I am missing something.
My practice was similar to yours except:
Everything was "config set". Nothing was "nvram set".
Reservation does not have an "s".
I opened the web page "Attached Devices", saw that everything was populated, and then clicked "Apply". Did not do a reboot.
- SLK-PurdueMar 15, 2020Luminary
You are corrrect on "reservations[xx}. My typo. My information didn't populate.Scott
CrimpOn wrote:
SLK-Purdue wrote:I have developed a script to load /etc/hosts, set static DHCP reservations and update device name, and device type from a master excel spreadsheet. The script works well to create /etc/hosts and sets all the DHCP registrations. Items set are:
config set reservations[xx}
nvram set orbi_dev_name[xx]
nvram set orbi_dev_name_v2_ntgr[xx]
nvram set orbi_dev_name_ntgr[xx]
nvram set orbi_dev_type_ntgr[xx]
and then nvram commit and config commit. Finish with a reboot.
Updated device information is not showing on the web ui. If I edit the information on the web ui, nothing changes in nvram. Clearly, I am missing something.
My practice was similar to yours except:
Everything was "config set". Nothing was "nvram set".
Reservation does not have an "s".
I opened the web page "Attached Devices", saw that everything was populated, and then clicked "Apply". Did not do a reboot.
- SLK-PurdueMar 15, 2020Luminary
Just to clarify, Static DCHP reservations are populating and working fine. My problem is with the device name, model, and type.
- CrimpOnMar 15, 2020Guru - Experienced User
you tried "config set" instead of "nvram set"?