cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
67673
Views
35
Helpful
8
Replies

Copy flash in a Directory to TFTP server

reginaldjohnson
Level 1
Level 1

i need assistance with copy the flash of a 2960G switch in a directory to a TFTP server. on every attempt to copy the flash i get the follow error:

Cisco#sh flash:

Directory of flash:/

    2  -rwx        1696  Feb 28 1993 19:02:24 -05:00  vlan.dat
    3  -rwx        1048   Mar 1 1993 22:12:10 -05:00  multiple-fs
    5  drwx         192  Feb 28 1993 19:06:54 -05:00 c2960-lanbase-mz.122-25.SEE2
  620  -rwx        2519   Mar 1 1993 22:12:10 -05:00  config.text
  621  -rwx          27   Mar 1 1993 22:12:10 -05:00  private-config.text

cisco#copy flash:/c2960-lanbase-mz.122-25.SEE2.bin tftp:10.5.87.200
Address or name of remote host []? 192.168.100.8
Destination filename [192.168.100.8]? c2960-lanbase-mz.122-25.SEE2.bin
%Error opening flash:/c2960-lanbase-mz.122-25.SEE2.bin (No such file or directory)

8 Replies 8

sdheer
Cisco Employee
Cisco Employee

Hi,

As you can see in the flash below c2960-lanbase-mz.122-25.SEE2 is a directory.

   5  drwx         192  Feb 28 1993 19:06:54 -05:00 c2960-lanbase-mz.122-25.SEE2

In order to copy image to the tftp issue the follwoing command:

>> dir flash/c2960-lanbase-mz.122-25.SEE2:   ------> in order to go under the doirectory first

After you issue the follwoing command use that path name in order to copu the image to tftp for ex:

copy flash/c2960-lanbase-mz.122-25.SEE2/c2960-lanbase-mz.122-25.SEE2.bin tftp:

Hope the above helps.

Regards,

Swati

Please rate if you find content useful

Hi Sdheer,

How to copy entire tar file to tftp ? Directory IOS are actually .tar file in the flash. So what is the procedure to copy .tar file from flash to tftp ?

How to copy entire tar file to tftp ? Directory IOS are actually .tar file in the flash.

Go to the Cisco website and download the IOS because you can check if the file downloaded is corrupt or not.  

Unlike copying an IOS from the flash to a TFTP server there is no way to determine if the file is corrupt or not.

I got the solution. Please apply below command,

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

Switch#archive upload-sw tftp://192.168.1.1/c3750e-universalk9-mz.150-2.SE9.tar 

Above is the successful procedure to copy any .tar file (it could be IOS or any other file) from CISCO switch flash: to tftp: server .......

can any body help me how to copy license from tftp file to my cisco router 1900

The gotcha is the ":".  so use, copy flash:/xxxxxx/xxxx.bin to tftp:

 

everything works pefectily. Remeber to create a xxxx.bin file in destination folder before coping the trasfer with rwx. I paste mine below. if you need more info, please email me at dirit@ou.ac.lk so that I can share config.

ITD_AS1_2960x#copy flash:/c2960x-universalk9-mz.150-2.EX5/c2960x-universalk9-mz.150-2.EX5.bin tftp:
Address or name of remote host []? 10.72.64.21
Destination filename [c2960x-universalk9-mz.150-2.EX5.bin]?
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
18229248 bytes copied in 61.520 secs (296314 bytes/sec)

 

dchristlerm
Level 1
Level 1

salut

Procédure de copier le flash dans un répertoire vers le serveur TFTP

Contexte : J'ai besoin d'aide pour copier le flash d'un commutateur c3560 dans un répertoire vers un serveur TFTP. À chaque tentative de copie du flash, j'obtiens l'erreur suivante : 

 

DEDEMFBZ#sh flash:

Directory of flash:/

    2  -rwx        3833   Dec 2 1993 06:40:03 +00:00  config.text

    3  -rwx        5505   Dec 2 1993 06:40:04 +00:00  private-config.text

    4  -rwx        3096   Dec 2 1993 06:40:04 +00:00  multiple-fs

    5  -rwx        2476  Jan 26 1994 04:50:50 +00:00  vlan.dat

    6  drwx         192   Mar 1 1993 00:10:22 +00:00  c3560-ipbasek9-mz.122-55.SE5

 

32514048 bytes total (17081344 bytes free)

DEDEMFBZ#

§

DEDEMFBZ#copy flash:/c3560-ipbasek9-mz.122-55.SE5 tftp:

Address or name of remote host []? 192.168.253.15

Destination filename [c3560-ipbasek9-mz.122-55.SE5]?

%Error reading flash:/c3560-ipbasek9-mz.122-55.SE5 (Is a directory)

DEDEMFBZ#

§

DEDEMFBZ#copy flash:/c3560-ipbasek9-mz.122-55.SE5.bin tftp:

Address or name of remote host []? 192.168.253.15

Destination filename [c3560-ipbasek9-mz.122-55.SE5.bin]?

%Error opening flash:/c3560-ipbasek9-mz.122-55.SE5.bin (No such file or directory)

DEDEMFBZ#

§

Solution :

DEDEMFBZ#copy flash:/c3560-ipbasek9-mz.122-55.SE5/c3560-ipbasek9-mz.122-55.SE5.bin tftp:

Address or name of remote host []? 192.168.253.15

Destination filename [c3560-ipbasek9-mz.122-55.SE5.bin]?

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

11760304 bytes copied in 25.988 secs (452528 bytes/sec)

DEDEMFBZ#

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco