Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Delete Startup Config

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
Blue

Re: Delete Startup Config

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

Re: Delete Startup Config

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 ***
Hall of Fame Super Bronze

Re: Delete Startup Config

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.

15 REPLIES
New Member

Re: Delete Startup Config

Did you try erase startup-config command?

Antonio

New Member

Re: Delete Startup Config

I did erase start.

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

Re: Delete Startup Config

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 ***
New Member

Re: Delete Startup Config

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

Re: Delete Startup Config

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 ***
New Member

Re: Delete Startup Config

I use "clear start".

Re: Delete Startup Config

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 ***
Blue

Re: Delete Startup Config

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

New Member

Re: Delete Startup Config

This worked fine.

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

New Member

Re: Delete Startup Config

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

Re: Delete Startup Config

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 ***
New Member

Re: Delete Startup Config

didn't work.

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

Hall of Fame Super Bronze

Re: Delete Startup Config

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.

New Member

Re: Delete Startup Config

Edison,

You saved me.

i reloaded without the wr m.

worked 100%.

All config is gone except vlan info

Blue

Re: Delete Startup Config

Hi:

Didnt the solution I gave you work?

Im curious...

Thanks

76008
Views
0
Helpful
15
Replies