+ Reply to Thread
Results 1 to 3 of 3
  1. Junior Member
    Join Date
    Jul 2004
    Posts
    12

    Certifications
    CCNA
    #1

    Default Copy flash tftp when IOS image is in a folder

    So I got this switch and I want to back up the IOS image. Every darn place explains how to do it when the IOS image is in the root directory in flash, which is pretty simple. But mine is in a directory called flash.

    When the prompt asks for the file name I typed flash/longname.bin and a bunch of combinations without success. I can't believe something this simple is giving me so much trouble.
    Any idea?
    Reply With Quote Quote  

  2. SS -->
  3. Member
    Join Date
    Sep 2004
    Location
    Durham, NC
    Posts
    65

    Certifications
    CCNP, CCIE in progress
    #2
    here is an example:

    switch#sh flash

    Directory of flash:/

    2 -rwx 99 Feb 24 2005 11:16:03 -05:00 private-config.text
    3 -rwx 8149 Feb 24 2005 11:16:03 -05:00 config.text
    4 -rwx 804 Jun 10 2004 18:45:09 -04:00 vlan.dat
    6 -rwx 342 Jun 10 2004 11:36:32 -04:00 system_env_vars
    24 drwx 192 Jun 10 2004 11:36:23 -04:00 c3550-i5q3l2-mz.121-20.EA2
    7 -rwx 18 Jun 10 2004 11:36:32 -04:00 env_vars

    15998976 bytes total (8269312 bytes free)

    c3550-i5q3l2-mz.121-20.EA2 is the directory that the IOS file is in

    This gives you the IOS file name in the directory

    switch#cd flash:/c3550-i5q3l2-mz.121-20.EA2
    switch#sh flash

    Directory of flash:/c3550-i5q3l2-mz.121-20.EA2/

    25 drwx 2688 Jun 10 2004 11:34:50 -04:00 html
    107 -rwx 4219426 Jun 10 2004 11:36:23 -04:00 c3550-i5q3l2-mz.121-20.EA2.bin
    108 -rwx 252 Jun 10 2004 11:36:23 -04:00 info

    15998976 bytes total (8269312 bytes free)

    Next copy the IOS to the tftp server

    switch#copy flash tftp
    Source filename [flash:/c3550-i5q3l2-mz.121-20.EA2.bin]? flash:/c3550-i5q3l2-mz.121-20.EA2/c3550-i5q3l2-mz.121-20.EA2.bin
    Address or name of remote host []? 10.1.1.1
    Destination filename [/c3550-i5q3l2-mz.121-20.EA2/c3550-i5q3l2-mz.121-20.EA2.bin]? c3550-i5q3l2-mz.121-20.EA2.bin

    That should complete the copy of the IOS to the tftp server when it is in a directory
    Reply With Quote Quote  

  4. Junior Member Registered Member
    Join Date
    Apr 2013
    Posts
    1

    Certifications
    CCNA
    #3
    Thank you so much for this method...
    Reply With Quote Quote  

+ Reply to Thread

Social Networking & Bookmarks