What's new

Asus RT-AC68 NVRAM commit not applying

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

metconnect

New Around Here
Hi, looking for some guidance here.

My Asus RT-AC68 is running stock, when i tried to ssh into the router and use nvram to set the variable and then nvram commit, it doesnt seem to apply the change. After i set the variable, i can see the value added to the web UI, however i have to hit the "Apply" button in web UI in order to effect the change. Is this due to the stock rom? thanks.
 
Just changing the nvram variable's value doesn't necessarily mean the GUI has incorporated that change in value. Not until you hit Apply and things get reinitialized.
 
There is almost always a service that needs to be restarted which will read those new settings. If you tell us what variable you are changing, we might be able to give you the service to restart at the command line.
 
Thanks. So i'm trying to add some web url to my block list, my understanding is the that "nvram commit" should apply the change, i even try "nvram reboot", however that didnt effect the change.
Code:
nvram set url_rulelist="SomeWebSite"
nvram commit
 
Thanks. So i'm trying to add some web url to my block list, my understanding is the that "nvram commit" should apply the change, i even try "nvram reboot", however that didnt effect the change.
Code:
nvram set url_rulelist="SomeWebSite"
nvram commit
Doesnt "nvram commit" apply the change?

Using the set option only changes the value in memory, so it will NOT survive a reboot unless you add the commit. And there is no such thing as "nvram reboot".

The following should result in a permanent change.

Code:
nvram set url_rulelist="SomeWebSite"
nvram commit
reboot

Of course, whenever you manipulate nvram directly, YOU have to take responsibility for doing so correctly. In the case of any *list*, you have to make sure to preserve all current contents in the process of adding your own (unless it's your intention to replace it completely w/ the change). And most lists use special encoding to separate the items in the list. That's why it's NOT recommended you manipulate nvram directly, but use the GUI as intended.
 
Using the set option only changes the value in memory, so it will NOT survive a reboot unless you add the commit. And there is no such thing as "nvram reboot".

The following should result in a permanent change.

Code:
nvram set url_rulelist="SomeWebSite"
nvram commit
reboot

Of course, whenever you manipulate nvram directly, YOU have to take responsibility for doing so correctly. In the case of any *list*, you have to make sure to preserve all current contents in the process of adding your own (unless it's your intention to replace it completely w/ the change). And most lists use special encoding to separate the items in the list. That's why it's NOT recommended you manipulate nvram directly, but use the GUI as intended.
Thanks. does the "reboot" command reboot the router? Is there a way to simulate the apply in GUI? so my use case is to create a script that can remotely add some url to the block list and apply the change and revert at a later time. When i did the apply in GUI, it didnt reboot the router and the settings kicked in.
 
Thanks. does the "reboot" command reboot the router? Is there a way to simulate the apply in GUI? so my use case is to create a script that can remotely add some url to the block list and apply the change and revert at a later time. When i did the apply in GUI, it didnt reboot the router and the settings kicked in.
Code:
nvram set url_rulelist="<1>ALL>snbforums<1>ALL>porn"
nvram commit
service restart_firewall
 

Latest threads

Sign Up For SNBForums Daily Digest

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