pynvramutil is a utility for nvram change management
- Free software: ISC license
- [X] Parse the (unsorted multiline) output from
nvram showand sort by key name - [ ] Compare two
nvram showoutputs (e.g. for incremental changesets) - [ ] Generate a series of
nvram setcommands from a changeset
Config data stored in nonvolatile RAM (nvram) with many
DD-WRT and OpenWRT compatible devices
can be listed with the nvram utility included
with a given image.
For example, the output from nvram show:
# nvram show
ssh user@host -- nvram show | tee nvramshow.output.txtkey1=value1 key2=value two 2 key3=value3
Problem: When upgrading [many different] embedded device firmwares, it's often recommended to factory reset the configuration (before and/or after each upgrade/downgrade); thus dropping any manual configuration.
Solution:
- [ ] Take
nvram showsnapshots before and between each (Web UI) change - [ ] Build sequenced diff scripts from the changesets between each snapshot
- [ ] Manually prune/trim
- [ ] Apply one or more changeset diffs in sequence,
pausing to run a test script
- [ ] Test script (online, pingable, ssh-able, web-able)
Tools used in rendering this package:
- DD-WRT ``nvram show`