Skip to content

Commit

Permalink
update factory reset
Browse files Browse the repository at this point in the history
  • Loading branch information
cumulusAnia committed Oct 18, 2024
1 parent c6dee97 commit 02f13bb
Showing 1 changed file with 26 additions and 22 deletions.
48 changes: 26 additions & 22 deletions content/cumulus-linux-511/Installation-Management/Factory-Reset.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,42 +30,42 @@ When you run the NVUE factory reset commands, the switch prompts you to confirm
The following example resets the switch to the factory defaults and removes all configuration, system files, and log files:

```
cumulus@switch:~$ nv action reset system factory-reset
The operation will reset the system configuration and initiate a reboot.
Type [y] to reset the system configuration and reboot.
cumulus@switch:~$ nv action reset system factory-default
This operation will reset the system configuration, delete the log files and reboot the switch.
Type [y] continue.
Type [n] to abort.
Do you want to continue? [y/n] y
Do you want to continue? [y/n] y
...
```

The following example resets the switch to the factory defaults but keeps password policy rules, management interface configuration (such as eth0), local user accounts and roles, and SSH configuration:

```
cumulus@switch:~$ nv action reset system factory-reset keep basic
The operation will reset the system configuration and initiate a reboot.
Type [y] to reset the system configuration and reboot.
cumulus@switch:~$ nv action reset system factory-default keep basic
This operation will keep only the basic system configuration, delete the log files and reboot the switch.
Type [y] to continue.
Type [n] to abort.
Do you want to continue? [y/n] y
Do you want to continue? [y/n] y
...
```

The following example resets the switch to the factory defaults but keeps all configuration:

```
cumulus@switch:~$ nv action reset system factory-reset keep all-config
The operation will reset the system configuration and initiate a reboot.
Type [y] to reset the system configuration and reboot.
Type [n] to abort.
cumulus@switch:~$ nv action reset system factory-default keep all-config
This operation will not reset the system configuration, only delete the log files and reboot the switch.
Type [y] to continue.
Type [n] to abort.
Do you want to continue? [y/n] y
...
```

The following example resets the switch to the factory defaults but keeps all system files and log files:

```
cumulus@switch:~$ nv action reset system factory-reset keep all-files
The operation will reset the system configuration and initiate a reboot.
Type [y] to reset the system configuration and reboot.
cumulus@switch:~$ nv action reset system factory-default keep only-files
This operation will reset the system configuration, not delete the log files and reboot the switch.
Type [y] to continue.
Type [n] to abort.
Do you want to continue? [y/n] y
...
Expand All @@ -74,32 +74,36 @@ Do you want to continue? [y/n] y
The following example resets the switch to the factory defaults but keeps all system files and log files. The force option runs factory reset without the prompts to continue:

```
cumulus@switch:~$ nv action reset system factory-reset keep all-files force
cumulus@switch:~$ nv action reset system factory-default keep only-files force
```

{{< /tab >}}
{{< tab "Linux Commands ">}}

To reset the switch to the factory defaults and remove all configuration, system files, and log files (the default option), run the `systemctl restart factory-reset.service` command.
To reset the switch to the factory defaults and remove all configuration, system files, and log files (the default option), run the `systemctl restart factory-default.service` command.

```
cumulus@switch:~$ sudo systemctl restart factory-reset.service
cumulus@switch:~$ sudo systemctl restart factory-default.service
```

To keep certain configuration, keep all configuration but not system and log files, or keep system and log files but no configuration, create the `/tmp/factory-reset.conf` file, add one of the reset options to the file, then run the `systemctl restart factory-reset.service` command.
To keep certain configuration, keep all configuration but not system and log files, or keep system and log files but no configuration, create the `/tmp/factory-default.conf` file, add one of the reset options to the file, then run the `systemctl restart factory-default.service` command.
- `TYPE=keep-basic` resets the switch to the factory defaults but keeps password policy rules, management interface configuration (such as eth0), local user accounts and roles, and SSH configuration.
- `TYPE=keep-all-config` resets the switch to the factory defaults but keeps all configuration.
- `TYPE=keep-all-files` resets the switch to the factory defaults but keep all system files and log files.

The following example resets the switch to the factory defaults but keeps password policy rules, management interface configuration (such as eth0), local user accounts and roles, and SSH configuration
The following example resets the switch to the factory defaults but keeps password policy rules, management interface configuration (such as eth0), local user accounts and roles, and SSH configuration.

```
cumulus@switch:~$ sudo nano /tmp/factory-reset.conf
cumulus@switch:~$ sudo nano /tmp/factory-default.conf
TYPE=keep-basic
```

{{%notice note%}}
When you use the `keep-basic` option, you must create the `/tmp/startup-new.yaml` file before restarting the `factory-default.service`. This is not necessary for the other options.
{{%/notice%}}

```
cumulus@switch:~$ sudo systemctl restart factory-reset.service
cumulus@switch:~$ sudo systemctl restart factory-default.service
```

{{< /tab >}}
Expand Down

0 comments on commit 02f13bb

Please sign in to comment.