cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
80301
Views
115
Helpful
32
Replies
Nabaruma
Beginner

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.

32 REPLIES 32

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

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,.

Rodrigo Curado
Beginner

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

Nabaruma
Beginner

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,.

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.

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

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

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.

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,

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.

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

Cheers,

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

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.

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

  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.