+ Reply to Thread
Results 1 to 6 of 6
  1. Junior Member
    Join Date
    May 2008
    Posts
    1
    #1

    Default Accidently deleted config.text file

    Hello Everyone. I know that this post probably sounds familiar but deleted my config.text file. I can load the new IOS no problem but withou the file the switch does not boot properly. Am I missing something or is there a command to get the switch to recreat the config.text file... In the other post regarding this topic, the poster never really explained how he was able to recreat the config.text file.


    Anyway

    Thanks in advance

    Jonathan
    Reply With Quote Quote  


  2. Login/register to remove this advertisement.
  3. Cisco Moderator mikej412's Avatar
    Join Date
    May 2005
    Location
    Chicago
    Posts
    10,192

    Certifications
    CCNP CCIP CCSP CCVP CCDP CCDA CCNA CS-CIPSS CS-CIPTDS CS-CIPTOS CS-CIPCSS CS-CFWS CS-CVPNS CS-CISecS ISSP 4013 4011
    #2

    Default Re: Accidently deleted config.text file

    What do you mean by doesn't boot properly?

    If you had an IOS image in flash and no config.text file, most switches would ask if you want to run setup to configure the switch.

    What model of switch?
    Reply With Quote Quote  

  4. Senior Member Netwurk's Avatar
    Join Date
    May 2005
    Location
    Philadelphia, PA
    Posts
    1,148

    Certifications
    CCNA, Network+, A+ (CCNP Progress: 1/3)
    #3
    People delete the config.text all the time, it's what you do if you forget the password or have bought a used switch. (you could also rename it)

    You can also hold the mode button down for 10 seconds which renames the two startup files (config.text and private-config.text). Useful if you can't get to the command line.

    The mode reset can be disabled with the "no setup express" command, so if it's been disabled the reset won't work.

    If your goal is to totally reset your switch, make sure you delete the vlan.dat file also.
    Reply With Quote Quote  

  5. Junior Member
    Join Date
    Mar 2008
    Posts
    10
    #4
    People delete the config.text all the time, it's what you do if you forget the password
    Deleting the config probably isnt the best way to recover a password.
    Reply With Quote Quote  

  6. Senior Member Netwurk's Avatar
    Join Date
    May 2005
    Location
    Philadelphia, PA
    Posts
    1,148

    Certifications
    CCNA, Network+, A+ (CCNP Progress: 1/3)
    #5
    Quote Originally Posted by Aaronfb
    People delete the config.text all the time, it's what you do if you forget the password
    Deleting the config probably isnt the best way to recover a password.
    Technically, the best way (and the official Cisco way) is to rename the config.text file in case you need the old config. If you buy a used switch, you most likely are not going to use the old config so you may as well delete it.
    Reply With Quote Quote  

  7. Senior Member bighornsheep's Avatar
    Join Date
    Jul 2006
    Location
    Toronto, Ontario, Canada
    Posts
    1,527

    Certifications
    CCDP, CCNP, CCDA, CCNA, ITIL Foundation, MCSA, MCDST, MCP, A+, Network+
    #6
    Quote Originally Posted by Netwurk
    Technically, the best way (and the official Cisco way) is to rename the config.text file in case you need the old config. If you buy a used switch, you most likely are not going to use the old config so you may as well delete it.
    Depends on what you're trying to achieve. If your goal is to recover/reset the password, you should rename config.text, then boot up, rename it back to config.text and then do a configure from memory which loads config.text back into ram, change your password, and issue write mem.
    Reply With Quote Quote  

+ Reply to Thread

Social Networking & Bookmarks