From 02f13bbe9beec0efa22da1bccd794acd05400c28 Mon Sep 17 00:00:00 2001 From: cumulusAnia Date: Fri, 18 Oct 2024 14:41:05 -0700 Subject: [PATCH] update factory reset --- .../Installation-Management/Factory-Reset.md | 48 ++++++++++--------- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/content/cumulus-linux-511/Installation-Management/Factory-Reset.md b/content/cumulus-linux-511/Installation-Management/Factory-Reset.md index 240898dc2c..63dbbaa9e2 100644 --- a/content/cumulus-linux-511/Installation-Management/Factory-Reset.md +++ b/content/cumulus-linux-511/Installation-Management/Factory-Reset.md @@ -30,32 +30,32 @@ 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 ... ``` @@ -63,9 +63,9 @@ 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 ... @@ -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 >}}