1. Disconnect Power cable
  2. Connect the USB to serial cable
  3. Open Putty or similar terminal emulator and config it (9600, 8, N, 1)
  4. While reconnecting it press and hold the MODE button for 15 seconds
  5. release the button and you will see the SYS led going SOLID GREEN and the prompt "switch :" will appear
  6. run the following commands
  7. flash_init
  8. dir flash:
  9. delete flash:vlan.dat
  10. delete flash:config.text
  11. delete flash:config.text.backup
  12. boot
  13. wait for the switch to load the boot image and wait for it to ask for initial settings
  14. now we need to check the stack config and eventually reset the stack membership config
  15. answer "no" to the first question
  16. enter the enable contest
  17. run the sh switch command to check the number of the stack is assigned
  18. run conf t
  19. run switch <number of the switch returned by the previous command> renumber 1
  20.  run end
  21. run wr me
  22. run reload
  23. after the reboot check in the config if there are other switches configured as slave
  24. run sh run
  25. if you see this line in the config
    1. switch 1 provision ws-c3750g-48ps
    2. switch 2 provision ws-c3750g-48ps
  26. You need to run the following
  27. run conf t
  28. run no switch 2 provision ws-c3750g-48ps
  29. run end
  30. run wr mem
  31. Now the switch is completely reset to its factory default