clear config
2-46 Basic Configuration
Do you want to continue (y/n) [n]?
clear config
Usethiscommandtocleartheuser‐definedconfigurationparameters.
Syntax
clear config [all]
Parameters
Defaults
Ifallisnotspecified,stackingconfigurationparameterswillnotbecleared.
Mode
Switchcommand,read‐write.
Usage
ExecutingthiscommandwillcleartheconfigurationinbothNVRAMandonthememorycard,if
oneisinstalledontheswitch.
ThiscommandwillnotcleartheIPaddressoftheswitch.Usetheclearipaddresscommandto
cleartheIPaddress.
Whenusingtheclearconfigcommandtoclear
configurationparametersinastack,itisimportant
torememberthefollowing:
•UseclearconfigtoclearconfigurationparameterswithoutclearingstackunitIDs.This
commandWILLNOTclearstackparametersandavoidstheprocessofre‐numberingthe
stack.
•Useclearconfigallwhenitisnecessarytoclearall
configurationparameters,includingstack
unitIDs(ifapplicable)andswitchpriorityvalues.
•UsetheclearipaddresscommandtocleartheIPaddress.
Configurationparametersandstackinginformationcanalsobeclearedonthemasterunitonlyby
selectingoption10(restoreconfigurationtofactorydefaults)fromthe bootmenuonswitch
startup.Thisselectionwillleavestackingprioritiesonallotherunits,ifapplicable.
Example
Thisexampleshowshowtoclearconfigurationparameters(includingstackingparameters,if
applicable):
D2(su)->clear config all
all (Optional)Clearsuser‐definedconfigurationparameters(andstackunit
numbersandpriorities,ifapplicable).