/system default-configuration

can we get read/write access to this thing from routeros?

right now it is not even read-only, since if i update it, it still shows the “default routeros” script.

It will not be configurable from RouterOS, in the future we might show configuration applied by netinstall there, but at the moment it will always show factory default configuration.

Hi Mrz,
is there any logical explanation to that?

look, if you are into some advanced router configuration in some automated way, you will need a useable default configuration that enables your device to recover its state after your customer resets it. and no, TR069 is not this level - i need all the functionalities routeros can provide, scripts, access to all objects, etc. so i have to roll my own scripts, cause i want the routers to talk to me, and not access them remotely - kind of the IoT way.
But right now it is not even possible to debug the defconf script, you can’t see anything unless you log every single statement you execute.
to be honest, it is almost unpredictable to me, whether my script - that otherwise runs fine if i simply import it - gets properly executed. multiple times i experienced situations, where script execution just stopped. would it be possible to re-trigger the “defconf” script automatically if it did not finish successfully?
at lest a tiny little error message could be logged to the logs, where and why it stopped.

kind of similar to the “safe mode”: set at the start of the script, execute all commands, and the last command would commit safe mode, thus keep the configuration. but whenever it exists prematurely, it rolls back the so far executed lines, and retries the script. maybe you could even limit how many times the defconf script could be run before reverting to empty (real empty) configuration.

but the first step is really to see what is in there.

I thought you could configure the default script using flashfig? Or is that not what you meant?

You can use Netinstall, Branding or Flashfig to change the config that loads upon reset, yes.

Is that really the case? I have used NetInstall to install a customised script and it successfully sets the device. However, if I initiate a user reset (hold the reset button until the USR LED flashes and let go), it will default the device completely and not go back toe the script I set in NetInstall.

Am I missing a setting or feature to enable this?

I am using NetInstall latest version, v6.43.2 and latest RouterOS v6.43.2 also.

Edit: Solution found: needed to add a delay at the beginning of the script to allow for interfaces to come up.