Before you begin
Before you perform the secure erase operation using the CLI, decommission the switch or physically disconnect the switch from the fabric. If you do not decommission the switch or physically disconnect the switch from the fabric, the Cisco APICpushes configuration back to the switch after process.
Use this procedure to securely erase user data from a Cisco Nexus 9000 switch using the switch's CLI. You cannot use the Cisco Application Policy Infrastructure Controller (APIC)'s CLI for this procedure.
Procedure
|
1. |
Log in to the switch’s CLI. |
|
2. |
Enter the virtual shell on your switch.
|
|
3. |
Disable the session timeout on your terminal.
leaf1# terminal session-timeout 0
If you do not disable the timeout, the VSH session can time out and exit before the secure erase completes and can provide status.
|
|
4. |
Reset the switch to the factory settings to securely erase your data from the switch.
leaf1# factory-reset [preserve-image] [module module_number]
-
preserve-image: Specify this flag to retain the NX-OS image in the bootflash of the switch. If you do not specify this flag, the NX-OS image will also be erased and the switch will boot to the loader prompt.
-
module module_number: For modular switch line cards and fabric modules, you must specify the number of the module on which to perform the secure erase.
|
Depending on the switch and SSD type, the decommission process for nonmodular switches takes from 2 to 8 hours. The process securely erases the switch and removes the switch configuration from the Cisco Application Policy Infrastructure Controller (APIC). The secure erase process does not remove the NX-OS image from the bootflash. The switch cannot join the fabric until you manually register it again.
The switch reboots after the secure erase operation completes. To connect to the switch, you must use the terminal console because the IP address is not reachable.
For modular switch line cards or fabric modules, the decommission process takes from 30 minutes to 2 hours, depending on the switch and SSD type. The process securely erases the data from the module of the switch and removes the module's configuration from the Cisco APIC. The process does not remove the NX-OS image from the bootflash.
After the secure erase operation completes, the module will be in the powered-down state. To connect to the switch, you must use the terminal console because the IP address is not reachable.