Reset Cisco 2960 X series switch

Press Mode switch until SYST  flashes green and then solid orange  SYST 

After consoling into the switch (best practice is to be already cabled up and monitoring the boot to be sure) you will get to a selection where you will want to type flash_init

The Steps

Initialisation flash 

flash_init

This command removes the configuration file:

delete flash:config.text

Remove all vlan’s 

delete flash:vlan.dat

Remove any private configuration

delete flash:private-config.text

Finally boot.

boot

And that’s it done! your switch no longer has any configuration files.

Just the Code

flash_init
delete flash:config.text
delete flash:vlan.dat
delete flash:private-config.text
boot

AHK (AutoHotKeys)

One thing that always helps is well cheating.. after having to reset best part of 50 of these switches in one session your hands get a little tired so I created a dirty script to run to help saves my fingers! you can play with this config with the Sleeps to speed up the process but its miles better than having to copy and paste code.

^J:: ; CTRL+J Hotkey
Send, flash_init
Send, {Enter}
Sleep, 6000
Send, {Space}
Sleep, 25000
Send, {Enter}
Sleep, 300
Send, delete flash:config.text
Send, {Enter}
Sleep, 300
Send, y
Send, {Enter}
Sleep, 300
Send, delete flash:vlan.dat
Send, {Enter}
Sleep, 300
Send, y
Send, {Enter}
Sleep, 300
Send, delete flash:private-config.text
Send, {Enter}
Sleep, 300
Send, y
Send, {Enter}
Sleep, 300
Send, boot
Send, {Enter}
return

A List of devices that this document may work with

  • 2960 X Series
  • 2960 Plus Series