cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1468
Views
0
Helpful
10
Replies

Router c921 copying .bin from tftp server

shanxxrai
Level 1
Level 1

Under dir flash the image "c900-universalk9-mz.SPA.159-3.M2.bin" nor any ".bin" file is listed. When I try to copy from my tftp server (solarwinds) this is what I get --

Router#copy tftp: flash:

Address or name of remote host []? 192.168.1.1

Source filename []? c900-universalk9-mz.SPA.159-3.M2.bin

Destination filename [c900-universalk9-mz.SPA.159-3.M2.bin]? enter

%Warning:There is a file already existing with this name

Do you want to over write? [confirm] enter

Accessing tftp://192.168.1.1/c900-universalk9-mz.SPA.159-3.M2.bin...

Loading c900-universalk9-mz.SPA.159-3.M2.bin from 192.168.1.1 (via GigabitEthernet5): !

[Ok - 1165 bytes]

%Error opening flash:/c900universalk9-mz.SPA.159-3.M2.bin (No such file or directory)

 Why is not opening?

other methods have failed too!

on another method, it copied but still nothing under the list Router# dir flash

10 Replies 10

Leo Laohoo
Hall of Fame
Hall of Fame

@shanxxrai wrote:
%Warning:There is a file already existing with this name

Post the complete output to the command "dir".

I am concerned about this part of the output that was posted

Loading c900-universalk9-mz.SPA.159-3.M2.bin from 192.168.1.1 (via GigabitEthernet5): !

[Ok - 1165 bytes]

That is not nearly enough data to be a valid bin file.

HTH

Rick

File size: 67370036

WhatsApp Image 2023-10-14 at 15.31.35.jpegWhatsApp Image 2023-10-14 at 15.45.06.jpegWhatsApp Image 2023-10-14 at 15.45.07 (1).jpegWhatsApp Image 2023-10-14 at 15.45.07 (2).jpegWhatsApp Image 2023-10-14 at 15.45.07.jpeg

M02@rt37
VIP
VIP

Hello @shanxxrai 

What is the size of the bin file on your TFTP server ? As @Richard Burts mentioned, strange that only 1165 bytes are uploaded !

Do you have enough free space on your flash: ?

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

shanxxrai
Level 1
Level 1

Showa in the Solarwind TFTP server, file size: 67370036

 

WhatsApp Image 2023-10-14 at 15.50.28.jpeg

From a high level this is what is happening:

- the client (your 921) requests a file from the tftp server.

- the server sends the first packet of the file to the client.

- the client responds with some error code and the server aborts.

It is not clear why the client errors out. My suggestion for the next step is to run debug for tftp on your 921, attempt the file copy, gather and post all output.

HTH

Rick

The Strange here is - the one you posted show version shows that the file already in the flash:

balajibandi_0-1697300737336.png

and the device booted after power on

the File you trying to copy same file name, why you want to copy if the File already in the Flash ?

Its bit confuses to read screenshot - rather screenshot ( text output - post below output complete)

show version

show run | in boot

dir flash:

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Do you have physical access to this router?

pieterh
VIP
VIP

there are everal errors displayed in your output
looking at:  WhatsApp Image 2023-10-06 at 22.18.04.jpeg
shows you are issuing TFTP copy commands while in configuration mode -> exit configuration mode first
looking at: WhatsApp Image 2023-10-06 at 22.18.04 (4).jpeg
shows you are not copying FROM, but copying TO the tftp server

"copy start tftp:" tries to copy the startup-config to the tftp server, and you are overwriting the destination file!
after this command, this file on the tftp server is not the boot-image anymore,
but it is the startup-config that has is NAMED the same as as the boot-image
this explains for the small number of bytes copied from the tftp server in  WhatsApp Image 2023-10-06 at 22.18.04 (2).jpeg

Review Cisco Networking for a $25 gift card