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

copy flash tftp command failed on Cisco 3750 switch

I have a cisco 3750 swicth which i want to load a new ios to but unfortunately there's no enough space on the flash. This means that i need to backup the cureent (old) ios to my tftp server but the command keeps failing. It always gives 'No such file or directory' error .

The free space on the flash is 8mb and my new ios is about 11mb.

I also went inside the directory where the old is and inputed the same copy command but to no avail.

Below are some of the command failure on the swicth:

VNPSWITCH#sh flas

Directory of flash:/

    2  -rwx           5   Mar 2 1993 16:31:57 +00:00  private-config.text

    4  -rwx        1336   May 7 1993 02:07:25 +00:00  vlan.dat

    5  drwx         192   Apr 4 1993 04:36:26 +00:00  c3750-ipbase-mz.122-25.SEB

4

  363  -rwx        3919   Mar 2 1993 16:31:57 +00:00  config.text

15998976 bytes total (8884736 bytes free)

VNPSWITCH#copy fla

VNPSWITCH#copy flash tf

VNPSWITCH#copy flash tftp:

Source filename flash:c3750-ipbase-mz.122-25.SEB4/c3750-ipbase-mz.122-25.SEB4.bin

Address or name of remote host []? 172.19.2.214

Destination filename [c3750-ipbase-mz.122-25.SEB4.bin]?

%Error opening flash:c3750-ipbase-mz.122-25.SEB4/c3750-ipbase-mz.122-25.SEB4.bin

(No such file or directory)

Please assist.

Usman.

2 ACCEPTED SOLUTIONS

Accepted Solutions
New Member

Re: copy flash tftp command failed on Cisco 3750 switch

I guess the file you are looking for is there, without the .bin extension but it's there.

Could you have done something before that renamed the file?

Anyway, download it and compare its MD5/SHA with the original (not the IOS combined with the web files). As far as I remember you can get that hash from cisco.com.

Also, if you already know the IOS version that you are currently running, download it from cisco.com and keep it as a backup.

Cheers,

New Member

Re: copy flash tftp command failed on Cisco 3750 switch

Hello,

Just a stupid question...have you tried to make a reload on the switch? I believe that he goes to rommon. It seems like someone delete the file. It should appears...

Regards,

Tiago

28 REPLIES
Cisco Employee

Re: copy flash tftp command failed on Cisco 3750 switch

Hello,

Please try the following:

VNPSWITCH#copy flash tftp:
Source filename flash:/c3750-ipbase-mz.122-25.SEB4/c3750-ipbase-mz.122-25.SEB4.bin
Address or name of remote host []? 172.19.2.214

Destination filename [c3750-ipbase-mz.122-25.SEB4.bin]?

Hope this helps.

Regards,

NT

New Member

Re: copy flash tftp command failed on Cisco 3750 switch

Hi Nagaraja,

I have tried it and below is the result:

VNPSWITCH#copy flas

VNPSWITCH#copy flash tf

VNPSWITCH#copy flash tftp:

Source filename [*flash:/c3750-ipbase-mz.122-25.SEB4/c3750-ipbase-mz.122-25.SEB4

.bin*]? flash:/c3750-ipbase-mz.122-25.SEB4/c3750-ipbase-mz.122-25.SEB4.bin

Address or name of remote host []? 172.19.2.214

Destination filename [c3750-ipbase-mz.122-25.SEB4.bin]?

%Error opening flash:/c3750-ipbase-mz.122-25.SEB4/c3750-ipbase-mz.122-25.SEB4.bi

n (No such file or directory)

VNPSWITCH#

Any more help from you guys.

Thanks,

Usman

VIP Super Bronze

Re: copy flash tftp command failed on Cisco 3750 switch

Hi Usman,

From the error message, it sounds like you do not have the image in the right TFTP directory.

Try putting it in root of the TFTP server and test again,

HTH

Reza

New Member

Re: copy flash tftp command failed on Cisco 3750 switch

Hi Reza,

I'm actually moving the file from flash to tftp not the reverse.

Thanks for the effort.

Usman

New Member

Hay Usman,

Hay Usman,

just try this i was having same issue & i get success.

run command 

YourSwitchhostname#show version

find the line in out put of show version command  System image file is "flash:/c3750e-universalk9-mz.150-2.SE4/c3750e-universalk9-mz.150-2.SE4.bin"

now copy from - flash:/c3750e-universalk9-mz.150-2.SE4/c3750e-universalk9-mz.150-2.SE4.bin

now run command 

copy flash tftp:

Source filename flash:/c3750e-universalk9-mz.150-2.SE4/c3750e-universalk9-mz.150-2.SE4.bin (Past the copied path)

Address or name of remote host []? 192.168.16.150 (your tftp server address)
Destination filename [c3750e-universalk9-mz.150-2.SE4.bin]?
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
20397568 bytes copied in 168.544 secs (121022 bytes/sec)

Regards,

Mohammed Ahmad

please comment if you / any one get help from this post

New Member

Re: copy flash tftp command failed on Cisco 3750 switch

Hello Guys,

I still ca't locate the file (.bin) in the switch. I have changed directroy to flash:c3750-ipbase-mz.122-25.SEB4 but still can't find the file.

How do I locate this .bin file? I guess if I can locate it I would be good to go.

Guys, please don't give up.

Help out.

Usman,.

New Member

copy flash tftp command failed on Cisco 3750 switch

Hi,

     Use only simple method,,,,,,,,,,,,,,,,,,

1)  First Command : SSu-L3# sh flash :

2) 2nd Command   : SSu-L3# sh flash: | redirect flash:             Just press enter

3) 3rd Command    : SSu-L3# copy flash:  tftp:

                            : SSu-L3#Source File Name ?

                            :SSu-L3# Address or Name of remote host ?

                            :SSu-L3# Destination filenaem !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!}}] ? yes

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Done.

Best Regards,

Muhammad Imran

Network Engineer (SEQUEL SYSTEMS Inc.)

Network Engineer( NESPAK)

New Member

copy flash tftp command failed on Cisco 3750 switch

Dear Nagaraja

what about the reverse operation , i mean i faced the same ERROR when i try to copy the IOS image from TFTP to Flash ... please help to do correctly ?

New Member

Re: copy flash tftp command failed on Cisco 3750 switch

Thank you,.

This was very helpful.

New Member

Re: copy flash tftp command failed on Cisco 3750 switch

Hi you dont actually have enough space on flash anyway if the IOS is 11mb.

I would try though if there was enough storage copy flash:/c3750-ipbase-mz.122-25.SEB tftp

New Member

Re: copy flash tftp command failed on Cisco 3750 switch

Hi Pal,

I have tried as you said and below is error again:

VNPSWITCH#cd flash:/c3750-ipbase-mz.122-25.SEB4

VNPSWITCH#copy flash:/c3750-ipbase-mz.122-25.SEB4 tftp

Address or name of remote host []? 172.19.2.214

Destination filename [c3750-ipbase-mz.122-25.SEB4]?

%Error reading flash:/c3750-ipbase-mz.122-25.SEB4 (Is a directory)

VNPSWITCH#$/c3750-ipbase-mz.122-25.SEB4/c3750-ipbase-mz.122-25.SEB4.bin tftp

Address or name of remote host []? 172.19.2.214

Destination filename [c3750-ipbase-mz.122-25.SEB4.bin]?

%Error opening flash:/c3750-ipbase-mz.122-25.SEB4/c3750-ipbase-mz.122-25.SEB4.bi

n (No such file or directory)

VNPSWITCH#

I appreciate your concern.

usman

New Member

Re: copy flash tftp command failed on Cisco 3750 switch

Can you do a dir command in each folder so it shows what is in each directory?

New Member

Re: copy flash tftp command failed on Cisco 3750 switch

