Specifications

2-202
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.3.0XO(15.1(1)XO)
OL_28738-01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
erase
Cisc o IOS Configuration Fundam entals Configuration C ommand Reference, Release 12.2, at this
URL:
http://www. cisco. com/en/ US/doc s/ios/ 12_2/ config fun/co mmand /refe rence/ ffun_ r.html
Caution The erase /all non-default command can erase Cisco IOS images in bootflash:. Ensure that a Cisco IOS
image can be copied back to the bootf lash: (such as, from a acces sible TFTP server or a flash c ard
inserted in slot0:) (available on most chassis models), or that the switch can boot from a image stored in
an accessible network server.
Examples This example shows how to erase the files and configuration in a nonvolatile storage and reset the switch
to factory defau lt sett ings:
Switch# erase /all non-default
Switch#
Erase and format operation will destroy all data in non-volatile storage. Continue?
[confirm]
Formatting bootflash: ...
Format of bootflash complete
Erasing nvram:
Erasing cat4000_flash:
Clearing crashinfo:data
Clearing the last power failure timestamp
Clearing all ROMMON variables
Setting default ROMMON variables:
ConfigReg=0x2101
PS1=rommon ! >
EnableAutoConfig=1
Setting vtp mode to transparent
%WARNING! Please reboot the system for the changes to take effect
Switch#
00:01:48: %SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram
Switch#
This example shows how to erase the cont ents in nvram.
Switch# erase /all nvram:
Erasing the nvram filesystem will remove all files! Continue? [confirm]
[OK]
Erase of nvram: complete
Switch#
00:38:10: %SYS-7-NV_BLOCK_INIT: Initalized the geometry of nvram
Switch#
This example shows how to erase filesystem cat4000_flash.
Switch# erase cat4000_flash:
Erasing the cat4000_flash filesystem will remove all files! Continue? [confirm]
[OK]
Erase of cat4000_flash:complete
Switch#