Resetting switches.
This is a bit harder
Connect the console cable to the switch
Start your term program
turn on the switch
press the mode button when the x1 light goes out.
flash_init
load_helper
dir flash:
rename flash:config.text flash:config.old
boot
//abort the config dialog
en
en sec new secret
en password
wr mem
That should do it for 2900 series catalyst switches anyway.