08-19-2025 07:02 PM
Hello,
We have been getting a lot of requests to record a record of having the devices NIST purged (NIST 800-88).
Now. Some versions of IOS-XE have the actual command, “factory-reset secure”, which prints a record in the console log that the device was purged before being used again or sent to be recycled.
We are working with some older models like the 2960 and 2960-S, that don’t have it, but we were going to test if formatting or using the “format flash:” or “write erase” or “erase /all non-default” commands 3 or more times would work?
If not, do I have to erase the flash and fill it up with randoms or zero out another way?
Can anyone add input there?
Thank you!
Solved! Go to Solution.
08-19-2025 11:45 PM
On older devices like the 2960/2960-S, factory-reset secure is not available, so meeting NIST 800-88 requirements requires manual steps.
Here’s what’s commonly accepted:
write erase + erase flash: + erase /all nvram: – this clears config and some data but does not securely wipe flash.
For NIST compliance, you typically need to:
Format the flash using format flash:
Fill the flash with random or zero data (manually or via script using TFTP/copied files)
Repeat 3x (as per NIST recommendation for non-crypto erasure)
You can also copy a large dummy file repeatedly until the flash is full, then reformat
08-20-2025 05:15 PM
The "format flash:" command will only empty the entire flash.
08-19-2025 09:04 PM
The command "factory-reset" is only for IOS-XE. Classic IOS does not have this command but formatting the flash is as good as it gets.
08-20-2025 05:45 AM
Hi Leo, thank you for clearing that up.
For classic IOS, does the format command write the entire flash every time you issue it? Or would I need to write over the “empty” space?
08-20-2025 07:26 AM
Usually a format just resets the control structures for the media, much like a file deletion or erasure resets the control information for an individual file. I.e. file contents are still on the media but can now be rewritten.
As suggested by @Stefan Mihajlov copying data onto the flash would overwrite prior contents.
Possibly the easiest way to accomplish that might be to copy a file larger than free space. The copy will fail, when the free space is exhausted.
As to the NIST recommendation to do this 3x, I recall that addresses disk media might have a faint copy of the prior data on the edge of a track. I don't know if it applies to flash. (Even if it doesn't, I could see NIST just providing one recommendation that works everywhere even if not necessary everywhere.)
08-20-2025 05:15 PM
The "format flash:" command will only empty the entire flash.
08-19-2025 11:45 PM
On older devices like the 2960/2960-S, factory-reset secure is not available, so meeting NIST 800-88 requirements requires manual steps.
Here’s what’s commonly accepted:
write erase + erase flash: + erase /all nvram: – this clears config and some data but does not securely wipe flash.
For NIST compliance, you typically need to:
Format the flash using format flash:
Fill the flash with random or zero data (manually or via script using TFTP/copied files)
Repeat 3x (as per NIST recommendation for non-crypto erasure)
You can also copy a large dummy file repeatedly until the flash is full, then reformat
08-20-2025 06:32 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide