cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
88299
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

Dear Sandeep,

 

Please tell me how to upload a archive .tar file from tftp to switch and boot the switch from them.??

Also suggest me how to check the running md5 values of the switch please suggest the command for both.?

If you want to download Software from TFTP server to swicth then you nee dto use this command:

 

archive download-sw /leave-old-sw tftp://10.85.65.13/<image>.tar

Here is a post about it:

https://cyruslab.net/2012/06/03/maintenance-ios-upgradedowngrade-with-archive-download-sw-command/

 

How to verify md5 on swicth:

 

verify /md5 flash:<image>/<image>.bin

Regards

Dont forget to rate helpful posts

 

Hi Sandeep,

I am able to find out md5 vale with command verify /md5 flash:<image>/<image>.bin and output of md5 checksum is   a0ff0e6a271d981cb51a2dfce4cc568f so can you please help me out how to find out the same ios from  cisco site output of my sh ver is


Tech-C2-FCore01#sh ver
Cisco IOS Software, C3750E Software (C3750E-UNIVERSALK9-M), Version 15.0(1)SE3, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2012 by Cisco Systems, Inc.
Compiled Wed 30-May-12 13:41 by prod_rel_team

ROM: Bootstrap program is C3750E boot loader
BOOTLDR: C3750E Boot Loader (C3750X-HBOOT-M) Version 12.2(53r)SE2, RELEASE SOFTWARE (fc1)

Tech-C2-FCore01 uptime is 2 weeks, 2 days, 19 hours, 7 minutes
System returned to ROM by power-on
System restarted at 16:23:34 IST Sun Nov 12 2017
System image file is "flash:/c3750e-universalk9-mz.150-1.SE3/c3750e-universalk9-mz.150-1.SE3.bin"


This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
export@cisco.com.

License Level: ipbase
License Type: Permanent
Next reload license Level: ipbase

cisco WS-C3750X-24 (PowerPC405) processor (revision A0) with 262144K bytes of memory.
Processor board ID FDO1636P1DA
Last reset from power-on
2 Virtual Ethernet interfaces
1 FastEthernet interface
56 Gigabit Ethernet interfaces
4 Ten Gigabit Ethernet interfaces
The password-recovery mechanism is enabled.

512K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address       : 6C:20:56:4E:0F:80
Motherboard assembly number     : 73-12530-06
Motherboard serial number       : FDO163607ZZ
Model revision number           : A0
Motherboard revision number     : A0
Model number                    : WS-C3750X-24T-S
Daughterboard assembly number   : 800-32727-03
Daughterboard serial number     : FDO1636073M
System serial number            : FDO1636P1DA
Top Assembly Part Number        : 800-31327-03
Top Assembly Revision Number    : B0
Version ID                      : V03
CLEI Code Number                : COMJV00ARC
Hardware Board Revision Number  : 0x04


Switch Ports Model              SW Version            SW Image
------ ----- -----              ----------            ----------
*    1 30    WS-C3750X-24       15.0(1)SE3            C3750E-UNIVERSALK9-M


Configuration register is 0xF

Tech-C2-FCore01#
Tech-C2-FCore01#

 

 

 

If I go through this c3750e-universalk9-mz.150-1.SE3  ios I find is this

https://software.cisco.com/download/release.html?mdfid=282979363&softwareid=280805680&os=&release=15.0.2-SE11&relind=AVAILABLE&rellifecycle=&reltype=latest&i=!pp

 

but it has a d/f md5 so please let me know   how to find out the ios through md5 in cisco site.

Hi Sandeep,

 

  I have gone to cisco site and downloaded software according to   this

Switch Ports Model              SW Version            SW Image
------ ----- -----              ----------            ----------
*    1 30    WS-C3750X-24       15.0(1)SE3            C3750E-UNIVERSALK9-M

 

But the software I get has a diff md5 value as I compare with the switch current image

link from I get ios ->>>> https://software.cisco.com/download/release.html?mdfid=282979363&softwareid=280805680&os=&release=15.0.2-SE11&relind=AVAILABLE&rellifecycle=&reltype=latest&i=!pp

 

Also find the screenshot and check whether I downloaded the right software or not..? 


@yogesh1 wrote:

%Error opening flash:c3750e-universalk9-mz.150-1.SE3.bin (No such file or directory)


It means the file does not exist in the root directory.  

Post the complete output to the command "dir".

Hi Leo,

 

After shooting this command I able copy ios image from switch to tftp .

 

cd flash:/c3750e-universalk9-mz.150-1.SE3
copy flash:c3750e-universalk9-mz.150-1.SE3.bin tftp:
Address or name of remote host []? 10.85.65.13
Destination filename [c3750e-universalk9-mz.150-1.SE3.bin]?

 

But after copying of 900 bytes connection automatically close that is mostly happening at that time when I login switch through ssh it get close when I put the putty in idle state and not typing anything for two to three minutes.

I really don't understand why you want to copy the IOS from a switch when you can download the same IOS from the Cisco website.

Hi Leo,

 

It just a doubt that why its not working and I have gone to cisco site and downloaded software according to   this

Switch Ports Model              SW Version            SW Image
------ ----- -----              ----------            ----------
*    1 30    WS-C3750X-24       15.0(1)SE3            C3750E-UNIVERSALK9-M

 

But the software I get has a diff md5 value as I compare with the switch current image

link from I get ios ->>>> https://software.cisco.com/download/release.html?mdfid=282979363&softwareid=280805680&os=&release=15.0.2-SE11&relind=AVAILABLE&rellifecycle=&reltype=latest&i=!pp

 

Also find the screenshot and check whether I downloaded the right software or not..? 

 

 

Julio E. Moisa
VIP Alumni
VIP Alumni

Hi

Check if the window firewall is disabled or other software like antivirus. Also check these lines:

  49  drwx         512   Mar 1 1993 05:34:17 +05:30  c3750e-universalk9-mz.150-1.SE3

%Error reading flash:c3750e-universalk9-mz.150-1.SE3 (Is a directory), You cannot export a folder so you should verify what is inside of the folder, 

 

dir flash:c3750e-universalk9-mz.150-1.SE3

and you will see the file .bin.

 

So to copy that it should see something like

flash:c3750e-universalk9-mz.150-1.SE3/c3750e-universalk9-mz.150-1.SE3.bin

 

 




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

Hi Julio, I have gone to cisco site and downloaded software according to this Switch Ports Model SW Version SW Image ------ ----- ----- ---------- ---------- * 1 30 WS-C3750X-24 15.0(1)SE3 C3750E-UNIVERSALK9-M But the software I get has a diff md5 value as I compare with the switch current image link from I get ios ->>>> https://software.cisco.com/download/release.html?mdfid=282979363&softwareid=280805680&os=&release=15.0.2-SE11&relind=AVAILABLE&rellifecycle=&reltype=latest&i=!pp Also find the screenshot and check whether I downloaded the right software or not..?

selvakumar.vec
Level 1
Level 1

Hi Yokesh,

 

I hope the IOS file is stored in the subdirectory "c3750e-universalk9-mz.150-1.SE3" and not directly in flash.

 

So we need to give the exact path and filename for this. Please try the below

 

Tech-C2-FCore01#copy flash tftp:
Source filename [c3750e-universalk9-mz.150-1.SE3]?c3750e-universalk9-mz.150-1.SE3/c3750e-universalk9-mz.150-1.SE3.bin
Address or name of remote host []? 10.85.65.11
Destination filename [c3750e-universalk9-mz.150-1.SE3]?