Hello Guys,

I still ca't locate the file (.bin) in the switch. I have changed directroy to flash:c3750-ipbase-mz.122-25.SEB4 but still can't find the file.

How do I locate this .bin file? I guess if I can locate it I would be good to go.

Guys, please don't give up.

Help out.

Usman,.

New Member

Re: copy flash tftp command failed on Cisco 3750 switch

Hello Usman,

Did you tried 'archive upload-sw'?

Anyway I think you are typing the filename wrong, actually the path name.

Try one of these two:

1)

copy flash:c3750-ipbase-mz.122-25.SEB4/c3750-ipbase-mz.122-25.SEB4.bin tftp:

2)

copy flash tftp:

when asked about the source filename just type:

c3750-ipbase-mz.122-25.SEB4/c3750-ipbase-mz.122-25.SEB4.bin

What I'm seeing from your copy & paste looks like you are typing

flash:c3750-ipbase-mz.122-25.SEB4/c3750-ipbase-mz.122-25.SEB4.bin

On the other hand... could just be my eyes tricking me.

HTH

New Member

Re: copy flash tftp command failed on Cisco 3750 switch

Hello Guys,

I still ca't locate the file (.bin) in the switch. I have changed directroy to flash:c3750-ipbase-mz.122-25.SEB4 but still can't find the file.

How do I locate this .bin file? I guess if I can locate it I would be good to go.

Guys, please don't give up.

Help out.

Usman,.

New Member

Re: copy flash tftp command failed on Cisco 3750 switch

Can you do an dir  flash:c3750-ipbase-mz.122-25.SEB4 and see what the output is. The only thing I can think of is your image file name isn't what your typing in. So dir the directory and see what the image name is in the directory.

New Member

Re: copy flash tftp command failed on Cisco 3750 switch

Hi Andersen,

Below is the command you asked me to try and see the result below;

15998976 bytes total (8884736 bytes free)

VNPSWITCH#cd flash:c3750-ipbase-mz.122-25.SEB4

VNPSWITCH#dir

Directory of flash:/c3750-ipbase-mz.122-25.SEB4/


    7  drwx        4032   Mar 1 1993 00:05:49 +00:00  html

  362  -rwx         579   Mar 1 1993 00:06:15 +00:00  info

    3  -rwx     5508786   Apr 4 1993 04:29:47 +00:00  c3750-ipbase-mz.122-25.SEB

4


15998976 bytes total (8884736 bytes free)

VNPSWITCH#

You can see there's no .bin file in that directory. The question is where else is that file be found?

Thanks for your effort.

Usman

New Member

Re: copy flash tftp command failed on Cisco 3750 switch

Hello Usman,

That's strange, when you do the dir command you shoud see the bin file.

Please, do the show version command just to see what is the correct name of the bin file that is used as a system image file.

Regards,

Tiago

New Member

Re: copy flash tftp command failed on Cisco 3750 switch

Hello Tiago,

Below is the sh version command on the swicth.:

VNPSWITCH uptime is 6 weeks, 2 days, 2 hours, 52 minutes

System returned to ROM by power-on

System image file is "flash:c3750-ipbase-mz.122-25.SEB4/c3750-ipbase-mz.122-25.S

EB4.bin"

I believe the system file name is the same with what we have been trying all this while. How do we locate this .bin file is the big question now.

Thanks

Usman.

New Member

Re: copy flash tftp command failed on Cisco 3750 switch

I guess the file you are looking for is there, without the .bin extension but it's there.

Could you have done something before that renamed the file?

Anyway, download it and compare its MD5/SHA with the original (not the IOS combined with the web files). As far as I remember you can get that hash from cisco.com.

Also, if you already know the IOS version that you are currently running, download it from cisco.com and keep it as a backup.

Cheers,

New Member

Re: copy flash tftp command failed on Cisco 3750 switch

Hello Dear,

That was a nice one from you!

I tried the copy command from the dir flash:c3750-ipbase-mz.122-25.SEB4 and it worked fine.

I guess as you said the .bin extension was modified on the image file and that was why I could not see it in all the directories.

In the command I only added .bin when asked the "destination filename" as you can see in the command below.

Below are the command i tried in the solving this problem.

I really appreciate you all guys!

VNPSWITCH#sh flas


Directory of flash:/


    2  -rwx           5   Mar 2 1993 16:31:57 +00:00  private-config.text

    4  -rwx        1336   May 7 1993 02:07:25 +00:00  vlan.dat

    5  drwx         192   Apr 4 1993 04:36:26 +00:00  c3750-ipbase-mz.122-25.SEB

4

  363  -rwx        3919   Mar 2 1993 16:31:57 +00:00  config.text


15998976 bytes total (8884736 bytes free)

VNPSWITCH#cd flash:c3750-ipbase-mz.122-25.SEB4

VNPSWITCH#copy flash:c3750-ipbase-mz.122-25.SEB4 tf

VNPSWITCH#copy flash:c3750-ipbase-mz.122-25.SEB4 tftp:

Address or name of remote host []? 172.19.2.214

Destination filename [c3750-ipbase-mz.122-25.SEB4]? c3750-ipbase-mz.122-25.SEB4.

bin

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

5508786 bytes copied in 23.085 secs (238631 bytes/sec)

VNPSWITCH#

Have a nice time all.

Usman.

New Member

Re: copy flash tftp command failed on Cisco 3750 switch

Usman don't forget to check the MD5/SHA hash just to be on the safe side.

Cheers,

New Member

Re: copy flash tftp command failed on Cisco 3750 switch

Hello Rodrigo,

Actually what I wanted to do was just backup (because of space issue) this ios on the switch so that I could download a crypto ios from cisco and upload on the swicth.

But , I don't know why do I need compare MD5/SHA with the ios's? Do I need to compare it with this my new crypto ios? And how do I do that?

Thanks,

Usman

New Member

Re: copy flash tftp command failed on Cisco 3750 switch

You would compare the MD5 to verify the file is correct and unmodified (someone correct me if I'm wrong). But since you've backed up the IOS now all you should have to do is delete the directory (router#del /force /rec flash:directoryname and then create a directory that you want to put the image in and tftp it over (mkdir flash:/directoryname then copy the image to the directory copy tftp: flash:/directoryname) change the boot image and you should be good to go.

New Member

Re: copy flash tftp command failed on Cisco 3750 switch

Hello,

Just a stupid question...have you tried to make a reload on the switch? I believe that he goes to rommon. It seems like someone delete the file. It should appears...

Regards,

Tiago

Purple

Re: copy flash tftp command failed on Cisco 3750 switch

  you don't need to do a check , a check is done at the end of the file copy

anyway.  If you are using a .bin file to copy just copy it into flash and it

will show up as a .bin file.  If you are using a .tar file then you have to use the archive command to extract th

e files and it will automatically create a new directory with the .bin file in

side the directory , only the directory will show up in flash not the .bin fil;e.

New Member

Re: copy flash tftp command failed on Cisco 3750 switch

VNPSWITCH#copy flash tftp:

Source filename flash:/c3750-ipbase-mz.122-25.SEB4/c3750-ipbase-mz.122-25.SEB4.bin

Address or name of remote host []? 172.19.2.214

Destination filename [c3750-ipbase-mz.122-25.SEB4.bin]?

New Member

copy flash tftp command failed on Cisco 3750 switch

Yes I got the same problem, but later I fixed it this way

  Do sh version first and copy the IOS path like:- flash:/c3750-ipbase-mz.122-25.SEB4/c3750-ipbase-mz.122-25.SEB4.bin

Issue the command :- copy flash tftp:

When asking for source file name past the same u copied

Rest of the things will be same

40832
Views
40
Helpful
28
Replies
CreatePlease to create content