pynvramutil is a utility for nvram change management
- Free software: ISC license
- [X] Parse the (unsorted multiline) output from
nvram show
and sort by key name - [ ] Compare two
nvram show
outputs (e.g. for incremental changesets) - [ ] Generate a series of
nvram set
commands 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.txt
key1=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 show
snapshots 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:
Wikipedia: https://en.wikipedia.org/wiki/DD-WRT
Homepage: https://www.dd-wrt.com/site/
Download: ftp://ftp.dd-wrt.com/betas/
Project: http://svn.dd-wrt.com/
- DD-WRT ``nvram show`