Using config.json file

Discussion to talk about software related topics only.
Post Reply
SeeCwriter
Posts: 606
Joined: Mon May 12, 2008 10:55 am

Using config.json file

Post by SeeCwriter »

Using the Config webpage of a module, after I get the configuration setup can I then download that file and upload it to other modules to configure them the same?
User avatar
TomNB
Posts: 538
Joined: Tue May 10, 2016 8:22 am

Re: Using config.json file

Post by TomNB »

Hello,

Yes, that was one of the design goals.

The production and deployment section of the manual might help a bit. It also lists the update options (from your other post regarding applications).
https://www.netburner.com/NBDocs/Develo ... otoc_md117
SeeCwriter
Posts: 606
Joined: Mon May 12, 2008 10:55 am

Re: Using config.json file

Post by SeeCwriter »

Then I assume module specific parameters are ignored, such the link-local IPv6 address and the MAC address.

Can I edit the file to make it more readable by giving each parameter its own line and still be able to upload it successfully?
User avatar
TomNB
Posts: 538
Joined: Tue May 10, 2016 8:22 am

Re: Using config.json file

Post by TomNB »

As a general rule, the mac address should not change, so that is not in the general configuration. Do you own your own IEEE MAC address range? You must be registered an have purchased your own set of values in order to change it.

Link local is based on the MAC, so same rules apply.
User avatar
pbreed
Posts: 1080
Joined: Thu Apr 24, 2008 3:58 pm

Re: Using config.json file

Post by pbreed »

You can remove anything from the JSON you don't want to set...

You can also get/set parts of the config...

Suppose you just want to set the AppData part...

You can use the URL: ipaddress:20034/Config/AppData

to download just the AppData section of the config...

Then you can use wget or any other tool to post that to Config/AppData to just set that part....
User avatar
pbreed
Posts: 1080
Joined: Thu Apr 24, 2008 3:58 pm

Re: Using config.json file

Post by pbreed »

You can remove anything from the JSON you don't want to set...

You can also get/set parts of the config...

Suppose you just want to set the AppData part...

You can use the URL: ipaddress:20034/Config/AppData

to download just the AppData section of the config...

Then you can use wget or any other tool to post that to Config/AppData to just set that part....
Post Reply