02-20-2018 01:42 PM - edited 03-08-2019 01:57 PM
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#
Solved! Go to Solution.
02-21-2018 12:19 AM
Hi
Maybe there are some hidding characters. Try to complete the name by hitting tab key.
copy flash:config<tabkey>
/Mikael
02-20-2018 02:30 PM
Can't see the entire command but can you try it without the second flash?
Example:
renam flash:test1.text test2.text
HTH
02-20-2018 02:45 PM
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.
02-21-2018 12:19 AM
Hi
Maybe there are some hidding characters. Try to complete the name by hitting tab key.
copy flash:config<tabkey>
/Mikael
02-21-2018 07:34 AM
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!
11-07-2018 02:57 PM
Great, worked for me too.
05-11-2023 07:29 AM
I get the error message %%Cannot rename between filesystems
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