04-30-2009 07:31 AM - edited 03-07-2019 12:31 AM
Hello,
Just need help erasing the entire startup config on a switch running s72033-ipservicesk9-mz.122-18.SXF5.bin
I used write erase, it didn't work.
Please help
Solved! Go to Solution.
04-30-2009 08:59 AM
Hi:
Switch#dir all-files
Directory of flash:/
2 -rwx 365 Mar 1 1993 00:24:39 +00:00 system_env_vars
3 -rwx 7465382 Mar 1 1993 00:23:53 +00:00 c3550-ipservicesk9-mz.122-35.SE5.bin
4 -rwx 24 Mar 1 1993 08:16:38 +00:00 private-config.text
5 -rwx 0 Mar 1 1993 00:24:39 +00:00 env_vars
6 -rwx 4300443 Mar 1 1993 00:43:16 +00:00 c3550-i5q3l2-mz.121-22.EA10b.bin
9 -rwx 5 Mar 1 1993 08:16:38 +00:00 config.text
15998976 bytes total (4230144 bytes free)
Directory of zflash:/
2 -rwx 365 Mar 1 1993 00:24:39 +00:00 system_env_vars
3 -rwx 7465382 Mar 1 1993 00:23:53 +00:00 c3550-ipservicesk9-mz.122-35.SE5.bin
4 -rwx 24 Mar 1 1993 08:16:38 +00:00 private-config.text
5 -rwx 0 Mar 1 1993 00:24:39 +00:00 env_vars
6 -rwx 4300443 Mar 1 1993 00:43:16 +00:00 c3550-i5q3l2-mz.121-22.EA10b.bin
9 -rwx 5 Mar 1 1993 08:16:38 +00:00 config.text
15998976 bytes total (4230144 bytes free)
Directory of system:/
3 dr-x 0
1 -rw- 2120
2 dr-x 0
No space information available
Directory of nvram:/
382 -rw- 5
383 ---- 24
393216 bytes total (393135 bytes free)
Switch#
Switch#del nvram:startup-config
Delete filename [startup-config]?
Delete nvram:startup-config? [confirm]
Switch#
HTH
Victor
04-30-2009 09:16 AM
Ah. Don't write mem after "clear start". You're rewriting the startup file when you do that.
Do clear start, reboot. No write mem. =)
HTH,
John
04-30-2009 09:23 AM
Are you replying 'Yes', when prompted to save the configuration before rebooting - after the 'write erase' command?
If so, you are copying the running-config (which has the current configuration) back to the startup-config. In other words, you are undoing the 'write erase' process.
__
Edison.
04-30-2009 07:50 AM
Did you try erase startup-config command?
Antonio
04-30-2009 09:14 AM
I did erase start.
The system took the command, i write mem, i reloaded; startup config still there.
04-30-2009 09:16 AM
Ah. Don't write mem after "clear start". You're rewriting the startup file when you do that.
Do clear start, reboot. No write mem. =)
HTH,
John
04-30-2009 09:27 AM
Thanks a lot John. You saved me. worked perfectly.
All config gone except vlan config.
200 RM_VIP_10.70.63.0/24 active
201 LDAP_VIP_10.66.132.0/24 active
04-30-2009 09:29 AM
Great! If you want the vlans deleted, you'll need to delete the vlan.dat file in flash:
Switch# del flash:vlan.dat
Then reload the switch and your vlans will be gone also.
HTH,
John
04-30-2009 08:16 AM
I use "clear start".
04-30-2009 08:28 AM
Write erase will clear out nvram. Since you said it's a switch, what are you trying to clear? If you do a "dir nvram:?" do you see a "nvram:startup-config" listed?
HTH,
John
04-30-2009 08:59 AM
Hi:
Switch#dir all-files
Directory of flash:/
2 -rwx 365 Mar 1 1993 00:24:39 +00:00 system_env_vars
3 -rwx 7465382 Mar 1 1993 00:23:53 +00:00 c3550-ipservicesk9-mz.122-35.SE5.bin
4 -rwx 24 Mar 1 1993 08:16:38 +00:00 private-config.text
5 -rwx 0 Mar 1 1993 00:24:39 +00:00 env_vars
6 -rwx 4300443 Mar 1 1993 00:43:16 +00:00 c3550-i5q3l2-mz.121-22.EA10b.bin
9 -rwx 5 Mar 1 1993 08:16:38 +00:00 config.text
15998976 bytes total (4230144 bytes free)
Directory of zflash:/
2 -rwx 365 Mar 1 1993 00:24:39 +00:00 system_env_vars
3 -rwx 7465382 Mar 1 1993 00:23:53 +00:00 c3550-ipservicesk9-mz.122-35.SE5.bin
4 -rwx 24 Mar 1 1993 08:16:38 +00:00 private-config.text
5 -rwx 0 Mar 1 1993 00:24:39 +00:00 env_vars
6 -rwx 4300443 Mar 1 1993 00:43:16 +00:00 c3550-i5q3l2-mz.121-22.EA10b.bin
9 -rwx 5 Mar 1 1993 08:16:38 +00:00 config.text
15998976 bytes total (4230144 bytes free)
Directory of system:/
3 dr-x 0
1 -rw- 2120
2 dr-x 0
No space information available
Directory of nvram:/
382 -rw- 5
383 ---- 24
393216 bytes total (393135 bytes free)
Switch#
Switch#del nvram:startup-config
Delete filename [startup-config]?
Delete nvram:startup-config? [confirm]
Switch#
HTH
Victor
04-30-2009 09:41 AM
This worked fine.
My mistake was the fact that after del nvram:startup-config, i was doing wr mem again.
04-30-2009 09:17 AM
John,
This is what is listed
Directory of nvram:/
1918 -rw- 19750
1919 ---- 24
1920 -rw- 19750
1 ---- 4
2 ---- 36
3 -rw- 0
04-30-2009 09:19 AM
Do this:
Switch#wr erase
Hit enter to confirm. Reboot. The switch should come up and ask if you want to enter the initial configuration mode. You're ALWAYS going to have a startup file, it's just cleared to defaults when you erase it.
HTH,
John
04-30-2009 09:15 AM
didn't work.
running sup720 with s72033-ipservicesk9-mz.122-18.SXF5.bin
04-30-2009 09:23 AM
Are you replying 'Yes', when prompted to save the configuration before rebooting - after the 'write erase' command?
If so, you are copying the running-config (which has the current configuration) back to the startup-config. In other words, you are undoing the 'write erase' process.
__
Edison.
04-30-2009 09:30 AM
Edison,
You saved me.
i reloaded without the wr m.
worked 100%.
All config is gone except vlan info
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide