cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4548
Views
6
Helpful
6
Replies

Config File Renamed with Unusable Name

bradm124
Level 1
Level 1

Hello, I have a config file that was renamed to some gibberish, and I can't get it to change back.  Any thoughts?  Output from my attempts below should explain better than I can...

 

Switch#dir flash:
Directory of flash:/

3 -rwx 5043 Apr 4 1993 22:02:56 +00:00 config.old^[[D^[[D^[[Dtest.^[[C^[[C^[[C^[[D^[[D^[[D^[[D
4 -rwx 3828 Apr 4 1993 22:02:56 +00:00 private-config.text
5 -rwx 2072 Apr 4 1993 22:02:56 +00:00 multiple-fs
6 drwx 192 Mar 1 1993 00:06:32 +00:00 c2960-lanbasek9-mz.122-50.SE5

32514048 bytes total (20950016 bytes free)

Switch#$ld^[[D^[[D^[[Dtest.^[[C^[[C^[[C^[[D^[[D^[[D^[[D flash:config.text
Destination filename [config.text]?
%Error renaming flash:config.old^[[D^[[D^[[Dtest.^[[C^[[C^[[C^[[D^[[D^[[D^[[D to flash:config.text (No such file or directory)

Switch#copy flash:?
flash:c2960-lanbasek9-mz.122-50.SE5
flash:config.old^[[D^[[D^[[Dtest.^[[C^[[C^[[C^[[D^[[D^[[D^[[D
flash:multiple-fs
flash:private-config.text

Switch#$^[[D^[[D^[[Dtest.^[[C^[[C^[[C^[[D^[[D^[[D^[[D flash:config.text
Destination filename [config.text]?
%Error opening flash:config.old^[[D^[[D^[[Dtest.^[[C^[[C^[[C^[[D^[[D^[[D^[[D (No such file or directory)
Switch#

 

 

1 Accepted Solution

Accepted Solutions

Hi

Maybe there are some hidding characters. Try to complete the name by hitting tab key.

copy flash:config<tabkey>

/Mikael

View solution in original post

6 Replies 6

Reza Sharifi
Hall of Fame
Hall of Fame

Can't see the entire command but can you try it without the second flash?

Example:

renam flash:test1.text test2.text

HTH

Hello Reza,

 

Unfortunately that had the same result.  I think the problem is that it cannot find the original file with the name I am typing.

Hi

Maybe there are some hidding characters. Try to complete the name by hitting tab key.

copy flash:config<tabkey>

/Mikael

Mikael,

 

This is absolutely brilliant!  You are my hero.  I've used that before as a time saver, but completely forgot about it when dealing with this issue.  For reference, the successful command I used was:

 

rename flash:config<tabkey> config.text

 

Pressing the tab key auto-filled the rest of the name in a way that the switch accepted, and now everything is right in my world.  Thank you!

Great, worked for me too.

adarvela
Level 1
Level 1

I get the error message %%Cannot rename between filesystems