clear config

Use the clear config command to clear the system or module configuration information stored in NVRAM.

clear config {mod_num | rmon | all}

Syntax Description
mod_num  Number of the module. 
rmon  Keyword that clears all RMON configurations, including the historyControlTable, the alarmTable, the eventTable, and the ringStation ControlTable. 
all  Keyword that specifies all modules and system configuration information, including the IP address. 
Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Privileged.

Usage Guidelines

When using an RSM, clear config clears the portion of the RSM configuration kept by the Catalyst 5000 series switch supervisor engine. The portion of the configuration kept by the RSM must be cleared at the router level (router> prompt).

Before using the clear config all command, save a backup of the configuration.

Examples

This example shows how to delete the configuration information in NVRAM on module 2:

Console> (enable) clear config 2
This command will clear module 2 configuration.
Do you want to continue (y/n) [n]? y
..............................
Module 2 configuration cleared.
Console> (enable)
  

This example shows how to delete the configuration information stored in NVRAM on module 1 (the supervisor module):

Console> (enable) clear config 1
This command will clear module 1 configuration.
Do you want to continue (y/n) [n]? y
......
Module 1 configuration cleared.
host%
  

This example shows how to delete the configuration information for the entire Catalyst 5000 series switch:

Console> (enable) clear config all
This command will clear all configuration in NVRAM.
Do you want to continue (y/n) [n]? y
...........................................
Connection closed by foreign host
host%
  
Related Commands

configure
show config