cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
146763
Views
5
Helpful
15
Replies

Delete Startup Config

anjery1234
Level 1
Level 1

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

3 Accepted Solutions

Accepted Solutions

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 memory

1 -rw- 2120 running-config

2 dr-x 0 vfiles

No space information available

Directory of nvram:/

382 -rw- 5 startup-config

383 ---- 24 private-config

393216 bytes total (393135 bytes free)

Switch#

Switch#del nvram:startup-config

Delete filename [startup-config]?

Delete nvram:startup-config? [confirm]

Switch#

HTH

Victor

View solution in original post

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

HTH, John *** Please rate all useful posts ***

View solution in original post

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.

View solution in original post

15 Replies 15

a.pinheiro
Level 1
Level 1

Did you try erase startup-config command?

Antonio

I did erase start.

The system took the command, i write mem, i reloaded; startup config still there.

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

HTH, John *** Please rate all useful posts ***

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

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

HTH, John *** Please rate all useful posts ***

lhoyle
Level 1
Level 1

I use "clear start".

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

HTH, John *** Please rate all useful posts ***

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 memory

1 -rw- 2120 running-config

2 dr-x 0 vfiles

No space information available

Directory of nvram:/

382 -rw- 5 startup-config

383 ---- 24 private-config

393216 bytes total (393135 bytes free)

Switch#

Switch#del nvram:startup-config

Delete filename [startup-config]?

Delete nvram:startup-config? [confirm]

Switch#

HTH

Victor

This worked fine.

My mistake was the fact that after del nvram:startup-config, i was doing wr mem again.

John,

This is what is listed

Directory of nvram:/

1918 -rw- 19750 startup-config

1919 ---- 24 private-config

1920 -rw- 19750 underlying-config

1 ---- 4 rf_cold_starts

2 ---- 36 persistent-data

3 -rw- 0 ifIndex-table

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

HTH, John *** Please rate all useful posts ***

didn't work.

running sup720 with s72033-ipservicesk9-mz.122-18.SXF5.bin

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.

Edison,

You saved me.

i reloaded without the wr m.

worked 100%.

All config is gone except vlan info

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card