cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
77140
Views
31
Helpful
25
Replies

copy flash image from switch to tftp

yogesh1
Level 1
Level 1

When I try to copy image from switch to tftp its showing error but connectivity between  tftp and switch is

working fine please find the below logs.

 

sh flash
Tech-C2-FCore01#sh flash

Directory of flash:/

  517  -rwx        5144   Mar 1 1993 05:31:07 +05:30  multiple-fs
    3  -rwx        3002   Mar 1 1993 05:38:34 +05:30  private-config.text
    4  -rwx        1104  Nov 20 2017 15:33:47 +05:30  vlan.dat
    5  drwx        2048   Oct 5 2016 12:30:57 +05:30  crashinfo_ext
   28  drwx        1536   Mar 1 1993 05:30:08 +05:30  crashinfo
   49  drwx         512   Mar 1 1993 05:34:17 +05:30  c3750e-universalk9-mz.150-1.SE3
  514  -rwx       10751   Oct 5 2016 20:51:27 +05:30  config.text.backup
  515  -rwx        3002   Oct 5 2016 20:51:27 +05:30  private-config.text.backup
  516  -rwx       11176   Mar 1 1993 05:38:34 +05:30  config.text

 

 

Tech-C2-FCore01#copy flash tft
Tech-C2-FCore01#copy flash tftp:?
  tftp:  A URL beginning with this prefix

Tech-C2-FCore01#copy flash tftp: ?
  <cr>

Tech-C2-FCore01#copy flash tftp:
Source filename [c3750e-universalk9-mz.150-1.SE3]?
Address or name of remote host []? 10.85.65.11
Destination filename [c3750e-universalk9-mz.150-1.SE3]?
%Error reading flash:c3750e-universalk9-mz.150-1.SE3 (Is a directory)

25 Replies 25

Sandeep Choudhary
VIP Alumni
VIP Alumni

try this:

copy flash tftp:

c3750e-universalk9-mz.150-1.SE3/c3750e-universalk9-mz.150-1.SE3

 

Regards

Dont forget to arte helpful posts

Again facing same error

 


Tech-C2-FCore01#
Tech-C2-FCore01#
Tech-C2-FCore01#copy flash tftp:
Source filename []? c3750e-universalk9-mz.150-1.SE3
Address or name of remote host []? 10.85.65.11
Destination filename [c3750e-universalk9-mz.150-1.SE3]?
%Error reading flash:c3750e-universalk9-mz.150-1.SE3 (Is a directory)
Tech-C2-FCore01#

Exactly what are you trying to accomplish?
The easiest way to copy the IOS is to go to the Cisco website and download the TAR file. Copying the BIN file from one switch (and later moving it to another switch) doesn't guarantee that the file isn't corrupt.

I have directly download the bin from cisco file so there is need of tar file..?


@yogesh1 wrote:

I have directly download the bin from cisco file so there is need of tar file..?


If you have the BIN file from Cisco then make sure you compare the MD5 hash value of the file downloaded against the value found in the Cisco website.

Hi leo,

 

Can you please guide how to compare md5 value or how to verify the running ios image on cisco switch to download the same image from cisco portal.

  1. Go to the Cisco Download page. 
  2. Find the file you've downloaded. 
  3. Hover the prompt above the file.  
  4. A pop-up will reveal the MD5 hash value.  
  5. Copy that value. 
  6. Go to the switch. 
  7. Enter the command "verify /md flash:IOS_filename.bin <MD5 hash value>". 

HI Leo,

Please help me to find out how to check in which disk ios  image is install.

To chechk the md5

 

verify /md5 filesystem:filename [md5-hash]

 

example

router#verify /md5 disk0:c7301-jk9s-mz.124-10.bin .....<output truncated>.....Done! verify /md5 (disk0:c7301-jk9s-mz.124-10.bin) = ad9f9c902fa34b90de8365c3a5039a5b router#   

This means the MD5 matches.

Hi leo ,

 

Its not output of my switch when I try to shoot this command in my switch its showing error .

so I just want to know current running ios in switch is store in which disk . like in above example its showing disk 0 .

please suggest me the command to check in which disk ios is running.

Also suggest me how much mb file we can transfer through tftp(winagent) or tftpd64 by ph jounin.

 

 


@yogesh1 wrote:

 

please suggest me the command to check in which disk ios is running. 


sh version | i System image file is

Hi Leo ,

Why its giving this error can you please help

 

 such file or directory)
Tech-C1-FCore01#sh flas
Tech-C1-FCore01#sh flash

Directory of flash:/

    2  -rwx        1104  Nov 20 2017 10:03:47 +00:00  vlan.dat
    3  -rwx       11617  Nov 20 2017 11:02:58 +00:00  config.text
    4  -rwx        1913  Nov 20 2017 11:02:58 +00:00  private-config.text
    5  -rwx        5144  Nov 20 2017 11:02:58 +00:00  multiple-fs
    6  drwx         512   Mar 1 1993 00:08:55 +00:00  c3750e-universalk9-mz.150-1.SE3

57671680 bytes total (14750208 bytes free)
Tech-C1-FCore01#verify /md5 flash:c3750e-universalk9-mz.150-1.SE3.bin
%Error computing MD5 hash flash:c3750e-universalk9-mz.150-1.SE3.bin (No such file or directory)
Tech-C1-FCore01#verify /md5 flash:c3750e-universalk9-mz.150-1.SE3
%Error computing MD5 hash flash:c3750e-universalk9-mz.150-1.SE3 (Is a directory)
Tech-C1-FCore01#

Hi Leo,

 

Whenever I try to copy ios from my switch to tftp why its give this below mention error .

I have try this in our multiple core switch but error was same.

 

ch-C1-FCore01#
Tech-C1-FCore01#copy flash
Tech-C1-FCore01#copy flash tft
Tech-C1-FCore01#copy flash tftp:
Source filename [c3750e-universalk9-mz.150-1.SE3]? c3750e-universalk9-mz.150-1.SE3.bin
Address or name of remote host []? 10.85.65.13
Destination filename [c3750e-universalk9-mz.150-1.SE3.bin]?
%Error opening flash:c3750e-universalk9-mz.150-1.SE3.bin (No such file or directory)
Tech-C1-FCore01#

Try this command:

 

archive upload-sw tftp:[[ // location ] / directory ]/ image-name.tar

 Example:

 

archive upload-sw tftp://10.85.65.13/c3750e-universalk9-mz.150-1.SE3.tar

 

Regards

Dont forget to arte helpful posts

Review Cisco Networking products for a $25 gift card