Site Tools


static2json

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
static2json [2026/04/22 22:21] – created hommeoursporcstatic2json [2026/05/18 22:02] (current) hogwild
Line 1: Line 1:
-====== Convert DHCP Reservation extracted from NVRAM CFG file into a JSON file for the GUI ======+====== Export DHCP Reservations from an NVRAM cfg file into a JSON file for the web interface ======
  
-With this you can extract DHCP Reservation from an older backup from before the GUI backup feature was introduced and apply them to the GUI with the output JSON file.+This Bash script allows you to extract DHCP Reservations from an older backup .cfg file and output them to JSON file. The JSON file file can then be imported via FreshTomato's web interface. This can be useful when the router/cfg file from which you want to get extract DHCP reservations didn't support reservations backup feature in the web interface.
  
-This need to be executed from a router CLI or SSH session.+ \\ 
 + 
 +The script must be executed from within a router's command-line interface or an SSH session. 
 + 
 + \\
  
 <code bash static2json.sh> <code bash static2json.sh>
Line 84: Line 88:
 exit 0 exit 0
 </code> </code>
 +
 + \\
 +
 + \\
 +
 + \\
 +
 +
static2json.1776892861.txt.gz · Last modified: by hommeoursporc