reset-configuration
system/reset-configuration
Type: Command
Removes the configuration, reboots the router and applies the default configuration (or the custom default configuration script, if one is installed). In an interactive session the command asks Dangerous! Reset anyway? [y/N]: first. Users are removed and admin gets its default password back; files are kept. See Configuration Management.
| Argument | Type | Description |
|---|---|---|
| keep-users | bool | Keeps the users and their passwords. |
| keep-apps | bool | |
| no-defaults | bool | Does not apply the default configuration after the reset. |
| caps-mode | bool | Runs the CAPs mode script (/system/default-configuration/caps-mode-script) after the reset. |
| wps-sync-mode (syscap=wpssync) | bool | |
| skip-backup | bool | Saves no backup before the reset. Without it, the router saves the configuration to auto-before-reset.backup. |
| force-v6-to-v7-configuration-upgrade | bool | |
| shutdown | bool | Powers the router off after the reset instead of rebooting. The router starts with the reset configuration when it is powered on. |
| run-after-reset | file | Script file (.rsc) that runs after the reset instead of the default configuration. A script that runs longer than two minutes is stopped. Errors are logged as error while running run-after-reset script: followed by the error, for example runtime limit exceeded. |