11-29-2011 11:29 AM - edited 03-07-2019 03:39 AM
Due to typo, I ended up having 0 Byte file named something like (no quotes):
"D:Tblahblah_etc_blah"
created on bootflash: volume. Due to the ':' (colon) sign in filename I couldn't delete it after trying all known approaches. Does anybody know how to perform deletion?
Regards,
S.
11-29-2011 02:38 PM
Sasha Dundovic wrote:
Due to typo, I ended up having 0 Byte file named something like (no quotes):
"D:Tblahblah_etc_blah"
created on bootflash: volume. Due to the ':' (colon) sign in filename I couldn't delete it after trying all known approaches. Does anybody know how to perform deletion?
Regards,
S.
You say "all possible metods" - what possible methods have you tried?
Have you done
del "D:Tblahblah_etc_blah" including the " marks?
Cheers.
11-29-2011 02:49 PM
Please paste the output of dir bootlash: and let us kmow that commands you have tried to delete the file.
11-30-2011 09:13 AM
Here's the bootflash: content :
-----
47 Nov 15 13:45:56 2011 ..tmp-kickstart
37 Nov 15 13:46:01 2011 ..tmp-system
20699136 Nov 15 13:45:56 2011 .tmp-kickstart
74281634 Nov 15 13:46:01 2011 .tmp-system
0 Nov 15 13:30:34 2011 D:Tn4000-bk9-kickstart.4.1.2.E1.1g
.bin
49152 Nov 15 13:45:55 2011 lost+found/
20798976 Nov 15 13:37:08 2011 n4000-bk9-kickstart.4.1.2.E1.1g.bin
74337505 Nov 15 13:41:53 2011 n4000-bk9.4.1.2.E1.1g.bin
4096 Mar 02 06:04:34 2011 vdc_2/
4096 Mar 02 06:04:34 2011 vdc_3/
4096 Mar 02 06:04:34 2011 vdc_4/
-----
The file in question is 'D:Tn4000-bk9-kickstart.4.1.2.E1.1g.bin'. So far I tried:
del D:Tn4000-bk9-kickstart.4.1.2.E1.1g.bin
del 'D:Tn4000-bk9-kickstart.4.1.2.E1.1g.bin'
del "D:Tn4000-bk9-kickstart.4.1.2.E1.1g.bin"
del D*.bin
del D*
del bootflash:D:Tn4000-bk9-kickstart.4.1.2.E1.1g.bin
del bootflash:D*
but I always get either:
No such file or directory
or
% Invalid URI path at '^' marker.
Honestly, to me, it's a bug. System shouldn't allow creating such filename.
12-04-2011 03:39 PM
Sasha Dundovic wrote:
Here's the bootflash: content :
-----
47 Nov 15 13:45:56 2011 ..tmp-kickstart
37 Nov 15 13:46:01 2011 ..tmp-system
20699136 Nov 15 13:45:56 2011 .tmp-kickstart
74281634 Nov 15 13:46:01 2011 .tmp-system
0 Nov 15 13:30:34 2011 D:Tn4000-bk9-kickstart.4.1.2.E1.1g
.bin
49152 Nov 15 13:45:55 2011 lost+found/
20798976 Nov 15 13:37:08 2011 n4000-bk9-kickstart.4.1.2.E1.1g.bin
74337505 Nov 15 13:41:53 2011 n4000-bk9.4.1.2.E1.1g.bin
4096 Mar 02 06:04:34 2011 vdc_2/
4096 Mar 02 06:04:34 2011 vdc_3/
4096 Mar 02 06:04:34 2011 vdc_4/
-----
The file in question is 'D:Tn4000-bk9-kickstart.4.1.2.E1.1g.bin'. So far I tried:
del D:Tn4000-bk9-kickstart.4.1.2.E1.1g.bin
del 'D:Tn4000-bk9-kickstart.4.1.2.E1.1g.bin'
del "D:Tn4000-bk9-kickstart.4.1.2.E1.1g.bin"
del D*.bin
del D*
del bootflash:D:Tn4000-bk9-kickstart.4.1.2.E1.1g.bin
del bootflash:D*
but I always get either:
No such file or directory
or
% Invalid URI path at '^' marker.
Honestly, to me, it's a bug. System shouldn't allow creating such filename.
Try
del D\:Tn4000-bk9-kickstart.4.1.2.E1.1g.bin
or
del "D\:Tn4000-bk9-kickstart.4.1.2.E1.1g.bin"
or
del D?Tn400-bk9-kickstart.4.1.2.E1.1g.bin
Cheers
01-24-2012 07:09 AM
Took me a while to get back to this problem.....The latest suggestions didn't work, too. Here's the output:
---
INDRK2CH1SWA# del D\:Tn4000-bk9-kickstart.4.1.2.E1.1g.bin
^
% Invalid URI path at '^' marker.
INDRK2CH1SWA# del "D\:Tn4000-bk9-kickstart.4.1.2.E1.1g.bin
"
^
% Invalid URI path at '^' marker.
---
In attempt to even type '?' (question mark) it fails immediately:
---
INDRK2CH1SWA# del D?
^
% Invalid command at '^' marker.
?
---
I still believe this is a bug.
Regards,
S.
01-24-2012 07:38 AM
Hi Sasha,
Probably, if your aim is to just delete off that file, then you may try for this option.
1)Enable SCP server on the switch
2) Use some SCP software like WinSCP to access the switch.
3) Delete off the file from the flash
Do let me know if this helps. Will wait for your reply.
Thanks
Vivek
01-24-2012 07:52 AM
I have Nexus 4000 runnning system version 4.1(2)E1(1g). As I know (may be wrong), SCP server is supported starting with version 5? I don't see SCP server option in feature list:
NY5SWA(config)# feature ?
fip-snooping Enable/Disable fip-snooping
interface-vlan Enable/Disable interface vlan
lacp Enable/Disable LACP
lst Enable/Disable LST(Link State Tracking)
private-vlan Enable/Disable private-vlan
ssh Enable/Disable ssh
tacacs+ Enable/Disable tacacs+
telnet Enable/Disable telnet
udld Enable/Disable UDLD
Vivek, thanks for your suggestion, but it seems that's not an option in my case.
Regards,
S.
01-24-2012 01:27 PM
Ok, try this ...
COPY everything you want from the bootflash to your TFTP server or a USB stick (that's properly formatted and inserted to this appliance).
Next, format the current bootflash (command: format bootflash:). Once the format is done, copy back the files with the IOS going in first.
01-24-2012 06:26 PM
I'm aware that this is a possibility, but it's a 'brute force' one. I was trying to find out if there's some specific syntax to be used in order to delete this kind of filename in a regular way. Why? Because I want to clear out that there's no syntax that can delete this before contacting Cisco support to report this. Even being probably a minor glitch, system shouldn't allow you to create such filename if you can't delete it later, right?
Regards,
S.
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