I've just about had it with Microsoft.....seems like their share links are now randomly changing. One more try....updated the link in the first post.Link is not working, i get the message " This item might not exist or is no longer available" :-(
This utility really isn't setup to easily just save/restore a single nvram entry. I'll work up a short script for those that only want to save a single or couple of entries.Hi to everybody. I'm a noob (D)
Does some pious and gentle soul, can post only:
1) the procedure (commands), step by step, to save only the "Manually Assigned IP around the DHCP list"?
2) and the procedure, step by step, to restore after resetting router?
Many thanks in advance.
The other things are not of my interest.
Thanks again.
Thank You John, but all is not of mine interest.This utility really isn't setup to easily just save/restore a single nvram entry. I'll work up a short script for those that only want to save a single or couple of entries.
OK JohnOK all....
./save-mynvram.sh
Usage: save-mynvram.sh var1 var2 var3 ...
where var1 var2 var3 ... are the names of the NVRAM vars to save
./save-mynvram.sh var1
Skipping var1 (empty or does not exist)
./save-mynvram.sh var2
Skipping var2 (empty or does not exist)
./save-mynvram.sh var3
Skipping var3 (empty or does not exist)
substitute the name of the variable....OK John
Here is my disastrous results
Code:./save-mynvram.sh Usage: save-mynvram.sh var1 var2 var3 ... where var1 var2 var3 ... are the names of the NVRAM vars to save ./save-mynvram.sh var1 Skipping var1 (empty or does not exist) ./save-mynvram.sh var2 Skipping var2 (empty or does not exist) ./save-mynvram.sh var3 Skipping var3 (empty or does not exist)
What is the variable number to insert?
The variable number of the DHCP settings?
For saving only DHCP Statitcs IP Address and after restore only this?
Thank You so much John, I tried and it seems to work well!substitute the name of the variable....
./save-mynvram.sh dhcp_staticlist
SAVE
./save-mynvram.sh dhcp_staticlist
RESTORE
./restore-mynvram.sh
nvram commit
(then reboot to activate your restored settings)
I made this a separate step to give you an 'oops....I really didn't want to restore those' out. If you reboot with doing the nvram commit, there is a good chance (but not guaranteed) that it will undo your restore.Questions:
1) is it necessary add the command line "nvram commit" to complete restore or not?
I *think* they are in two addition variables.....so the command would be (including your DHCP settings)2) if I want to also save the associated icons, what is the variable name to add?
3) if yes, can you write the command?
./save-mynvram.sh dhcp_staticlist custom_clientlist custom_usericon
OK, I do...I made this a separate step to give you an 'oops....
./save-mynvram.sh dhcp_staticlist custom_clientlist custom_usericon
Saving dhcp_staticlist
Saving custom_clientlist
Skipping custom_usericon (empty or does not exist)
Backing up previous restore script to /tmp/mnt/ASUS/backup/restore-mynvram.sh.bak
Saved 2 NVRAM variable(s)
Run /tmp/mnt/ASUS/backup/restore-mynvram.sh to restore your saved settings
Not sure what you mean by a duplicate for custom_clientlist.....it lloks like it was save/restored successfully.It seems not correct:
"custom_clientlist" is a duplicate
"custom_usericon" doesn't exist
Instead, as you can see from the following screenshots, custom icons are there!
Anyway, thanks
Thanks again Dear John, the "quick" script save & restore a small number of NVRAM variables, seems to work well. Very Good!OK all.....here's a quick script to allow you to save and restore a small number of NVRAM variables. Unzip the file (rename the attachment to remove the .txt) and copy the save-mynvram.sh script to any folder you want in jffs or an attached USB drive and make it executable. For example, copy it to /jffs/scripts and
chmod a+rx /jffs/scripts/save-mynvram.sh
Usage
save-mynvram.sh var1 var2 var3 ...
where var1 etc are the names of the NVRAM variables you want to save. It will make a
restore-mynvram.sh
script in the same directory to restore the variables you entered when saving.
It handles:
- special characters in the nvram variable
- embedded carriage returns in the nvram variable
- it will make a single backup copy of the previous restore script (restore-mynvram.sh.bak) if a restore script is already there
./save-mynvram.sh dhcp_staticlist custom_clientlist custom_usericon
nvram get dhcp_staticlist | sed 's/</\n/g' | grep ":" | awk -F">" '{ print $2">"$1">"$3; }' | \
sort -t . -k 1,1n -k 2,2n -k 3,3n -k 4,4n | awk -F">" '{ print $2">"$1">"$3; }' | \
sed 's/^/</g' | tr -d '\n' | sed 's/^/nvram set dhcp_staticlist="/' | sed 's/$/"\n/' | \
tee /tmp/dhcp_list_sorted_tmp.sh
nvram get dhcp_staticlist | sed 's/</\n/g' | grep ":" | awk -F">" '{ print $2">"$1">"$3; }' | \
sort -t . -k 1,1n -k 2,2n -k 3,3n -k 4,4n | awk -F">" '{ print $2">"$1">"$3; }' | \
sed 's/^/</g' | tr -d '\n' | sed 's/^/nvram set dhcp_staticlist="/' | sed 's/$/"\n/' | \
tee /tmp/dhcp_list_sorted_tmp.sh
sh dhcp_list_sorted_tmp.sh
./save-mynvram.sh dhcp_staticlist custom_clientlist
A small update to pick up a few fixes and suggestions....
LATEST RELEASE: Release 24
2-May-2016
nvram-save-r24.zip
Download http://bit.ly/1SDz2Hb
===============================
Well, that was awfully nice of MS to delete the contents of that folderFolder is empty
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!